Differences between revisions 1 and 2
Revision 1 as of 2005-12-28 17:11:31
Size: 1227
Editor: e180006067
Revision 2 as of 2009-09-20 21:46:26
Size: 1232
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
[http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/200512.mbox/%3c0174785F7860994E9B438F7D7A3E5935067AB93E@EMGMLP3.essenttrading.nl%3e Contributed] [[http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/200512.mbox/%3c0174785F7860994E9B438F7D7A3E5935067AB93E@EMGMLP3.essenttrading.nl%3e|Contributed]]
Line 13: Line 13:
See also [http://issues.apache.org/bugzilla/show_bug.cgi?id=37988 bug 37988] for HttpClient 3.x See also [[http://issues.apache.org/bugzilla/show_bug.cgi?id=37988|bug 37988]] for HttpClient 3.x
Line 20: Line 20:
(see [http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/200512.mbox/%3c0174785F7860994E9B438F7D7A3E5935067AB93E@EMGMLP3.essenttrading.nl%3e  original mail]). (see [[http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/200512.mbox/%3c0174785F7860994E9B438F7D7A3E5935067AB93E@EMGMLP3.essenttrading.nl%3e|original mail]]).

Use Case: FTP via Proxy


I have an HTTP proxy that can handle ftp: URLs. I want to send HTTP requests for ftp: URLs to that proxy.


Contributed by Harm de Laat on the user mailing list. See also bug 37988 for HttpClient 3.x


HttpClient can not handle ftp: URLs directly, but must be able to send them to the proxy anyway. For 3.x, this requires registering the ftp protocol along with a protocol socket factory (see original mail). The same applies for other non-HTTP protocols that may be handled by a proxy, such as gopher:.

URLs may include authentication information required by the proxy, such as uid:pwd for the FTP server. HttpClient used to strip authentication information from URLs, because it is not required as long as authentication is handled by HttpClient directly.

UseCases/FTPviaProxy (last edited 2009-09-20 21:46:26 by localhost)