I am sending data from android to the web, which is using httpclient using the code like this
DefaultHttpClient client = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://host");
List<BasicNameValuePair> nvps = new ArrayList<BasicNameValuePair>();
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);
I am a little confused, if this code is putting the parameters into the url as argument, like url?method=a&email=b&password=c
or putting the parameters into the post body
What I should do is to construct a http post to this url url?method=a with email and password parameters in post body