Re: More portability stuff [Re: gettext configuration]
Steven M. Schweda wrote: From: Micah Cowan [EMAIL PROTECTED] Next problem on Tru64: [...] ld: Unresolved: siggetmask We ain't go no siggetmask(). None on VMS (out as far as V8.3), either, should I ever get so far. siggetmask is an obsolete BSDism; POSIX has the sigprocmask function, which we should prefer. We should also do feature-testing, and not assume there's a portable way to block/unblock signals. Note that sigprocmask() does appear on VMS, but apparently not until V8.2, which is ahead of many users (including me, in part). More portability would be better in this region. Can't sigsetmask() or sigblock() do the same job if you tell them not to change anything? Oh... I guess siggetmask() _isn't_ the BSDism, then; it's just lumped into the same manpage. It comes from elsewhere. My thought was that we'd use sigprocmask() where available, and fall back to the older BSD extension (which I had thought would remain siggetmask()), and then to nothing if neither are available. I guess we should substitute sigblock(0) for siggetmask(). I wasn't really expecting VMS to have sigprocmask(); but I expect future systems may conceivably have it and lack the BSD ones (and perhaps such systems are already in the wild). Anyway, we'll use what's available. -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/ signature.asc Description: OpenPGP digital signature
Using wget through FTP proxy server
[ 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. Can someone provide a detailed description of how to configure wget for an FTP proxy and exactly what type(s) of FTP proxy server it will work with? I'm using wget version 1.9.1 for Solaris 8 (SPARC). The package was obtained from Sun Freeware. Please CC my email address ([EMAIL PROTECTED]) on any replies; I am not subscribed to this list. Thank you.
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-