hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart White" <stuart.whi...@gmail.com>
Subject HttpUriRequest.getURI() inconsistent behavior?
Date Wed, 17 Dec 2008 19:34:46 GMT
The behavior of HttpUriRequest.getURI() seems to be inconsistent,
depending on whether the request goes through a proxy or not.

For this example, I'm attempting to access http://zeroc.com/download.html.

Please see the attached source code.  If I run this source code with
no proxy configured, getURI() returns:

/download.html

However, if I change the code to use a proxy, getURI() now returns:

http://zeroc.com/download.html

I've tested this both with the latest releases of httpcore and
httpclient as well as subversion revision 727427, and this behavior
occurs regardless.

Is this expected behavior?  Thanks!


Mime
View raw message