summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2003-05-17 15:46:46 +0000
committertrhodes <trhodes@FreeBSD.org>2003-05-17 15:46:46 +0000
commit80d62fd7dc2c5e5d94b89da823b49257969d734b (patch)
treed8924a89f9011861ca964c3848ce1c8859124e30 /usr.bin/fetch
parentf073845867339611311cc229f04f9cdc8e93d1a8 (diff)
downloadFreeBSD-src-80d62fd7dc2c5e5d94b89da823b49257969d734b.zip
FreeBSD-src-80d62fd7dc2c5e5d94b89da823b49257969d734b.tar.gz
Add an EXAMPLES section.
Xref sh(1) as we use environment variables. PR: 43899 Reviewed by: des
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/fetch.131
1 files changed, 30 insertions, 1 deletions
diff --git a/usr.bin/fetch/fetch.1 b/usr.bin/fetch/fetch.1
index 32976c3..1f27f55 100644
--- a/usr.bin/fetch/fetch.1
+++ b/usr.bin/fetch/fetch.1
@@ -228,7 +228,36 @@ connection.
All environment variables mentioned in the documentation for the
.Xr fetch 3
library are supported.
+.Sh EXAMPLES
+The various authentication mechanisms can be set using the
+following examples:
+.Pp
+If a proxy needed to be accessed on example.com
+than
+.Pp
+.Dv export HTTP_PROXY=http://trhodes:xxxxxx@proxy.example.com:8080
+.Pp
+should be used, where
+.Dq trhodes:xxxxxx
+would be the applicable username and password,
+.Dq example.com
+would be the domain name and
+.Dq portnum
+would be the required port number.
+The
+.Em HTTP_PROXY
+option uses:
+.Pp
+.Dv HTTP_PROXY="http://proxy.example.com:8080/"
+.Pp
+and
+.Em HTTP_PROXY_AUTH
+option would use the following example:
+.Pp
+.Dv export HTTP_PROXY_AUTH="basic:*:<user>:<password>"
+.Pp
.Sh SEE ALSO
+.Xr sh 1 ,
.Xr fetch 3
.Sh HISTORY
The
@@ -265,4 +294,4 @@ One cannot both use the
.Fl c
and
.Fl f
-options and specify URLs on the command line.
+options and specify URLs on the command line. \ No newline at end of file
OpenPOWER on IntegriCloud