From owner-freebsd-questions@FreeBSD.ORG Wed May 11 06:45:25 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BA5116A4CE for ; Wed, 11 May 2005 06:45:25 +0000 (GMT) Received: from mx2.fujixerox.co.jp (mx2.fujixerox.co.jp [192.26.96.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CF9A43D69 for ; Wed, 11 May 2005 06:45:24 +0000 (GMT) (envelope-from Qiang.Xu@fujixerox.com) Received: from isvw2.fujixerox.co.jp ([129.249.27.132]) by mx2.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id j4B6jMm11327; Wed, 11 May 2005 15:45:22 +0900 (JST) Received: from ms1.fujixerox.co.jp (isvw2 [129.249.27.132]) by isvw2.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id j4B6jJs23875; Wed, 11 May 2005 15:45:19 +0900 (JST) Received: from sgpaphq-smtp01.fujixerox.com ([13.198.8.73]) by ms1.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id j4B6jKa22738; Wed, 11 May 2005 15:45:20 +0900 (JST) Received: from 10.198.8.10 by sgpaphq-smtp01.fujixerox.com with ESMTP id 47825991115793909; Wed, 11 May 2005 14:45:09 +0800 Received: from localhost (localhost [127.0.0.1]) by localhost.sgp.fujixerox.com (Postfix) with SMTP id 9DC001D936; Wed, 11 May 2005 14:38:39 +0800 (SGT) Received: from sess.xssc.sgp.xerox.com (unknown [13.198.33.122]) by imss.sgp.fujixerox.com (Postfix) with ESMTP id AF4201D936; Wed, 11 May 2005 14:38:29 +0800 (SGT) From: Xu Qiang To: Kris Kennaway , "Qiang (XSSC) Xu" Date: Wed, 11 May 2005 14:47:38 +0800 X-Sent-Folder-Path: Sent Items X-Mailer: Oracle Connector for Outlook 9.0.4 60130 (9.0.2711) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <20050511063829.AF4201D936@imss.sgp.fujixerox.com> cc: freebsd-questions@FreeBSD.org Subject: RE: Ports proxy configuration? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 06:45:25 -0000 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://:@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:*:: --------------------------------------------------------- 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