Add an EXAMPLES section.
Xref sh(1) as we use environment variables. PR: 43899 Reviewed by: des
This commit is contained in:
parent
97e0102665
commit
ac6bad097f
@ -228,7 +228,36 @@ connection.
|
|||||||
All environment variables mentioned in the documentation for the
|
All environment variables mentioned in the documentation for the
|
||||||
.Xr fetch 3
|
.Xr fetch 3
|
||||||
library are supported.
|
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
|
.Sh SEE ALSO
|
||||||
|
.Xr sh 1 ,
|
||||||
.Xr fetch 3
|
.Xr fetch 3
|
||||||
.Sh HISTORY
|
.Sh HISTORY
|
||||||
The
|
The
|
||||||
|
Loading…
x
Reference in New Issue
Block a user