Q:

how to post data to remote server in android app

Possible Duplicate:
How to do a HTTP Post in Android? 

I want to send the two values to a server ,say http://localhost/twoVal.php, which will further process the  information.
for example,
i have got the val1 = 12 and val2 = 13
i want to post these data to above mentioned URL.  (May be some URL need not be localhost) how to do it?
Also, data  needs to be sent as part of HTTP header (POST) & not as query parameters.

A:

Have you even tried to search for the answer?

Http Post in android
Android, sending XML via HTTP POST (SOAP)
Http post in Java
Http post in Java with UrlConnection
HttpClient android docs

