title: android httpclient send post using the url as parameters?
body: <p>I am sending data from android to the web, which is using httpclient using the code like this</p>
  
  <pre><code>DefaultHttpClient client = new DefaultHttpClient();
      HttpPost httppost = new HttpPost("http://host");
      List&lt;BasicNameValuePair&gt; nvps = new ArrayList&lt;BasicNameValuePair&gt;();
      nvps.add(new BasicNameValuePair("method", "signIn"));
      nvps.add(new BasicNameValuePair("email",u));
      nvps.add(new BasicNameValuePair("password",pass));
      UrlEncodedFormEntity p_entity = new UrlEncodedFormEntity(nvps,HTTP.UTF_8);
      httppost.setEntity(p_entity);
  </code></pre>
  
  <p>I am a little confused, if this code is putting the parameters into the url as argument, like <code>url?method=a&amp;email=b&amp;password=c</code>
  or putting the parameters into the post body</p>
  
  <p>What I should do is to construct a http post to this url url?method=a with email and password parameters in post body</p>