2000-06-28 16:55:15 +00:00
|
|
|
.\"-
|
2014-01-28 14:32:04 +00:00
|
|
|
.\" Copyright (c) 2000-2014 Dag-Erling Smørgrav
|
2013-07-30 13:05:51 +00:00
|
|
|
.\" Copyright (c) 2013 Michael Gmelin <freebsd@grem.de>
|
2000-06-28 16:55:15 +00:00
|
|
|
.\" All rights reserved.
|
2000-07-05 12:04:31 +00:00
|
|
|
.\" Portions Copyright (c) 1999 Massachusetts Institute of Technology; used
|
|
|
|
.\" by permission.
|
2000-06-28 16:55:15 +00:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer
|
|
|
|
.\" in this position and unchanged.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2003-09-08 18:58:47 +00:00
|
|
|
.\" $FreeBSD$
|
2000-06-28 16:55:15 +00:00
|
|
|
.\"
|
2015-03-25 18:56:36 +00:00
|
|
|
.Dd March 25, 2015
|
1996-07-05 01:03:20 +00:00
|
|
|
.Dt FETCH 1
|
2000-06-28 16:55:15 +00:00
|
|
|
.Os
|
1996-07-05 01:03:20 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm fetch
|
|
|
|
.Nd retrieve a file by Uniform Resource Locator
|
|
|
|
.Sh SYNOPSIS
|
2000-06-28 16:55:15 +00:00
|
|
|
.Nm
|
2008-12-13 17:48:06 +00:00
|
|
|
.Op Fl 146AadFlMmnPpqRrsUv
|
2000-06-28 16:55:15 +00:00
|
|
|
.Op Fl B Ar bytes
|
2013-07-26 15:53:43 +00:00
|
|
|
.Op Fl -bind-address= Ns Ar host
|
|
|
|
.Op Fl -ca-cert= Ns Ar file
|
|
|
|
.Op Fl -ca-path= Ns Ar dir
|
|
|
|
.Op Fl -cert= Ns Ar file
|
|
|
|
.Op Fl -crl= Ns Ar file
|
2008-12-15 08:27:44 +00:00
|
|
|
.Op Fl i Ar file
|
2013-07-26 15:53:43 +00:00
|
|
|
.Op Fl -key= Ns Ar file
|
2008-12-13 17:48:06 +00:00
|
|
|
.Op Fl N Ar file
|
2013-07-26 15:53:43 +00:00
|
|
|
.Op Fl -no-passive
|
|
|
|
.Op Fl -no-proxy= Ns Ar list
|
|
|
|
.Op Fl -no-sslv3
|
|
|
|
.Op Fl -no-tlsv1
|
|
|
|
.Op Fl -no-verify-hostname
|
|
|
|
.Op Fl -no-verify-peer
|
2008-12-13 17:48:06 +00:00
|
|
|
.Op Fl o Ar file
|
2013-07-26 15:53:43 +00:00
|
|
|
.Op Fl -referer= Ns Ar URL
|
2000-06-28 16:55:15 +00:00
|
|
|
.Op Fl S Ar bytes
|
|
|
|
.Op Fl T Ar seconds
|
2013-07-26 15:53:43 +00:00
|
|
|
.Op Fl -user-agent= Ns Ar agent-string
|
2008-12-13 17:48:06 +00:00
|
|
|
.Op Fl w Ar seconds
|
|
|
|
.Ar URL ...
|
|
|
|
.Nm
|
|
|
|
.Op Fl 146AadFlMmnPpqRrsUv
|
|
|
|
.Op Fl B Ar bytes
|
2013-07-26 15:53:43 +00:00
|
|
|
.Op Fl -bind-address= Ns Ar host
|
|
|
|
.Op Fl -ca-cert= Ns Ar file
|
|
|
|
.Op Fl -ca-path= Ns Ar dir
|
|
|
|
.Op Fl -cert= Ns Ar file
|
|
|
|
.Op Fl -crl= Ns Ar file
|
2008-12-15 08:27:44 +00:00
|
|
|
.Op Fl i Ar file
|
2013-07-26 15:53:43 +00:00
|
|
|
.Op Fl -key= Ns Ar file
|
2003-01-22 18:35:20 +00:00
|
|
|
.Op Fl N Ar file
|
2013-07-26 15:53:43 +00:00
|
|
|
.Op Fl -no-passive
|
|
|
|
.Op Fl -no-proxy= Ns Ar list
|
|
|
|
.Op Fl -no-sslv3
|
|
|
|
.Op Fl -no-tlsv1
|
|
|
|
.Op Fl -no-verify-hostname
|
|
|
|
.Op Fl -no-verify-peer
|
1996-07-05 01:03:20 +00:00
|
|
|
.Op Fl o Ar file
|
2013-07-26 15:53:43 +00:00
|
|
|
.Op Fl -referer= Ns Ar URL
|
2008-12-13 17:48:06 +00:00
|
|
|
.Op Fl S Ar bytes
|
|
|
|
.Op Fl T Ar seconds
|
2013-07-26 15:53:43 +00:00
|
|
|
.Op Fl -user-agent= Ns Ar agent-string
|
2000-06-28 16:55:15 +00:00
|
|
|
.Op Fl w Ar seconds
|
2008-12-13 17:48:06 +00:00
|
|
|
.Fl h Ar host Fl f Ar file Oo Fl c Ar dir Oc
|
1996-07-05 01:03:20 +00:00
|
|
|
.Sh DESCRIPTION
|
2002-04-19 23:44:58 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility provides a command-line interface to the
|
2000-06-28 16:55:15 +00:00
|
|
|
.Xr fetch 3
|
|
|
|
library.
|
|
|
|
Its purpose is to retrieve the file(s) pointed to by the URL(s) on the
|
|
|
|
command line.
|
1996-07-05 01:03:20 +00:00
|
|
|
.Pp
|
|
|
|
The following options are available:
|
1997-02-05 19:59:18 +00:00
|
|
|
.Bl -tag -width Fl
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl 1 , -one-file
|
2000-06-28 16:55:15 +00:00
|
|
|
Stop and return exit code 0 at the first successfully retrieved file.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl 4 , -ipv4-only
|
2000-06-28 16:55:15 +00:00
|
|
|
Forces
|
|
|
|
.Nm
|
|
|
|
to use IPv4 addresses only.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl 6 , -ipv6-only
|
2000-06-28 16:55:15 +00:00
|
|
|
Forces
|
|
|
|
.Nm
|
|
|
|
to use IPv6 addresses only.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl A , -no-redirect
|
2000-06-28 16:55:15 +00:00
|
|
|
Do not automatically follow ``temporary'' (302) redirects.
|
|
|
|
Some broken Web sites will return a redirect instead of a not-found
|
|
|
|
error when the requested object does not exist.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl a , -retry
|
1997-01-31 19:55:51 +00:00
|
|
|
Automatically retry the transfer upon soft failures.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl B Ar bytes , Fl -buffer-size= Ns Ar bytes
|
2000-06-28 16:55:15 +00:00
|
|
|
Specify the read buffer size in bytes.
|
2014-01-28 14:32:04 +00:00
|
|
|
The default is 16,384 bytes.
|
2000-06-28 16:55:15 +00:00
|
|
|
Attempts to set a buffer size lower than this will be silently
|
|
|
|
ignored.
|
|
|
|
The number of reads actually performed is reported at verbosity level
|
|
|
|
two or higher (see the
|
|
|
|
.Fl v
|
|
|
|
flag).
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl -bind-address= Ns Ar host
|
|
|
|
Specifies a hostname or IP address to which sockets used for outgoing
|
|
|
|
connections will be bound.
|
1996-07-05 01:03:20 +00:00
|
|
|
.It Fl c Ar dir
|
1997-01-30 21:43:44 +00:00
|
|
|
The file to retrieve is in directory
|
1996-07-05 01:03:20 +00:00
|
|
|
.Ar dir
|
1997-01-30 21:43:44 +00:00
|
|
|
on the remote host.
|
2000-06-29 10:35:24 +00:00
|
|
|
This option is deprecated and is provided for backward compatibility
|
|
|
|
only.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl -ca-cert= Ns Ar file
|
|
|
|
[SSL]
|
2013-07-28 06:16:12 +00:00
|
|
|
Path to certificate bundle containing trusted CA certificates.
|
2013-07-26 15:53:43 +00:00
|
|
|
If not specified,
|
|
|
|
.Pa /etc/ssl/cert.pem
|
|
|
|
is used.
|
|
|
|
The file may contain multiple CA certificates. The port
|
|
|
|
.Pa security/ca_root_nss
|
|
|
|
is a common source of a current CA bundle.
|
|
|
|
.It Fl -ca-path= Ns Ar dir
|
|
|
|
[SSL]
|
|
|
|
The directory
|
|
|
|
.Ar dir
|
|
|
|
contains trusted CA hashes.
|
|
|
|
.It Fl -cert= Ns Ar file
|
|
|
|
[SSL]
|
|
|
|
.Ar file
|
|
|
|
is a PEM encoded client certificate/key which will be used in
|
|
|
|
client certificate authentication.
|
|
|
|
.It Fl -crl= Ns Ar file
|
|
|
|
[SSL]
|
|
|
|
Points to certificate revocation list
|
|
|
|
.Ar file ,
|
|
|
|
which has to be in PEM format and may contain peer certificates that have
|
|
|
|
been revoked.
|
|
|
|
.It Fl d , -direct
|
2000-06-29 10:35:24 +00:00
|
|
|
Use a direct connection even if a proxy is configured.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl F , -force-restart
|
2000-06-28 16:55:15 +00:00
|
|
|
In combination with the
|
1999-10-23 15:22:53 +00:00
|
|
|
.Fl r
|
2000-06-28 16:55:15 +00:00
|
|
|
flag, forces a restart even if the local and remote files have
|
|
|
|
different modification times.
|
2003-03-11 08:21:16 +00:00
|
|
|
Implies
|
|
|
|
.Fl R .
|
1996-07-05 01:03:20 +00:00
|
|
|
.It Fl f Ar file
|
1997-01-30 21:43:44 +00:00
|
|
|
The file to retrieve is named
|
1996-07-05 01:03:20 +00:00
|
|
|
.Ar file
|
|
|
|
on the remote host.
|
2000-06-29 10:35:24 +00:00
|
|
|
This option is deprecated and is provided for backward compatibility
|
|
|
|
only.
|
1996-07-05 01:03:20 +00:00
|
|
|
.It Fl h Ar host
|
1997-01-30 21:43:44 +00:00
|
|
|
The file to retrieve is located on the host
|
|
|
|
.Ar host .
|
2000-06-29 10:35:24 +00:00
|
|
|
This option is deprecated and is provided for backward compatibility
|
|
|
|
only.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl i Ar file , Fl -if-modified-since= Ns Ar file
|
2008-12-15 08:27:44 +00:00
|
|
|
If-Modified-Since mode: the remote file will only be retrieved if it
|
|
|
|
is newer than
|
|
|
|
.Ar file
|
|
|
|
on the local host.
|
|
|
|
(HTTP only)
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl -key= Ns Ar file
|
|
|
|
[SSL]
|
|
|
|
.Ar file
|
|
|
|
is a PEM encoded client key that will be used in client certificate
|
|
|
|
authentication in case key and client certificate are stored separately.
|
|
|
|
.It Fl l , -symlink
|
2000-06-28 16:55:15 +00:00
|
|
|
If the target is a file-scheme URL, make a symbolic link to the target
|
|
|
|
rather than trying to copy it.
|
1997-01-30 21:43:44 +00:00
|
|
|
.It Fl M
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl m , -mirror
|
2000-07-08 09:34:53 +00:00
|
|
|
Mirror mode: if the file already exists locally and has the same size
|
|
|
|
and modification time as the remote file, it will not be fetched.
|
2000-07-17 21:51:48 +00:00
|
|
|
Note that the
|
|
|
|
.Fl m
|
|
|
|
and
|
|
|
|
.Fl r
|
|
|
|
flags are mutually exclusive.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl N Ar file , Fl -netrc= Ns Ar file
|
2003-01-22 18:35:20 +00:00
|
|
|
Use
|
|
|
|
.Ar file
|
|
|
|
instead of
|
|
|
|
.Pa ~/.netrc
|
2003-02-24 22:53:26 +00:00
|
|
|
to look up login names and passwords for FTP sites.
|
2003-01-22 18:35:20 +00:00
|
|
|
See
|
|
|
|
.Xr ftp 1
|
|
|
|
for a description of the file format.
|
|
|
|
This feature is experimental.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl n , -no-mtime
|
2005-02-13 22:25:33 +00:00
|
|
|
Do not preserve the modification time of the transferred file.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl -no-passive
|
|
|
|
Forces the FTP code to use active mode.
|
|
|
|
.It Fl -no-proxy= Ns Ar list
|
|
|
|
Either a single asterisk, which disables the use of proxies
|
|
|
|
altogether, or a comma- or whitespace-separated list of hosts for
|
|
|
|
which proxies should not be used.
|
|
|
|
.It Fl -no-sslv3
|
|
|
|
[SSL]
|
|
|
|
Don't allow SSL version 3 when negotiating the connection.
|
|
|
|
.It Fl -no-tlsv1
|
|
|
|
[SSL]
|
|
|
|
Don't allow TLS version 1 when negotiating the connection.
|
|
|
|
.It Fl -no-verify-hostname
|
|
|
|
[SSL]
|
|
|
|
Do not verify that the hostname matches the subject of the
|
|
|
|
certificate presented by the server.
|
|
|
|
.It Fl -no-verify-peer
|
|
|
|
[SSL]
|
|
|
|
Do not verify the peer certificate against trusted CAs.
|
|
|
|
.It Fl o Ar file , Fl output= Ns Ar file
|
2001-07-15 08:06:20 +00:00
|
|
|
Set the output file name to
|
1997-01-30 21:43:44 +00:00
|
|
|
.Ar file .
|
|
|
|
By default, a ``pathname'' is extracted from the specified URI, and
|
2000-06-28 16:55:15 +00:00
|
|
|
its basename is used as the name of the output file.
|
|
|
|
A
|
1997-01-30 21:43:44 +00:00
|
|
|
.Ar file
|
|
|
|
argument of
|
|
|
|
.Sq Li \&-
|
|
|
|
indicates that results are to be directed to the standard output.
|
2004-07-30 08:43:16 +00:00
|
|
|
If the
|
|
|
|
.Ar file
|
|
|
|
argument is a directory, fetched file(s) will be placed within the
|
|
|
|
directory, with name(s) selected as in the default behaviour.
|
1997-01-30 21:43:44 +00:00
|
|
|
.It Fl P
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl p , -passive
|
2000-06-28 16:55:15 +00:00
|
|
|
Use passive FTP.
|
2011-09-27 19:02:44 +00:00
|
|
|
These flags have no effect, since passive FTP is the default, but are
|
|
|
|
provided for compatibility with earlier versions where active FTP was
|
|
|
|
the default.
|
2013-07-26 15:53:43 +00:00
|
|
|
To force active mode, use the
|
|
|
|
.Fl -no-passive
|
|
|
|
flag or set the
|
2011-09-27 19:02:44 +00:00
|
|
|
.Ev FTP_PASSIVE_MODE
|
|
|
|
environment variable to
|
|
|
|
.Ql NO .
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl -referer= Ns Ar URL
|
|
|
|
Specifies the referrer URL to use for HTTP requests.
|
|
|
|
If
|
|
|
|
.Ar URL
|
|
|
|
is set to
|
|
|
|
.Dq auto ,
|
|
|
|
the document URL will be used as referrer URL.
|
|
|
|
.It Fl q , -quiet
|
2000-03-01 12:20:22 +00:00
|
|
|
Quiet mode.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl R , -keep-output
|
2000-06-28 16:55:15 +00:00
|
|
|
The output files are precious, and should not be deleted under any
|
|
|
|
circumstances, even if the transfer failed or was incomplete.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl r , -restart
|
1997-01-30 21:43:44 +00:00
|
|
|
Restart a previously interrupted transfer.
|
2000-07-17 21:51:48 +00:00
|
|
|
Note that the
|
|
|
|
.Fl m
|
|
|
|
and
|
|
|
|
.Fl r
|
|
|
|
flags are mutually exclusive.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl S Ar bytes , Fl -require-size= Ns Ar bytes
|
2000-06-28 16:55:15 +00:00
|
|
|
Require the file size reported by the server to match the specified
|
|
|
|
value.
|
|
|
|
If it does not, a message is printed and the file is not fetched.
|
|
|
|
If the server does not support reporting file sizes, this option is
|
|
|
|
ignored and the file is fetched unconditionally.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl s , -print-size
|
2000-06-28 16:55:15 +00:00
|
|
|
Print the size in bytes of each requested file, without fetching it.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl T Ar seconds , Fl -timeout= Ns Ar seconds
|
1996-08-22 21:30:51 +00:00
|
|
|
Set timeout value to
|
2001-02-01 16:38:02 +00:00
|
|
|
.Ar seconds .
|
1996-09-19 18:07:24 +00:00
|
|
|
Overrides the environment variables
|
1996-08-22 21:30:51 +00:00
|
|
|
.Ev FTP_TIMEOUT
|
2000-06-28 16:55:15 +00:00
|
|
|
for FTP transfers or
|
2001-07-15 08:06:20 +00:00
|
|
|
.Ev HTTP_TIMEOUT
|
2000-06-28 16:55:15 +00:00
|
|
|
for HTTP transfers if set.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl U , -passive-portrange-default
|
2001-03-24 00:32:11 +00:00
|
|
|
When using passive FTP, allocate the port for the data connection from
|
|
|
|
the low (default) port range.
|
|
|
|
See
|
|
|
|
.Xr ip 4
|
|
|
|
for details on how to specify which port range this corresponds to.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl -user-agent= Ns Ar agent-string
|
|
|
|
Specifies the User-Agent string to use for HTTP requests.
|
|
|
|
This can be useful when working with HTTP origin or proxy servers that
|
|
|
|
differentiate between user agents.
|
|
|
|
.It Fl v , -verbose
|
2000-07-17 22:44:36 +00:00
|
|
|
Increase verbosity level.
|
2013-07-26 15:53:43 +00:00
|
|
|
.It Fl w Ar seconds , Fl -retry-delay= Ns Ar seconds
|
2000-06-28 16:55:15 +00:00
|
|
|
When the
|
|
|
|
.Fl a
|
|
|
|
flag is specified, wait this many seconds between successive retries.
|
1997-02-05 19:59:18 +00:00
|
|
|
.El
|
2002-01-16 16:16:08 +00:00
|
|
|
.Pp
|
|
|
|
If
|
|
|
|
.Nm
|
|
|
|
receives a
|
|
|
|
.Dv SIGINFO
|
|
|
|
signal (see the
|
|
|
|
.Cm status
|
|
|
|
argument for
|
|
|
|
.Xr stty 1 ) ,
|
|
|
|
the current transfer rate statistics will be written to the
|
|
|
|
standard error output, in the same format as the standard completion
|
|
|
|
message.
|
1996-07-05 01:03:20 +00:00
|
|
|
.Sh ENVIRONMENT
|
2004-01-26 07:55:30 +00:00
|
|
|
.Bl -tag -width HTTP_TIMEOUT
|
|
|
|
.It Ev FTP_TIMEOUT
|
2007-12-28 19:47:37 +00:00
|
|
|
Maximum time, in seconds, to wait before aborting an FTP connection.
|
2004-01-26 07:55:30 +00:00
|
|
|
.It Ev HTTP_TIMEOUT
|
2007-12-28 19:47:37 +00:00
|
|
|
Maximum time, in seconds, to wait before aborting an HTTP connection.
|
2000-06-28 16:55:15 +00:00
|
|
|
.El
|
2004-01-26 07:55:30 +00:00
|
|
|
.Pp
|
2007-12-28 19:47:37 +00:00
|
|
|
See
|
2004-01-26 07:55:30 +00:00
|
|
|
.Xr fetch 3
|
2007-12-28 19:47:37 +00:00
|
|
|
for a description of additional environment variables, including
|
|
|
|
.Ev FETCH_BIND_ADDRESS ,
|
|
|
|
.Ev FTP_LOGIN ,
|
|
|
|
.Ev FTP_PASSIVE_MODE ,
|
|
|
|
.Ev FTP_PASSWORD ,
|
|
|
|
.Ev FTP_PROXY ,
|
|
|
|
.Ev ftp_proxy ,
|
2013-07-30 13:07:55 +00:00
|
|
|
.Ev HTTP_ACCEPT ,
|
2007-12-28 19:47:37 +00:00
|
|
|
.Ev HTTP_AUTH ,
|
|
|
|
.Ev HTTP_PROXY ,
|
|
|
|
.Ev http_proxy ,
|
|
|
|
.Ev HTTP_PROXY_AUTH ,
|
|
|
|
.Ev HTTP_REFERER ,
|
|
|
|
.Ev HTTP_USER_AGENT ,
|
|
|
|
.Ev NETRC ,
|
2013-07-26 15:53:43 +00:00
|
|
|
.Ev NO_PROXY ,
|
|
|
|
.Ev no_proxy ,
|
|
|
|
.Ev SSL_CA_CERT_FILE ,
|
|
|
|
.Ev SSL_CA_CERT_PATH ,
|
|
|
|
.Ev SSL_CLIENT_CERT_FILE ,
|
|
|
|
.Ev SSL_CLIENT_KEY_FILE ,
|
|
|
|
.Ev SSL_CRL_FILE ,
|
|
|
|
.Ev SSL_NO_SSL3 ,
|
|
|
|
.Ev SSL_NO_TLS1 ,
|
|
|
|
.Ev SSL_NO_VERIFY_HOSTNAME
|
2013-07-21 07:24:25 +00:00
|
|
|
and
|
2013-07-26 15:53:43 +00:00
|
|
|
.Ev SSL_NO_VERIFY_PEER .
|
2005-01-18 13:43:56 +00:00
|
|
|
.Sh EXIT STATUS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command returns zero on success, or one on failure.
|
|
|
|
If multiple URLs are listed on the command line,
|
|
|
|
.Nm
|
2006-04-22 03:04:24 +00:00
|
|
|
will attempt to retrieve each one of them in turn, and will return
|
|
|
|
zero only if they were all successfully retrieved.
|
2008-12-15 08:27:44 +00:00
|
|
|
.Pp
|
|
|
|
If the
|
|
|
|
.Fl i
|
|
|
|
argument is used and the remote file is not newer than the
|
|
|
|
specified file then the command will still return success,
|
|
|
|
although no file is transferred.
|
1996-07-05 01:03:20 +00:00
|
|
|
.Sh SEE ALSO
|
2000-06-28 16:55:15 +00:00
|
|
|
.Xr fetch 3
|
1996-07-05 01:03:20 +00:00
|
|
|
.Sh HISTORY
|
2001-07-15 08:06:20 +00:00
|
|
|
The
|
2000-06-28 16:55:15 +00:00
|
|
|
.Nm
|
1996-08-23 00:57:08 +00:00
|
|
|
command appeared in
|
|
|
|
.Fx 2.1.5 .
|
2000-06-28 16:55:15 +00:00
|
|
|
This implementation first appeared in
|
|
|
|
.Fx 4.1 .
|
1997-01-30 21:43:44 +00:00
|
|
|
.Sh AUTHORS
|
2000-11-22 09:35:58 +00:00
|
|
|
.An -nosplit
|
1997-01-30 21:43:44 +00:00
|
|
|
The original implementation of
|
|
|
|
.Nm
|
1998-03-23 07:48:45 +00:00
|
|
|
was done by
|
2014-06-23 08:23:05 +00:00
|
|
|
.An Jean-Marc Zucconi Aq Mt jmz@FreeBSD.org .
|
1998-03-23 07:48:45 +00:00
|
|
|
It was extensively re-worked for
|
1997-02-22 23:43:32 +00:00
|
|
|
.Fx 2.2
|
1998-03-23 07:48:45 +00:00
|
|
|
by
|
2014-06-23 08:23:05 +00:00
|
|
|
.An Garrett Wollman Aq Mt wollman@FreeBSD.org ,
|
2000-06-28 16:55:15 +00:00
|
|
|
and later completely rewritten to use the
|
|
|
|
.Xr fetch 3
|
|
|
|
library by
|
2014-06-23 08:23:05 +00:00
|
|
|
.An Dag-Erling Sm\(/orgrav Aq Mt des@FreeBSD.org
|
2013-07-26 15:53:43 +00:00
|
|
|
and
|
2014-06-23 08:23:05 +00:00
|
|
|
.An Michael Gmelin Aq Mt freebsd@grem.de .
|
2000-06-28 16:55:15 +00:00
|
|
|
.Sh NOTES
|
1997-01-31 19:55:51 +00:00
|
|
|
The
|
1997-07-25 19:35:44 +00:00
|
|
|
.Fl b
|
2000-06-28 16:55:15 +00:00
|
|
|
and
|
|
|
|
.Fl t
|
|
|
|
options are no longer supported and will generate warnings.
|
|
|
|
They were workarounds for bugs in other OSes which this implementation
|
|
|
|
does not trigger.
|
1999-01-15 16:56:22 +00:00
|
|
|
.Pp
|
2000-06-29 10:35:24 +00:00
|
|
|
One cannot both use the
|
|
|
|
.Fl h ,
|
2000-07-18 21:05:11 +00:00
|
|
|
.Fl c
|
|
|
|
and
|
2000-06-28 16:55:15 +00:00
|
|
|
.Fl f
|
2003-06-10 20:34:50 +00:00
|
|
|
options and specify URLs on the command line.
|