Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 93534 invoked from network); 8 Dec 2010 20:13:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Dec 2010 20:13:31 -0000 Received: (qmail 17492 invoked by uid 500); 8 Dec 2010 20:13:31 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 17415 invoked by uid 500); 8 Dec 2010 20:13:30 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 17407 invoked by uid 99); 8 Dec 2010 20:13:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Dec 2010 20:13:30 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [92.42.190.144] (HELO ok2cons2.nine.ch) (92.42.190.144) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Dec 2010 20:13:21 +0000 Received: from [10.31.208.155] (unknown [213.55.131.187]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ok2cons2.nine.ch (Postfix) with ESMTPSA id A3F3D4BA28D for ; Wed, 8 Dec 2010 21:12:59 +0100 (CET) X-User-Agent: K-9 Mail for Android References: <20101208165347.1920E2388A41@eris.apache.org> In-Reply-To: <20101208165347.1920E2388A41@eris.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: svn commit: r1043518 From: Oleg Kalnichevski Date: Wed, 08 Dec 2010 21:12:47 +0100 To: HttpComponents Project Message-ID: <9a01dbec-b8b6-4e36-8542-7b520cf0d0af@email.android.com> X-Virus-Checked: Checked by ClamAV on apache.org sebb@apache.org wrote: >Author: sebb >Date: Wed Dec 8 16:53:46 2010 >New Revision: 1043518 > >URL: http://svn.apache.org/viewvc?rev=1043518&view=rev >Log: >Clarify URI content in Execution Context > >Modified: > httpcomponents/httpclient/trunk/src/docbkx/fundamentals.xml > httpcomponents/httpclient/trunk/src/docbkx/httpagent.xml > >Modified: httpcomponents/httpclient/trunk/src/docbkx/fundamentals.xml >URL: >http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/src/docbkx/fundamentals.xml?rev=1043518&r1=1043517&r2=1043518&view=diff >============================================================================== >--- httpcomponents/httpclient/trunk/src/docbkx/fundamentals.xml >(original) >+++ httpcomponents/httpclient/trunk/src/docbkx/fundamentals.xml Wed Dec > 8 16:53:46 2010 >@@ -543,7 +543,11 @@ byte[] response = httpclient.execute(htt > ><constant>ExecutionContext.HTTP_REQUEST</constant>='http.request': >HttpRequest instance representing >the >- actual HTTP request. >+ actual HTTP request. >+ The final HttpRequest object in the execution >context always represents >+ the state of the message _exactly_ as it was >sent to the target server. >+ Per default HTTP/1.0 and HTTP/1.1 use relative >request URIs. >+ > > > > >Modified: httpcomponents/httpclient/trunk/src/docbkx/httpagent.xml >URL: >http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/src/docbkx/httpagent.xml?rev=1043518&r1=1043517&r2=1043518&view=diff >============================================================================== >--- httpcomponents/httpclient/trunk/src/docbkx/httpagent.xml (original) >+++ httpcomponents/httpclient/trunk/src/docbkx/httpagent.xml Wed Dec 8 >16:53:46 2010 >@@ -185,6 +185,9 @@ httpclient.getConnectionManager().shutdo >updated depending on the execution context. Therefore the final request >properties such >as the target host and request URI can be determined by examining the >content of the > local HTTP context after the request has been executed. >+ The final HttpRequest object in the execution context >always represents >+ the state of the message _exactly_ as it was sent to the >target server. >+ Per default HTTP/1.0 and HTTP/1.1 use relative request >URIs. > DefaultHttpClient httpclient = new DefaultHttpClient(); > >@@ -197,7 +200,7 @@ HttpUriRequest req = (HttpUriRequest) lo > ExecutionContext.HTTP_REQUEST); > > System.out.println("Target host: " + target); >-System.out.println("Final request URI: " + req.getURI()); >+System.out.println("Final request URI: " + req.getURI()); // relative >URI Sebastian, The trouble is the uri can also be absolute, if the request has been sent via a proxy without creating a tunnel (direct proxy mode). Basically the uri can either relative or absolute depending on the route. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org