Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

setRequestHeader failing on android

Trying to manually set a cookie on the iphone fails, the following code works perfectly on android but causes problems on iphone:

var xhr = Titanium.Network.createHTTPClient();
xhr.onload = function() {
  Ti.API.info('cookie: ' + this.getResponseHeader('Set-Cookie'));
xhr.open(type, url, false);
xhr.setRequestHeader('Cookie', cookie);

Is there anyway to work around this? I need the authentication token that gets sent in the cookie to retrieve the certain parts of the user profile….

— asked May 13th 2010 by JT Jankowiak
  • httpclient
  • iphone
  • setrequestheader

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.