FreeBSD Bugzilla – Attachment 13369 Details for
Bug 25494
fetch uses environment variable FTP_PROXY, ftp/lynx use ftp_proxy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.92 KB, created by
mike
on 2001-03-02 16:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mike
Created:
2001-03-02 16:40:01 UTC
Size:
2.92 KB
patch
obsolete
>Index: ftp.c >=================================================================== >RCS file: /home/ncvs/src/lib/libfetch/ftp.c,v >retrieving revision 1.16.2.18 >diff -u -r1.16.2.18 ftp.c >--- ftp.c 2001/02/22 16:23:52 1.16.2.18 >+++ ftp.c 2001/03/01 23:23:05 >@@ -875,10 +875,11 @@ > struct url *purl; > char *p; > >- if (((p = getenv("FTP_PROXY")) || (p = getenv("HTTP_PROXY"))) && >+ if (((p = getenv("FTP_PROXY")) || (p = getenv("ftp_proxy")) || >+ (p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) && > *p && (purl = fetchParseURL(p)) != NULL) { > if (!*purl->scheme) { >- if (getenv("FTP_PROXY")) >+ if (getenv("FTP_PROXY") || getenv("ftp_proxy")) > strcpy(purl->scheme, SCHEME_FTP); > else > strcpy(purl->scheme, SCHEME_HTTP); >Index: http.c >=================================================================== >RCS file: /home/ncvs/src/lib/libfetch/http.c,v >retrieving revision 1.13.2.12 >diff -u -r1.13.2.12 http.c >--- http.c 2000/11/10 10:40:58 1.13.2.12 >+++ http.c 2001/03/01 23:23:05 >@@ -651,7 +651,8 @@ > struct url *purl; > char *p; > >- if ((p = getenv("HTTP_PROXY")) && (purl = fetchParseURL(p))) { >+ if (((p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) && >+ (purl = fetchParseURL(p))) { > if (!*purl->scheme) > strcpy(purl->scheme, SCHEME_HTTP); > if (!purl->port) >Index: fetch.3 >=================================================================== >RCS file: /home/ncvs/src/lib/libfetch/fetch.3,v >retrieving revision 1.11.2.14 >diff -u -r1.11.2.14 fetch.3 >--- fetch.3 2001/02/22 16:24:24 1.11.2.14 >+++ fetch.3 2001/03/01 23:23:05 >@@ -430,7 +430,7 @@ > .It Ev FTP_PASSWORD > Default FTP password if the remote server requests one and none was > provided in the URL. >-.It Ev FTP_PROXY >+.It Ev ftp_proxy > URL of the proxy to use for FTP requests. > The document part is ignored. > FTP and HTTP proxies are supported; if no scheme is specified, FTP is >@@ -447,7 +447,7 @@ > .Pp > If this variable is set to an empty string, no proxy will be used for > FTP requests, even if the >-.Ev HTTP_PROXY >+.Ev http_proxy > variable is set. > .It Ev HTTP_AUTH > Specifies HTTP authorization parameters as a colon-separated list of >@@ -461,14 +461,14 @@ > .Pp > This variable is only used if the server requires authorization and > no user name or password was specified in the URL. >-.It Ev HTTP_PROXY >+.It Ev http_proxy > URL of the proxy to use for HTTP requests. > The document part is ignored. > Only HTTP proxies are supported for HTTP requests. > If no port number is specified, the default is 3128. > .Pp > Note that this proxy will also be used for FTP documents, unless the >-.Ev FTP_PROXY >+.Ev ftp_proxy > variable is set. > .It Ev HTTP_PROXY_AUTH > Specifies authorization parameters for the HTTP proxy in the same >@@ -553,9 +553,9 @@ > and FTP proxy support. > .Pp > There's no way to select a proxy at run-time other than setting the >-.Ev HTTP_PROXY >+.Ev http_proxy > or >-.Ev FTP_PROXY >+.Ev ftp_proxy > environment variables as appropriate. > .Pp > .Nm libfetch
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25494
: 13369