multipart/form-data vs x-www-form-urlencoded

Posted by jmls on 20-Apr-2013 04:58

so, I have a url that I need to post some data to

in the postman extension for chrome (see screenshot) , I enter the url as http://localhost/cgi-bin/cgiip.exe/WService=hash42/api/authenticate, and enter a field called data with the value  {"username":"superuser@dotr.com","password":"mypassword"}

when I hit the send button, I get the results as expected

Capture.JPG

now, how can I do the same thing in OE Mobile ? I've tried to create a REST service, but I don't have the option of "form-data", only "x-www-form-urlencoded". If I enter the data properties as above and hit "test". I get the following response

{"status":"404 Not Found","url":"http://localhost/cgi-bin/cgiip.exe/WService=hash42/api/authenticate"

which is confusing, because it's the same url that postman used

All Replies

Posted by Peter Judge on 22-Apr-2013 08:38

I get the following response

{"status":"404 Not Found","url":"http://localhost/cgi-

bin/cgiip.exe/WService=hash42/api/authenticate"

>

If you inspect the network message in Chrome's dev tools, you can see the request and the arguments passed (incl headers). I assume that you want to call the URL served by webspeed, just from a mobile app/client?

-- peter

Posted by jmls on 22-Apr-2013 14:03

yes, I want to call a webspeed url, from the mobile client

This thread is closed