Added dirty workarounds for setting cookies and request options