hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37988] - UserInfo disapears after creating URI
Date Thu, 23 Mar 2006 11:22:56 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37988>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37988





------- Additional Comments From asf-bugzilla@tommym.net  2006-03-23 11:22 -------
> Hello Tommy,
> 
> > HttpClient is not capable of issuing the following HTTP request "GET
> > ftp://user:pass@host/ HTTP/1.1" despite the fact that this is valid
> > according to RFC2616.
> 
> This bug was opened because a user could not send this kind of request.
> It was closed because the same user confirmed that is is now possible,
> see comment #7.
> 
> Your test uses the String constructor of GetMethod from uri.toString().
> If you pass your string directly into the constructor instead of first
> putting it into a URI and then creating a new string, it should work.
> It should also work if you set the uri with the HttpMethod.setURI(...)
> method instead of calling uri.toString() for the String constructor.
> That gives you at least two options to achieve the desired result.
> 
> cheers,
>   Roland

Hello Roland,

Thanks for your reply. Teh fact that the test is constructed this way is to show
that the credentials are really lost when converting to/from URI's. 

Besides, the real issue is the fact that HttpMethod#generateRequestLine()
doesn't place a complete absoluteURI as defined in RFC 2616 sec 5.1.2.  This in
turn is because the HttpHost doesn't contain an authority, although it should
create one, when an absloluteURI is requested via a Proxy.

Regards,

Tommy




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message