hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Speirs <wspe...@apache.org>
Subject Re: ClientProtocolException
Date Fri, 20 Jan 2012 00:01:40 GMT
I think because there is a modifier which is setting this header, then
you're trying to do it manually and getting this exception. What happens if
you remove the manual setting of the header?

Bill-
On Jan 19, 2012 6:02 PM, "Mohit Anchlia" <mohitanchlia@gmail.com> wrote:

> When we do a POST we are getting the following exception?
> Transfer-encoding is set chunked. Not sure why it's throwing this
> exception
>
> org.apache.http.client.ClientProtocolException
>        at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:822)
>        at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
>
> Caused by: org.apache.http.ProtocolException: Transfer-encoding header
> already present
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message