[
https://issues.apache.org/jira/browse/HTTPCLIENT-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPCLIENT-706.
------------------------------------------
Resolution: Won't Fix
Adam,
HttpClient is not a browser and as such is not meant to handle any other
protocol but HTTP. It is clearly a responsibility of the application layer to
switch protocols, not that of the protocol layer.
HttpClient throws IllegalStateException because it fails to find a socket
factory for the request with the FTP scheme. If you register a socket factory
for it, HttpClient should be able to request FTP resources using HTTP protocol
just fine. However, the target HTTP server must be capable of acting as a proxy
for FTP resources for that to work.
Oleg
> httpclient method handling redirects to non-http protocol
> ---------------------------------------------------------
>
> Key: HTTPCLIENT-706
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-706
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]