You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Paranoid <pa...@ukr.net> on 2007/01/03 12:13:44 UTC

can i use HttpClient with http proxy for ftp?

hi all!

have http proxy and some days ago notices that urls to download from ftp through http proxy very similar to http requests, something like http/1.1 GET ftp://ftp.kde.org/pub/kde/stable/last-update
so, is there any way to download from ftp with httpclient with this kind of proxy/













    

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Re: can i use HttpClient with http proxy for ftp?

Posted by Roland Weber <ht...@dubioso.net>.
Hi,

> so, is there any way to download from ftp with httpclient with this kind of proxy/
> 

That depends entirely on the proxy. HttpClient does not
implement FTP. However, some proxies will automatically
interpret HTTP requests for ftp:// URLs. Such proxies
use FTP to contact the target server, then return the
result as HTTP. If your proxy is of that variety, then
you can use HttpClient. Execute a GET method with the
ftp: URL and see what you get back. If the proxy returns
an error about "unsupported protocol" or anything of
that kind, then it is not of the above-mentioned variety.

hope that helps,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org