[ http://issues.apache.org/jira/browse/HTTPCLIENT-580?page=comments#action_12412665 ]
Joe Lin commented on HTTPCLIENT-580: ------------------------------------ Thanks for the clarification. I was using the HttpCore component + HttpClient to create some sort of Http proxy server with a socks front end. I configured the browser to point to the socks+http server. Most of the sites work fine except for http://www.msn.com. After HttpCore parsed the request I got a URI string from the request as being //i/2C/27C8847D1C2D67C09FC7B4D53B43FB.jpg and the Host header is stb.msn.com. I turn around and use HttpClient and the error is expected. According to your explanation does it mean that msn uses net_path incorrectly in thier URI? > HttpMethodBase can not handle specific URIs in www.msn.com > ---------------------------------------------------------- > > Key: HTTPCLIENT-580 > URL: http://issues.apache.org/jira/browse/HTTPCLIENT-580 > Project: Jakarta HttpClient > Type: Bug > Components: HttpClient > Versions: 3.0 Final > Environment: Windows XP, JDK 1.5 > Reporter: Joe Lin > > It seems that HttpClient can not handle the following URLs that is in > www.msn.com page: > http://stb.msn.com//i/2C/27C8847D1C2D67C09FC7B4D53B43FB.jpg > Notice the double slashes after the host part of the URL. > I created a GetMethod > String uri = "//i/2C/27C8847D1C2D67C09FC7B4D53B43FB.jpg > "; > GetMethod get = new GetMethod(uri); > I then invoke > client.executeMethod with a the host of HostConfiguration being set at > stb.msn.com > Somehow the setURI(URI uri) method in HttpMethodBase does not set it > correctly. And the actual request sent out from HttpClient becomes > http://stb.msn.com/i/2C/27C8847D1C2D67C09FC7B4D53B43FB.jpg. Noticed the > double slashes in the original request now becomes a single slash and I got a > 404. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]