Titanium Community Questions & Answer Archive

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

getResponseHeader() does not work

getResponseHeader always returns null. Seems like a pretty big bug in the HTTPClient class (tested with 3.2 SDK on ipad).

— asked July 21st 2010 by Kyle Quest
  • getresponseheader
  • httpclient

1 Answer

  • Hey Kyle. I had the same problem. There is a work around for the getReponseHeader() problem here: https://appcelerator.lighthouseapp.com/projects/32238/tickets/1502-httpclient-problems-with-header-parsing-and-responsedata-in-onerror-handler

    See the part by Brion on using a reference to the original object instead of 'this'. Works for me in on OS4 on the iPad.

    — answered October 24th 2010 by Jeff Bonnes
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.