misc/64111: libfetch does not use the FTP_PROXY and HTTP_PROXY
vars as documented
Gleb Smirnoff
glebius at cell.sick.ru
Wed Mar 17 00:10:19 PST 2004
The following reply was made to PR misc/64111; it has been noted by GNATS.
From: Gleb Smirnoff <glebius at cell.sick.ru>
To: Pat Wendorf <beholder at dungeons.ca>
Cc: freebsd-gnats-submit at 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
More information about the freebsd-bugs
mailing list