Re: Using wget through FTP proxy server
Zitat von Micah Cowan [EMAIL PROTECTED]: There are two bugs here, actually: one is lack of support for authentication with FTP proxies (feature request), the other is that it's not clearly documented that proxy-user/proxy-password only apply to HTTP proxies. Can anyone tell me offhand, does Wget currently support the use of HTTP proxies for fetching FTP resources (GET ftp://foo/ HTTP/1.1)? It looks to me like the answer is no; if so, that should be filed as well. This is in wget for long time and working well. These sometimes called FTP-Proxies are not explicitly supported. There also seem to exist various schemes how the authentication information for the proxy and the ftp behind it is transferred, some combinations of USER, PASS and AUTH, some of them can even be done with wget and a suitable crafted URL. I think after login the FTP-client does a normal FTP session with the FTP-proxy. Best regards, Jochen Roderburg ZAIK/RRZK University of Cologne Robert-Koch-Str. 10 Tel.: +49-221/478-7024 D-50931 Koeln E-Mail: [EMAIL PROTECTED] Germany
Re: Using wget through FTP proxy server
I'm not sure that I follow how this might be used in my particular case. I have to work with an existing proxy server which talks FTP protocol on port 21; I don't have an HTTP proxy server which can get me into the private network where the FTP servers are. The way this particular FTP proxy works, assuming the following: proxy user name: phred proxy user passwd: xyzzy proxy server IP: 169.254.1.1 remote FTP user: sherlock remote FTP passwd: holmes remote FTP server IP: 30.1.1.1 you connect to TCP port 21 on the proxy server (in the example above, 169.254.1.1) send USER phred, followed by PASS xyzzy send USER [EMAIL PROTECTED] followed by PASS holmes After this point, everything looks like a real FTP session with the remote server. As I mentioned, both CuteFTP and WS-FTP Pro refer to this proxy type as USER after logon. It must be fairly common, because once you get past the confusing terminology, setting up WS-FTP Pro to negotiate the proxy is quite simple. Jochen Roderburg wrote: Zitat von Micah Cowan [EMAIL PROTECTED]: There are two bugs here, actually: one is lack of support for authentication with FTP proxies (feature request), the other is that it's not clearly documented that proxy-user/proxy-password only apply to HTTP proxies. Can anyone tell me offhand, does Wget currently support the use of HTTP proxies for fetching FTP resources (GET ftp://foo/ HTTP/1.1)? It looks to me like the answer is no; if so, that should be filed as well. This is in wget for long time and working well. These sometimes called FTP-Proxies are not explicitly supported. There also seem to exist various schemes how the authentication information for the proxy and the ftp behind it is transferred, some combinations of USER, PASS and AUTH, some of them can even be done with wget and a suitable crafted URL. I think after login the FTP-client does a normal FTP session with the FTP-proxy. Best regards, Jochen Roderburg ZAIK/RRZK University of Cologne Robert-Koch-Str. 10 Tel.: +49-221/478-7024 D-50931 Koeln E-Mail: [EMAIL PROTECTED] Germany
Re: Using wget through FTP proxy server
From: Alan Watt I'm using wget version 1.9.1 for Solaris 8 (SPARC). [...] I don't deal with proxies, so I don't know much about this, but you might do better with the current released version, 1.10.2. I don't know if a suitable binary kit is generally available, but if you can't find one, and you can't build it from the source, I can build one on Solaris 10, if you think that that might be useful. Steven M. Schweda [EMAIL PROTECTED] 382 South Warwick Street(+1) 651-699-9818 Saint Paul MN 55105-2547
Re: Using wget through FTP proxy server
Thanks for the response. In fact the current available Sun Freeware package for Solaris 8 is 1.10.2; the one I'm using in production was loaded some time ago. I'll just need to load the new package on a test server and check it out. Steven M. Schweda wrote: From: Alan Watt I'm using wget version 1.9.1 for Solaris 8 (SPARC). [...] I don't deal with proxies, so I don't know much about this, but you might do better with the current released version, 1.10.2. I don't know if a suitable binary kit is generally available, but if you can't find one, and you can't build it from the source, I can build one on Solaris 10, if you think that that might be useful. Steven M. Schweda [EMAIL PROTECTED] 382 South Warwick Street(+1) 651-699-9818 Saint Paul MN 55105-2547
Re: Using wget through FTP proxy server
I loaded the latest Sun Freeware wget package (1.10.2) for Solaris 8 on a test server; got the same results. Steven M. Schweda wrote: From: Alan Watt I'm using wget version 1.9.1 for Solaris 8 (SPARC). [...] I don't deal with proxies, so I don't know much about this, but you might do better with the current released version, 1.10.2. I don't know if a suitable binary kit is generally available, but if you can't find one, and you can't build it from the source, I can build one on Solaris 10, if you think that that might be useful. Steven M. Schweda [EMAIL PROTECTED] 382 South Warwick Street(+1) 651-699-9818 Saint Paul MN 55105-2547
Re: Using wget through FTP proxy server
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alan Watt wrote: [ CC to [EMAIL PROTECTED] ] I have a need to use wget through an FTP proxy server and every combination of proxy options I have tried has failed. By capturing packets I have verified that wget never sends the proxy-user/proxy-password information. What I see is wget opening an FTP connection to the proxy gateway, but not attempting to log in as the proxy user. Instead it tries to authenticate as the remote user immediately. The specific type of FTP proxy I need to use is what WS-FTP pro and CoreFTP refer to as send USER after logon. The proxy gateway in question wants to get the proxy-user/proxy-password supplied initially, followed by a USER remote-user@remote-host command to connect to the actual remote FTP system. Here is what I have tried: 1. Setting ftp_proxy to ftp://proxy-user:proxy-password@proxy-server in .wgetrc. 2. Setting ftp-proxy to same as above in .wgetrc 3. Setting proxy-user, proxy_user, proxy-passwd, proxy_passwd appropriately in .wgetrc. 4. Setting the command-line option equivalents for all the above. No matter what I do, the only part of the proxy information wget pays any attention to is the proxy server address. After looking through the relevant source code, it looks like proxy authentication is only supported for HTTP proxies, and not FTP. I'll file a bug. It would be useful to know what software is being used as the FTP proxy, so we can test against it. There are two bugs here, actually: one is lack of support for authentication with FTP proxies (feature request), the other is that it's not clearly documented that proxy-user/proxy-password only apply to HTTP proxies. Can anyone tell me offhand, does Wget currently support the use of HTTP proxies for fetching FTP resources (GET ftp://foo/ HTTP/1.1)? It looks to me like the answer is no; if so, that should be filed as well. - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHH8Q17M8hyUobTrERCM5nAJ4mMv1EYLWwvZthyMmH9aYScYLbrACeOVE5 jSOlHgV6PsZ/Stl2c94f7ss= =qycr -END PGP SIGNATURE-