summaryrefslogtreecommitdiffstats
path: root/lib/libfetch
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2003-06-10 20:41:18 +0000
committertrhodes <trhodes@FreeBSD.org>2003-06-10 20:41:18 +0000
commit3514f4bda78f8514e3482ae020bcde860e75aacf (patch)
treea72dd307be7e4abbaa3936b44b674ef915dfe327 /lib/libfetch
parentd46752fb9c7d56073f3b1ac10dafe94428f93f3a (diff)
downloadFreeBSD-src-3514f4bda78f8514e3482ae020bcde860e75aacf.zip
FreeBSD-src-3514f4bda78f8514e3482ae020bcde860e75aacf.tar.gz
Add an EXAMPLES section.
PR: 43899 Reviewed by: des, ru
Diffstat (limited to 'lib/libfetch')
-rw-r--r--lib/libfetch/fetch.322
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/libfetch/fetch.3 b/lib/libfetch/fetch.3
index 0e107d0..9a1b1fa 100644
--- a/lib/libfetch/fetch.3
+++ b/lib/libfetch/fetch.3
@@ -532,6 +532,28 @@ See
for a description of the file format.
This feature is experimental.
.El
+.Sh EXAMPLES
+To access a proxy server on
+.Pa proxy.example.com
+port 8080, set the
+.Ev HTTP_PROXY
+environment variable in a manner similar to this:
+.Pp
+.Dl HTTP_PROXY=http://proxy.example.com:8080
+.Pp
+If the proxy server requires authentication, there are
+two options available for passing the authentication data.
+The first method is by using the proxy URL:
+.Pp
+.Dl HTTP_PROXY=http://<user>:<pwd>@proxy.example.com:8080
+.Pp
+The second method is by using the
+.Ev HTTP_PROXY_AUTH
+environment variable:
+.Bd -literal -offset indent
+HTTP_PROXY=http://proxy.example.com:8080
+HTTP_PROXY_AUTH=basic:*:<user>:<pwd>
+.Ed
.Sh SEE ALSO
.Xr fetch 1 ,
.Xr ftpio 3 ,
OpenPOWER on IntegriCloud