Posting data to server with jQuery

so I have a basic cordova app created. I added jquery and am trying to make a request to a url.
The target is to post data, but I’m testing with a GET method.
The problem is that the response is “Failed to load resource: the server responded with a status of 404 (Not Found)”, but when I open the url from a browser, the response is displayed.

I’ve been at this for a day and a half, I’ve gone through alot topics on the internet and tried different things, but couldn’t get the job done. If you have any ideas it would be great!

My goal is to create an android app, in which you fill several fields with text, save them on the device, and when connected to wifi tap a button to push the data in the file to a server. So if you have any suggestions on what other I can use instead of cordova, I`d appreciate it.


Source: android

Leave a Reply