Date: Wed, 17 Mar 2004 00:10:19 -0800 (PST) From: Gleb Smirnoff <glebius@cell.sick.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/64111: libfetch does not use the FTP_PROXY and HTTP_PROXY vars as documented Message-ID: <200403170810.i2H8AJnq054570@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/64111; it has been noted by GNATS. From: Gleb Smirnoff <glebius@cell.sick.ru> To: Pat Wendorf <beholder@dungeons.ca> Cc: freebsd-gnats-submit@freebsd.org Subject: Re: misc/64111: libfetch does not use the FTP_PROXY and HTTP_PROXY vars as documented Date: Wed, 17 Mar 2004 11:07:59 +0300 On Thu, Mar 11, 2004 at 08:31:21AM -0800, Pat Wendorf wrote: P> >Description: P> The documentation for fetch (man 3 fetch) indicates that setting HTTP_PROXY will only let fetch requests for HTTP resources run through the proxy server. We have a setup where FTP is open to us, but HTTP is proxied. With this variable set HTTP and FTP seem to go through the proxy first. Unsetting the variable fixes FTP, but does not allow me to us HTTP. P> >How-To-Repeat: P> Allow FTP out through your network, and proxy HTTP. Set the HTTP_PROXY environment variable and watch where the FTP requests go out through. This is not a bug, its a feature. libfetch tries to use you HTTP proxy for FTP transfers, too. If you don't want to use it for FTP, you have explicitly set environment variable FTP_PROXY to empty string. A command like: > FTP_PROXY= fetch <ftp url> will work in your case. If you are using make.conf, your configuration will look like this: FETCH_ENV?= HTTP_PROXY=proxy:3128 FETCH_ENV+= FTP_PROXY= However, fetch.3 says: If this variable is set to an empty string, no proxy will be used for FTP requests, even if the HTTP_PROXY variable is set. And this is definitely not true. So, this issue must be considered a doc-bug. Here is diff: --- fetch.3.orig Wed Mar 17 11:05:32 2004 +++ fetch.3 Wed Mar 17 11:07:08 2004 @@ -471,11 +471,6 @@ is the real user name, and .Ql host is the name of the FTP server. -.Pp -If this variable is set to an empty string, no proxy will be used for -FTP requests, even if the -.Ev HTTP_PROXY -variable is set. .It Ev ftp_proxy Same as .Ev FTP_PROXY , -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403170810.i2H8AJnq054570>