[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614044#action_12614044
 ] 

Sam Berlin commented on HTTPCLIENT-787:
---------------------------------------

Perhaps something like a BROWSER_COMPABLE_MODE would be useful for the whole of 
HttpClient (as opposed to just Cookies, which is I think where it's used now).

> Redirects with spaces in them are not handled correctly
> -------------------------------------------------------
>
>                 Key: HTTPCLIENT-787
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-787
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>            Reporter: Dave Clemmer
>            Priority: Minor
>
> If a redirect address has spaces in it (yes, I know, the person creating that 
> situation should be beaten, but, alas, that is not an option), they are not 
> converted to %20 before opening, and, hence, fail to open.
> changing line 107 of DefaultRedirectHandler to
> String location = locationHeader.getValue().replaceAll (" ", "%20");
> seems to fix it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to