Synchronous httpclient
I'm using the android SDK at the moment and I am trying to do a synchronous httpclient request, unfortunately no matter how I set the 3rd parameter of xhr.open() it always works asynchronously.
Am I missing something or is this messed up at the moment?
5 Answers
-
Just my 2 cents, but you should REALLY update the documentation (or even better, the Network open() function) so that people (like me) don't try to make synchronous calls.
It's a pain to read something in the doc, which is actually not right and to lose 2 hours trying to figure it out (before finding this post :/)
HMax
-
The documentation for http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Network.HTTPClient.open-method.html should be updated to note that the third parameter is meaningless and has no effect.
-
We only provide asynchronous access. Given the slow speed of connections, the UI would hang and cause the OS to throw up the kill or wait dialog.
-
I added Ticket 2021 to track the suggestion.
-
Why is this not documented ?