Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 94036 invoked from network); 12 May 2007 15:47:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 May 2007 15:47:32 -0000 Received: (qmail 52850 invoked by uid 500); 12 May 2007 15:47:38 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 52823 invoked by uid 500); 12 May 2007 15:47:38 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 52813 invoked by uid 99); 12 May 2007 15:47:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2007 08:47:38 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.227.126.188] (HELO moutng.kundenserver.de) (212.227.126.188) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2007 08:47:31 -0700 Received: from [85.180.11.126] (helo=[85.180.11.126]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis), id 0ML2xA-1HmtoL0XcC-0000pG; Sat, 12 May 2007 17:47:09 +0200 Message-ID: <4645E29D.1010905@dubioso.net> Date: Sat, 12 May 2007 17:51:57 +0200 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070319 SeaMonkey/1.1.1 MIME-Version: 1.0 To: HttpComponents Project Subject: Re: [HttpClient] Request wrapper vs request copy ; was Re: svn commit: r535512 References: <20070505120254.3621B1A9838@eris.apache.org> <463DA39F.6090007@dubioso.net> <1178451006.21200.8.camel@okhost> In-Reply-To: <1178451006.21200.8.camel@okhost> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/01h2flM5pSk6cDG8iEFuSa4lbfO5HuXMcuCN ngtKTjhEDoBrGC1WP3Dx1IJIkX409U+4Nlxsu/0aLpnaYQDf3v ArZrEBCeqZtHpZ4Z0SlBrx00GYhcb9d X-Virus-Checked: Checked by ClamAV on apache.org Hi Oleg, > We may still need to introduce request wrappers in order to be able to > discard all request headers generated by the protocol interceptors when > dealing with request redirects, for instance. As an alternative to that > we may also think about creating a complete copy of the original request > if it gets redirected to a new location. However, there can be other > cases where we may want to discard auto-generated request headers > without changing any other properties of the request such as request > URI. I still feel that discarding auto-generated headers is insufficient (beyond alpha). Think of an interceptor that folds separate headers with identical names into one, or that splits such headers into many. Think of another interceptor in a proxy application that inserts an entry into a Via: header. A copy technique would have to create the copy _before_ the request gets modified and sent. We couldn't tell whether there will be a redirect or not. Let's keep the "delete auto-generated headers" trick for alpha1 and think about alternatives later. cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org