I want my application to send two strings through the query string to a php file that will handle them as POST variables.
So far I have this code
public void postData() {    
    HttpClient httpclient = new DefaultHttpClient();
    HttpPost httppost = new HttpPost("www.mywebsite.com/my_phpfile.php?var1=20&var2=31");
    try {
    HttpResponse response = httpclient.execute(httppost);
    } catch (ClientProtocolException e) {
        // TODO Auto-generated catch block
    } catch (IOException e) {
        // TODO Auto-generated catch block
    }
} 
I think it's an easy problem to solve but it's my first android app and I'd appreciate all the help.
 
     
    