Titanium Community Questions & Answer Archive

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

RESTful api with GET and POST


I am racking my head over these issue for 2 days..

My server scripts caters for both POST and GET with authentication. Both produces correct json responses with Poster (firefox plugin) but
on the iphone, only the POST method is working and the GET method return NULL…

I check and check and couldn't find what I did wrong…

I saw some people use xhr.onload = function() instead of xhr.onreadystatechange = function()

I tried both and still can't get results from GET…

Any tips?

— asked June 18th 2010 by Peter Lum
  • get
  • http
  • post
  • rest

1 Answer

  • Found the answer:


    instead of


    — answered June 18th 2010 by Peter Lum
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.