• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Send data to a web site - how to?

I need to create a small app that simply sends some data (XML, txt, whatever) to a web site.

I have not created the web site yet. This is just a proof of concept.
Are there any tutorials on how to do this??

My final application will let only users who have paid a subscription to my website upload data.

Many thanks
 
How much data? A key?

If the amount is small, you can use url vars in PHP, ie:

Code:
http://example.com/application.php?client_key=1233AFEE23?client_locationX=48.07754?client_locationY=77.01453

Anything directly following the '?' is a variable name, followed by the value.

If it's more than a couple of variable's worth, postdata can be used. Just send it using the post method to your app's URL, and the server side would be responsible for pulling the vars out it needs.
 
Back
Top Bottom