hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bastiat <jjaku...@gmail.com>
Subject Re: how to create HttpEntityEnclosingRequest with HttpAsyncContentProducer entity ?
Date Tue, 06 Aug 2013 06:41:18 GMT
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: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message