Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 May 2005 14:47:38 +0800
From:      Xu Qiang <Qiang.Xu@fujixerox.com>
To:        Kris Kennaway <kris@obsecurity.org>, "Qiang (XSSC) Xu" <Qiang.Xu@fujixerox.com>
Cc:        freebsd-questions@FreeBSD.org
Subject:   RE: Ports proxy configuration?
Message-ID:  <20050511063829.AF4201D936@imss.sgp.fujixerox.com>

next in thread | raw e-mail | index | archive | help
Kris Kennaway wrote:
> ENVIRONMENT
>      FTP_TIMEOUT   maximum time, in seconds, to wait before aborting
>                    an FTP connection.
> =

>      HTTP_TIMEOUT  maximum time, in seconds, to wait before aborting
>                    an HTTP connection.
> =

>      All environment variables mentioned in the documentation for the
>      fetch(3) library are supported.  A number of these are quite
>      important to the proper operation of fetch; you are strongly
>      encouraged to read fetch(3) as well.

Ah, here is it: =


---------------------------------------------------------
ENVIRONMENT
     FETCH_BIND_ADDRESS  Specifies a hostname or IP address to which socket=
s
                         used for outgoing connections will be bound.

     FTP_LOGIN           Default FTP login if none was provided in the URL.=


     FTP_PASSIVE_MODE    If set to anything but `no', forces the FTP code t=
o
                         use passive mode.

     FTP_PASSWORD        Default FTP password if the remote server requests=

                         one and none was provided in the URL.

     FTP_PROXY           URL of the proxy to use for FTP requests.  The doc=
u-
                         ment part is ignored.  FTP and HTTP proxies are su=
p-
                         ported; if no scheme is specified, FTP is assumed.=

                         If the proxy is an FTP proxy, libfetch will send
                         `user@host' as user name to the proxy, where `user=
'
                         is the real user name, and `host' is the name of t=
he
                         FTP server.

                         If this variable is set to an empty string, no pro=
xy
                         will be used for FTP requests, even if the HTTP_PR=
OXY
                         variable is set.

     ftp_proxy           Same as FTP_PROXY, for compatibility.

     HTTP_AUTH           Specifies HTTP authorization parameters as a colon=
-
                         separated list of items.  The first and second ite=
m
                         are the authorization scheme and realm respectivel=
y;
                         further items are scheme-dependent.  Currently, on=
ly
                         basic authorization is supported.

                         Basic authorization requires two parameters: the u=
ser
                         name and password, in that order.

                         This variable is only used if the server requires
                         authorization and no user name or password was spe=
ci-
                         fied in the URL.

     HTTP_PROXY          URL of the proxy to use for HTTP requests.  The do=
cu-
                         ment part is ignored.  Only HTTP proxies are sup-
                         ported for HTTP requests.  If no port number is sp=
ec-
                         ified, the default is 3128.

                         Note that this proxy will also be used for FTP doc=
u-
                         ments, unless the FTP_PROXY variable is set.

     http_proxy          Same as HTTP_PROXY, for compatibility.

     HTTP_PROXY_AUTH     Specifies authorization parameters for the HTTP pr=
oxy
                         in the same format as the HTTP_AUTH variable.

                         This variable is used if and only if connected to =
an
                         HTTP proxy, and is ignored if a user and/or a pass=
-
                         word were specified in the proxy URL.

     HTTP_REFERER        Specifies the referrer URL to use for HTTP request=
s.
                         If set to ``auto'', the document URL will be used =
as
                         referrer URL.

     HTTP_USER_AGENT     Specifies the User-Agent string to use for HTTP
                         requests.  This can be useful when working with HT=
TP
                         origin or proxy servers that differentiate between=

                         user agents.

     NETRC               Specifies a file to use instead of ~/.netrc to loo=
k
                         up login names and passwords for FTP sites.  See
                         ftp(1) for a description of the file format.  This=

                         feature is experimental.

EXAMPLES
     To access a proxy server on proxy.example.com port 8080, set the
     HTTP_PROXY environment variable in a manner similar to this:

           HTTP_PROXY=3Dhttp://proxy.example.com:8080

     If the proxy server requires authentication, there are two options ava=
il-
     able for passing the authentication data.  The first method is by usin=
g
     the proxy URL:

           HTTP_PROXY=3Dhttp://<user>:<pwd>@proxy.example.com:8080

     The second method is by using the HTTP_PROXY_AUTH environment variable=
:

           HTTP_PROXY=3Dhttp://proxy.example.com:8080
           HTTP_PROXY_AUTH=3Dbasic:*:<user>:<pwd>
---------------------------------------------------------

Particularly, I am interested in two environmental variables: FTP_PROXY and=
 HTTP_PROXY. I may use it as: =

#env FTP_PROXY=3D"hostnme:port" make install clean

Thank you very much, =


Regards,
Xu Qiang




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050511063829.AF4201D936>