View Full Version : Cross domain POST & PUT requests

21 Dec 2011, 8:24 AM
Hi everyone,

I'm having some difficulties trying to send a POST request over the internet to authenticate myself on a server.
My goal here is to authenticate thanks to a POST request (with a special header) and login/passwd parameters.Then i'd like to upload a file using a PUT method.

Well that's easy to create in Java using HttpPost and HttpPut but i just have no idea how to do that in ExtJS.
It has to work with Sencha Touch 1.1.

I'm wondering if you'd have a miracle solution because of what i read, JSONP was good to use when using GET request even cross domain. And Ajax was just not able to make cross domain request.

In the worst case, i'm thinking about making a Phonegap plugin.

Thanks for your advices.


21 Dec 2011, 8:56 AM
There is no way. What you are wanting is CORS but this isn't supported in ST1

22 Dec 2011, 12:20 AM
Ok, thanks for your quick answer.

But i guess CORS is still supported in Javascript / Ajax and by webkit browsers, I should be able to use it, shouldn't I ?

Otherwise i'm still looking for other ways to make theses requests (especially PUT & POST) :p

22 Dec 2011, 6:30 AM
It is on the list to get working in 2.0