title: How can i send data from android to we using post method
body: <p>i want to send a simple data from android device to asp.net page using post method..
  but i didn't know how to request a web page from android!!!</p>
  
  <p>asp page is good and can response a data without any errors..
  but the problem in android application...</p>
  
  <p>now i'm using this code but it didn't work</p>
  
  <pre><code>public void postData() throws ClientProtocolException, IOException, Exception {       
      String key = "https://www.itrack.somee.com/post.aspx?id=10&amp;long=123&amp;lat=123&amp;alt=123";
      //URI  uri=new URI(key);
  
      HttpClient httpclient = new DefaultHttpClient();
      HttpPost httppost = new HttpPost(key);
  
      Toast.makeText(this, "here", Toast.LENGTH_LONG).show();
      HttpResponse response = httpclient.execute(httppost);
      Toast.makeText(this,"mm"+response.toString(), Toast.LENGTH_LONG).show();
  }
  </code></pre>
  
  <p>any help.....!!</p>