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" <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > >
