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 AB014983A for ; Fri, 10 Feb 2012 11:06:27 +0000 (UTC) Received: (qmail 45130 invoked by uid 500); 10 Feb 2012 11:06:27 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 45032 invoked by uid 500); 10 Feb 2012 11:06:25 -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 45017 invoked by uid 99); 10 Feb 2012 11:06:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 11:06:25 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.150.250.48] (HELO kalnich.nine.ch) (217.150.250.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 11:06:17 +0000 Received: from [192.168.1.110] (77-57-197-206.dclient.hispeed.ch [77.57.197.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by kalnich.nine.ch (Postfix) with ESMTPSA id 5E7F9B80539 for ; Fri, 10 Feb 2012 12:05:56 +0100 (CET) Message-ID: <1328871956.26278.59.camel@ubuntu> Subject: Re: HttpClient in a proxy servlet From: Oleg Kalnichevski To: HttpClient User Discussion Date: Fri, 10 Feb 2012 12:05:56 +0100 In-Reply-To: <4F349C79.9020209@gmail.com> References: <4F349C79.9020209@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 On Thu, 2012-02-09 at 20:26 -0800, Warren Bell wrote: > I am using HttpClient in a proxy servlet and I want to configure it so > that it does not handle redirects automatically or add any request > headers or request entities. I will be passing all request headers and > request entities to it. > > What is the best way to configure HttpClient to act like a proxy ? > > Thanks, > > Warren Bell > You should certainly want to disable automatic redirect handling. You might as well disable authentication and cookie management. Hope this helps Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org