You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "adam brin (JIRA)" <ji...@apache.org> on 2007/11/25 23:32:43 UTC

[jira] Created: (HTTPCLIENT-707) httpclient method handling redirects to non-http protocol

httpclient method handling redirects to non-http protocol
---------------------------------------------------------

                 Key: HTTPCLIENT-707
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-707
             Project: HttpComponents HttpClient
          Issue Type: Wish
          Components: HttpClient
    Affects Versions: 3.1 Final
         Environment: os X 10.5
            Reporter: adam brin
            Priority: Minor


HTTPClient does not handle protocol redirects 'nicely'.  When you call client.executeMethod(method) on a url like [1] the client throws an IllegalStateException.  Clearly, this is not a bug, the enhancement is/would be to better handle the http redirect that happens prior to the protocol change.  Specifically, either not throwing an exception, but setting a status variable or something so you can pick up the redirected URI/protocol.

http://earthobservatory.nasa.gov/cgi-bin/redirect?ftp://eol.jsc.nasa.gov/debriefing_highres_ISS006_ISS006-E-33736.JPG


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


[jira] Closed: (HTTPCLIENT-707) httpclient method handling redirects to non-http protocol

Posted by "adam brin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

adam brin closed HTTPCLIENT-707.
--------------------------------

    Resolution: Duplicate

> httpclient method handling redirects to non-http protocol
> ---------------------------------------------------------
>
>                 Key: HTTPCLIENT-707
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-707
>             Project: HttpComponents HttpClient
>          Issue Type: Wish
>          Components: HttpClient
>    Affects Versions: 3.1 Final
>         Environment: os X 10.5
>            Reporter: adam brin
>            Priority: Minor
>
> HTTPClient does not handle protocol redirects 'nicely'.  When you call client.executeMethod(method) on a url like [1] the client throws an IllegalStateException.  Clearly, this is not a bug, the enhancement is/would be to better handle the http redirect that happens prior to the protocol change.  Specifically, either not throwing an exception, but setting a status variable or something so you can pick up the redirected URI/protocol.
> http://earthobservatory.nasa.gov/cgi-bin/redirect?ftp://eol.jsc.nasa.gov/debriefing_highres_ISS006_ISS006-E-33736.JPG

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