the httpclient i use is of version 4.0, the document seems to be
obselete, as a example, i can no longer use the following code now,
what change i should make in order to use httppost using httpclient
4.0

List<NameValuePair> formparams = new ArrayList<NameValuePair>();
formparams.add(new BasicNameValuePair("param1", "value1"));
formparams.add(new BasicNameValuePair("param2", "value2"));
UrlEncodedFormEntity entity = new UrlEncodedFormEntity(formparams, "UTF-8");
HttpPost httppost = new HttpPost("http://localhost/handler.do";);
httppost.setEntity(entity);    // HttpPost now has no API named
setEntity    -_____-

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to