I thought that using NStringEntity instead of UrlEncodedFormEntity would
help, but it doesn't:
List<NameValuePair> nvps = new ArrayList<NameValuePair>();
.....
NStringEntity nStringEntity = new
NStringEntity(URLEncodedUtils.format(nvps,
HTTP.DEF_CONTENT_CHARSET),
ContentType.create(URLEncodedUtils.CONTENT_TYPE,
(Charset) null));
((HttpPost) httpReq).setEntity(nStringEntity);
//((HttpPost) httpReq).setEntity(new
UrlEncodedFormEntity(nvps));
The problem still remains.
Pls, help with advice.
--
View this message in context:
http://httpcomponents.10934.n7.nabble.com/how-to-create-HttpEntityEnclosingRequest-with-HttpAsyncContentProducer-entity-tp20874p20875.html
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]