Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 94640 invoked from network); 8 Dec 2010 20:17:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Dec 2010 20:17:25 -0000 Received: (qmail 21045 invoked by uid 500); 8 Dec 2010 20:17:21 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 21006 invoked by uid 500); 8 Dec 2010 20:17:21 -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 20964 invoked by uid 99); 8 Dec 2010 20:17:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Dec 2010 20:17:21 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 209.85.216.181 as permitted sender) Received: from [209.85.216.181] (HELO mail-qy0-f181.google.com) (209.85.216.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Dec 2010 20:17:14 +0000 Received: by qyk12 with SMTP id 12so916838qyk.19 for ; Wed, 08 Dec 2010 12:16:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=eHM+2ngxSjnrtdFvFWxQjvGF649q2uRqrUlewDI7bDs=; b=OcER8c/HyUJp9I6G9qAqZkpDXUtc0Thz0T4ozTeLSru/TZzoARlPaVvhGObPr2UPM6 1tZNUMzs2RffKDbkRQOkMx1SScgCGbuIy6GstBDdw4WdOCV8sf4h0ZlRPMy8gt9jCumk iQ8FF7rN2MhlS2E0QBCYlCpZWJ+/YnBn/sAig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=S4ygbDRUp4W6XykdYPrm3h6ZoZjg61iV0bDlPO2XHIINBlC4WligUie5ZfsffEyUrp MlzGMFg60bGsmPOAY6EB02F+GbdJzIPX5PasX6Yzd1fuejGpxyjpgEUaIaof2b6+K0Oj bI9hnK24NdwBYi6OegyG/ApbEV82H8hZoSkVw= MIME-Version: 1.0 Received: by 10.229.236.196 with SMTP id kl4mr7219229qcb.109.1291839413504; Wed, 08 Dec 2010 12:16:53 -0800 (PST) Received: by 10.229.72.94 with HTTP; Wed, 8 Dec 2010 12:16:53 -0800 (PST) In-Reply-To: <9a01dbec-b8b6-4e36-8542-7b520cf0d0af@email.android.com> References: <20101208165347.1920E2388A41@eris.apache.org> <9a01dbec-b8b6-4e36-8542-7b520cf0d0af@email.android.com> Date: Wed, 8 Dec 2010 20:16:53 +0000 Message-ID: Subject: Re: svn commit: r1043518 From: sebb To: HttpComponents Project Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 8 December 2010 20:12, Oleg Kalnichevski wrote: > sebb@apache.org wrote: > >>Author: sebb >>Date: Wed Dec =A08 16:53:46 2010 >>New Revision: 1043518 >> >>URL: http://svn.apache.org/viewvc?rev=3D1043518&view=3Drev >>Log: >>Clarify URI content in Execution Context >> >>Modified: >> =A0 =A0httpcomponents/httpclient/trunk/src/docbkx/fundamentals.xml >> =A0 =A0httpcomponents/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/f= undamentals.xml?rev=3D1043518&r1=3D1043517&r2=3D1043518&view=3Ddiff >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >>--- 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 =3D httpclient.execute(htt >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >><constant>ExecutionContext.HTTP_REQUEST</constant>=3D'http.request= ': >>HttpRequest instance representing >>the >>- =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0actual HTTP request. >>+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0actual HTTP request. >>+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0The final HttpRequest ob= ject in the execution >>context always represents >>+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0the state of the message= _exactly_ as it was >>sent to the target server. >>+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Per default HTTP/1.0 and= HTTP/1.1 use relative >>request URIs. >>+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 >> >>Modified: httpcomponents/httpclient/trunk/src/docbkx/httpagent.xml >>URL: >>http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/src/docbkx/h= ttpagent.xml?rev=3D1043518&r1=3D1043517&r2=3D1043518&view=3Ddiff >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >>--- httpcomponents/httpclient/trunk/src/docbkx/httpagent.xml (original) >>+++ httpcomponents/httpclient/trunk/src/docbkx/httpagent.xml Wed Dec =A08 >>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 >> =A0 =A0 =A0 =A0 local HTTP context after the request has been executed.<= /para> >>+ =A0 =A0 =A0 =A0The final HttpRequest object in the execution cont= ext >>always represents >>+ =A0 =A0 =A0 =A0 =A0 =A0the state of the message _exactly_ as it was sen= t to the >>target server. >>+ =A0 =A0 =A0 =A0 =A0 =A0Per default HTTP/1.0 and HTTP/1.1 use relative r= equest >>URIs. >> =A0 =A0 =A0 =A0 > DefaultHttpClient httpclient =3D new DefaultHttpClient(); >> >>@@ -197,7 +200,7 @@ HttpUriRequest req =3D (HttpUriRequest) lo >> =A0 =A0 =A0 =A0 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 u= ri can either relative or absolute depending on the route. OK, I'll update the docs. > Oleg > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org > For additional commands, e-mail: dev-help@hc.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org