You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2010/10/05 21:33:34 UTC

[jira] Commented: (HTTPCLIENT-1007) When A URL is redirected, there is no easy way to encode the new url before HC tries to execute it/

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

Oleg Kalnichevski commented on HTTPCLIENT-1007:
-----------------------------------------------

Ryan,

Please have a look at HttpClient 4.1-alpha2 release or SVN trunk. The DefaultRedirectStrategy class in 4.1 has a very similar method 

protected URI createLocationURI(final String location) throws ProtocolException;

I can commit the patch but it is very unlikely there will be another official release off the 4.0.x branch. Please consider upgrading to 4.1.

Oleg 

> When A URL is redirected, there is no easy way to encode the new url before HC tries to execute it/
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1007
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1007
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 4.0.3
>         Environment: n/a/
>            Reporter: Ryan Smith
>             Fix For: 4.1 Alpha3, 4.1.0
>
>         Attachments: 1007.patch
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> When you implement your custom RedirectHandler, there is no easy way to encode the new URL being redirected to.
> A public method to access the location string prior to the URI generation would be useful.

-- 
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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org