Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 23C4B98A2 for ; Fri, 20 Jan 2012 00:01:43 +0000 (UTC) Received: (qmail 59970 invoked by uid 500); 20 Jan 2012 00:01:42 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 59902 invoked by uid 500); 20 Jan 2012 00:01:42 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 59894 invoked by uid 99); 20 Jan 2012 00:01:41 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2012 00:01:41 +0000 Received: from localhost (HELO mail-tul01m020-f179.google.com) (127.0.0.1) (smtp-auth username wspeirs, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2012 00:01:41 +0000 Received: by obcwn6 with SMTP id wn6so22848obc.10 for ; Thu, 19 Jan 2012 16:01:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.197.169 with SMTP id iv9mr27268270igc.7.1327017700751; Thu, 19 Jan 2012 16:01:40 -0800 (PST) Received: by 10.42.221.138 with HTTP; Thu, 19 Jan 2012 16:01:40 -0800 (PST) Received: by 10.42.221.138 with HTTP; Thu, 19 Jan 2012 16:01:40 -0800 (PST) In-Reply-To: References: Date: Thu, 19 Jan 2012 19:01:40 -0500 Message-ID: Subject: Re: ClientProtocolException From: William Speirs To: HttpClient User Discussion Content-Type: multipart/alternative; boundary=14dae93404c5a9fa3a04b6ea6231 --14dae93404c5a9fa3a04b6ea6231 Content-Type: text/plain; charset=ISO-8859-1 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" 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 > > --14dae93404c5a9fa3a04b6ea6231--