xref: /freebsd/usr.bin/fetch/fetch.1 (revision c1468430965eeec2be29418d5205a40253de3acf)
1c1468430SGarrett Wollman.\" $Id: fetch.1,v 1.26 1998/12/08 13:00:48 cracauer Exp $
2c1468430SGarrett Wollman.Dd January 15, 1999
37fefc698SJordan K. Hubbard.Dt FETCH 1
4c1468430SGarrett Wollman.Os FreeBSD 3.1
57fefc698SJordan K. Hubbard.Sh NAME
67fefc698SJordan K. Hubbard.Nm fetch
77fefc698SJordan K. Hubbard.Nd retrieve a file by Uniform Resource Locator
87fefc698SJordan K. Hubbard.Sh SYNOPSIS
97fefc698SJordan K. Hubbard.Nm fetch
109f63f2aaSDag-Erling Smørgrav.Op Fl MPablmnpqrtv
110637c2ccSJordan K. Hubbard.Op Fl S Ar size
129f63f2aaSDag-Erling Smørgrav.Op Fl T Ar timeout
137fefc698SJordan K. Hubbard.Op Fl o Ar file
147fefc698SJordan K. Hubbard.Ar URL
1576dafb89SGarrett Wollman.Op Ar ...
167fefc698SJordan K. Hubbard.Nm fetch
179f63f2aaSDag-Erling Smørgrav.Op Fl MPRlmnpqrv
180637c2ccSJordan K. Hubbard.Op Fl S Ar size
197fefc698SJordan K. Hubbard.Op Fl o Ar file
207fefc698SJordan K. Hubbard.Op Fl c Ar dir
217fefc698SJordan K. Hubbard.Fl f Ar file
227fefc698SJordan K. Hubbard.Fl h Ar host
237fefc698SJordan K. Hubbard.Sh DESCRIPTION
247fefc698SJordan K. Hubbard.Nm fetch
257fefc698SJordan K. Hubbardallows a user to transfer files from a remote network site using
267fefc698SJordan K. Hubbardeither the
2776dafb89SGarrett Wollman.Tn FTP
287fefc698SJordan K. Hubbardor the
2976dafb89SGarrett Wollman.Tn HTTP
307fefc698SJordan K. Hubbardprotocol. In the first form of the command, the
317fefc698SJordan K. Hubbard.Ar URL
327fefc698SJordan K. Hubbardmay be of the form
3378be3199SGarrett Wollman.Li http://site.domain/path/to/the/file
347fefc698SJordan K. Hubbardor
3578be3199SGarrett Wollman.Li ftp://site.domain/path/to/the/file .
3678be3199SGarrett WollmanTo denote a local filename to be copied or linked to (see the
37fc6fcbf9SJordan K. Hubbard.Fl l
3878be3199SGarrett Wollmanflag below), the
39fc6fcbf9SJordan K. Hubbard.Em file:/path/to/the/file
405e922007SBill FennerURL form is used.  See URL SYNTAX, below.
4178be3199SGarrett Wollman.Pp
427fefc698SJordan K. HubbardThe second form of the command can be used to get a file using the
4378be3199SGarrett Wollman.Tn FTP
447fefc698SJordan K. Hubbardprotocol, specifying the file name and the remote host with the
457fefc698SJordan K. Hubbard.Fl h
467fefc698SJordan K. Hubbardand the
477fefc698SJordan K. Hubbard.Fl f
487fefc698SJordan K. Hubbardflags.
497fefc698SJordan K. Hubbard.Pp
507fefc698SJordan K. HubbardThe following options are available:
5176dafb89SGarrett Wollman.Bl -tag -width Fl
522494e810SGarrett Wollman.It Fl a
532494e810SGarrett WollmanAutomatically retry the transfer upon soft failures.
540c8cc99eSGarrett Wollman.It Fl b
550c8cc99eSGarrett WollmanWork around a bug in some
560c8cc99eSGarrett Wollman.Tn HTTP
570c8cc99eSGarrett Wollmanservers which fail to correctly implement the
580c8cc99eSGarrett Wollman.Tn TCP
590c8cc99eSGarrett Wollmanprotocol.
6078be3199SGarrett Wollman.It Fl c Ar dir
6178be3199SGarrett WollmanThe file to retrieve is in directory
6278be3199SGarrett Wollman.Ar dir
6378be3199SGarrett Wollmanon the remote host.
6478be3199SGarrett Wollman.It Fl f Ar file
6578be3199SGarrett WollmanThe file to retrieve is named
6678be3199SGarrett Wollman.Ar file
6778be3199SGarrett Wollmanon the remote host.
6878be3199SGarrett Wollman.It Fl h Ar host
6978be3199SGarrett WollmanThe file to retrieve is located on the host
7078be3199SGarrett Wollman.Ar host .
7178be3199SGarrett Wollman.It Fl l
7278be3199SGarrett WollmanIf target is a
7378be3199SGarrett Wollman.Ar file:/
7478be3199SGarrett Wollmanstyle of URL, make a link to the target rather than trying
7578be3199SGarrett Wollmanto copy it.
767fefc698SJordan K. Hubbard.It Fl M
777fefc698SJordan K. Hubbard.It Fl m
787fefc698SJordan K. HubbardMirror mode: Set the modification time of the file so that it is
797fefc698SJordan K. Hubbardidentical to the modification time of the file at the remote host.
807fefc698SJordan K. HubbardIf the file already exists on the local host and is identical (as
817fefc698SJordan K. Hubbardgauged by size and modification time), no transfer is done.
826b5c2db2SJordan K. Hubbard.It Fl n
836b5c2db2SJordan K. HubbardDon't preserve the modtime of the transfered file, use the current time.
8478be3199SGarrett Wollman.It Fl o Ar file
8578be3199SGarrett WollmanSet the output file name to
8678be3199SGarrett Wollman.Ar file .
8778be3199SGarrett WollmanBy default, a ``pathname'' is extracted from the specified URI, and
8878be3199SGarrett Wollmanits basename is used as the name of the output file.  A
8978be3199SGarrett Wollman.Ar file
9078be3199SGarrett Wollmanargument of
9178be3199SGarrett Wollman.Sq Li \&-
9278be3199SGarrett Wollmanindicates that results are to be directed to the standard output.
937fefc698SJordan K. Hubbard.It Fl P
947fefc698SJordan K. Hubbard.It Fl p
9578be3199SGarrett WollmanUse the passive mode of the
9678be3199SGarrett Wollman.Tn FTP
9778be3199SGarrett Wollmanprotocol.  This is useful for crossing certain sorts of firewalls.
9878be3199SGarrett Wollman.It Fl q
9978be3199SGarrett WollmanQuiet mode. Do not report transfer progress on the terminal.
10078be3199SGarrett Wollman.It Fl R
10178be3199SGarrett WollmanThe filenames specified are ``precious'', and should not be deleted
10278be3199SGarrett Wollmanunder any circumstances, even if the transfer failed or was incomplete.
10378be3199SGarrett Wollman.It Fl r
10478be3199SGarrett WollmanRestart a previously interrupted transfer.
1050637c2ccSJordan K. Hubbard.It Fl S Ar bytes
1069f63f2aaSDag-Erling SmørgravRequire the file size reported by
1070637c2ccSJordan K. Hubbard.Tn FTP
1080637c2ccSJordan K. Hubbardor
1090637c2ccSJordan K. Hubbard.Tn HTTP
1100637c2ccSJordan K. Hubbardserver to match the value specified with this option.
1110637c2ccSJordan K. HubbardOn mismatch, a message is printed and the file will not be fetched.
1120637c2ccSJordan K. HubbardIf the server does not support reporting of file sizes, the option
1130637c2ccSJordan K. Hubbardwill be ignored and the file will be retrieved anyway.
1140637c2ccSJordan K. HubbardThis option is useful to prevent
1150637c2ccSJordan K. Hubbard.Nm fetch
1160637c2ccSJordan K. Hubbardfrom downloading a file that is either incomplete or the wrong version,
1170637c2ccSJordan K. Hubbardgiven the correct size of the file in advance.
118b451f452SMartin Cracauer.It Fl s
119b451f452SMartin CracauerAsk server for size of file in bytes and print it to stdout. Do not
120b451f452SMartin Cracaueractually fetch the file.
121fc6fcbf9SJordan K. Hubbard.It Fl T Ar seconds
122fc6fcbf9SJordan K. HubbardSet timeout value to
123fc6fcbf9SJordan K. Hubbard.Ar seconds.
124a43a248cSPeter WemmOverrides the environment variables
125fc6fcbf9SJordan K. Hubbard.Ev FTP_TIMEOUT
126a43a248cSPeter Wemmfor ftp transfers or
127a43a248cSPeter Wemm.Ev HTTP_TIMEOUT
128a43a248cSPeter Wemmfor http transfers if set.
1299f63f2aaSDag-Erling Smørgrav.It Fl t
1309f63f2aaSDag-Erling SmørgravWork around a different set of buggy
1319f63f2aaSDag-Erling Smørgrav.Tn TCP
1329f63f2aaSDag-Erling Smørgravimplementations.
1337ae26f14SJordan K. Hubbard.It Fl v
13478be3199SGarrett WollmanIncrease verbosity.  More
13578be3199SGarrett Wollman.Fl v Ns \&'s
13678be3199SGarrett Wollmanresult in more information.
1377fefc698SJordan K. Hubbard.El
13878be3199SGarrett Wollman.Pp
13978be3199SGarrett WollmanMany options are also controlled solely by the environment (this is a
14078be3199SGarrett Wollmanbug).
1415e922007SBill Fenner.Sh URL SYNTAX
1425e922007SBill Fenner.Nm
1435e922007SBill Fenneraccepts
1445e922007SBill Fenner.Tn http
1455e922007SBill Fennerand
1465e922007SBill Fenner.Tn ftp
1475e922007SBill FennerURL's, as described in RFC1738.  For
1485e922007SBill Fenner.Tn ftp
1495e922007SBill FennerURL's, a username and password may be specified, using the syntax
1505e922007SBill Fenner.Li ftp://user:password@host/.
1515e922007SBill FennerIf the path is to be absolute, as opposed to relative to the user's
1525e922007SBill Fennerhome directory, it must start with %2F, as in
1535e922007SBill Fenner.Li ftp://root:mypass@localhost/%2Fetc/passwd .
15478be3199SGarrett Wollman.Sh PROXY SERVERS
15578be3199SGarrett WollmanMany sites use application gateways (``proxy servers'') in their
15678be3199SGarrett Wollmanfirewalls in order to allow communication across the firewall using a
15778be3199SGarrett Wollmantrusted protocol.  The
15878be3199SGarrett Wollman.Nm fetch
15978be3199SGarrett Wollmanprogram can use both the
16078be3199SGarrett Wollman.Tn FTP
16178be3199SGarrett Wollmanand the
16278be3199SGarrett Wollman.Tn HTTP
16378be3199SGarrett Wollmanprotocol with a proxy server.
16478be3199SGarrett Wollman.Tn FTP
16578be3199SGarrett Wollmanproxy servers can only relay
16678be3199SGarrett Wollman.Tn FTP
16778be3199SGarrett Wollmanrequests;
16878be3199SGarrett Wollman.Tn HTTP
16978be3199SGarrett Wollmanproxy servers can relay both
17078be3199SGarrett Wollman.Tn FTP
17178be3199SGarrett Wollmanand
17278be3199SGarrett Wollman.Tn HTTP
17378be3199SGarrett Wollmanrequests.
17478be3199SGarrett WollmanA proxy server can be configured by defining an environment variable
17578be3199SGarrett Wollmannamed
17678be3199SGarrett Wollman.Dq Va PROTO Ns Ev _PROXY ,
17778be3199SGarrett Wollmanwhere
17878be3199SGarrett Wollman.Va PROTO
17978be3199SGarrett Wollmanis the name of the protocol in upper case.  The value of the
18078be3199SGarrett Wollmanenvironment variable specifies a hostname, optionally followed by a
18178be3199SGarrett Wollmancolon and a port number.
18278be3199SGarrett Wollman.Pp
18378be3199SGarrett WollmanThe
18478be3199SGarrett Wollman.Tn FTP
1858a2f8e39SBill Fennerproxy client passes the remote username, host and port as the
18678be3199SGarrett Wollman.Tn FTP
1878a2f8e39SBill Fennersession's username, in the form
1888a2f8e39SBill Fenner.Do Va remoteuser Ns Li \&@ Ns Va remotehost
1898a2f8e39SBill Fenner.Op Li \^@ Ns Va port
1908a2f8e39SBill Fenner.Dc .
19178be3199SGarrett WollmanThe
19278be3199SGarrett Wollman.Tn HTTP
19378be3199SGarrett Wollmanproxy client simply passes the originally-requested URI to the remote
19478be3199SGarrett Wollmanserver in an
19578be3199SGarrett Wollman.Tn HTTP
19678be3199SGarrett Wollman.Dq Li GET
19778be3199SGarrett Wollmanrequest.  HTTP proxy authentication is not yet implemented.
19876dafb89SGarrett Wollman.Sh HTTP AUTHENTICATION
19976dafb89SGarrett WollmanThe
20076dafb89SGarrett Wollman.Tn HTTP
20176dafb89SGarrett Wollmanprotocol includes support for various methods of authentication.
20276dafb89SGarrett WollmanCurrently, the
20376dafb89SGarrett Wollman.Dq basic
20476dafb89SGarrett Wollmanmethod, which provides no security from packet-sniffing or
20576dafb89SGarrett Wollmanman-in-the-middle attacks, is the only method supported in
20676dafb89SGarrett Wollman.Nm fetch .
20776dafb89SGarrett WollmanAuthentication is enabled by the
20876dafb89SGarrett Wollman.Ev HTTP_AUTH
20976dafb89SGarrett Wollmanand
21076dafb89SGarrett Wollman.Ev HTTP_PROXY_AUTH
21176dafb89SGarrett Wollmanenvironment variables.  Both variables have the same format, which
21276dafb89SGarrett Wollmanconsists of space-separated list of parameter settings, where each
21376dafb89SGarrett Wollmansetting consists of a colon-separated list of parameters.  The first
21476dafb89SGarrett Wollmantwo parameters are always the (case-insensitive) authentication scheme
21576dafb89SGarrett Wollmanname and the realm in which authentication is to be performed.  If the
21676dafb89SGarrett Wollmanrealm is specified as
21776dafb89SGarrett Wollman.Sq Li \&* ,
21876dafb89SGarrett Wollmanthen it will match all realms not specified otherwise.
21976dafb89SGarrett Wollman.Pp
220eeed58d8SGarrett WollmanThe
22176dafb89SGarrett Wollman.Li basic
22276dafb89SGarrett Wollmanauthentication scheme uses two additional optional parameters; the
22376dafb89SGarrett Wollmanfirst is a user name, and the second is the password associated with
22476dafb89SGarrett Wollmanit.  If either the password or both parameters are not specified in
22576dafb89SGarrett Wollmanthe environment, and the standard input of
22676dafb89SGarrett Wollman.Nm
22776dafb89SGarrett Wollmanis connected to a terminal, then
22876dafb89SGarrett Wollman.Nm
22976dafb89SGarrett Wollmanwill prompt the user to enter the missing parameters.  Thus, if the
23076dafb89SGarrett Wollmanuser is known as
23176dafb89SGarrett Wollman.Dq Li jane
23276dafb89SGarrett Wollmanin the
23376dafb89SGarrett Wollman.Dq Li WallyWorld
23476dafb89SGarrett Wollmanrealm, and has a password of
23576dafb89SGarrett Wollman.Dq Li QghiLx79
23676dafb89SGarrett Wollmanthere, then she might set her
23776dafb89SGarrett Wollman.Ev HTTP_AUTH
23876dafb89SGarrett Wollmanvariable to:
23976dafb89SGarrett Wollman.Bl -enum -offset indent
24076dafb89SGarrett Wollman.It
24176dafb89SGarrett Wollman.Dq Li basic:WallyWorld:jane:QghiLx79
24276dafb89SGarrett Wollman.It
24376dafb89SGarrett Wollman.Dq Li basic:WallyWorld:jane ,
24476dafb89SGarrett Wollmanor
24576dafb89SGarrett Wollman.It
24676dafb89SGarrett Wollman.Dq Li basic:WallyWorld
24776dafb89SGarrett Wollman.El
24876dafb89SGarrett Wollman.Pp
24976dafb89SGarrett Wollmanand
25076dafb89SGarrett Wollman.Nm
25176dafb89SGarrett Wollmanwill prompt for the missing information if it is required.  She might
25276dafb89SGarrett Wollmanalso specify a realm of
25376dafb89SGarrett Wollman.Dq Li \&*
25476dafb89SGarrett Wollmaninstead of
25576dafb89SGarrett Wollman.Dq Li WallyWorld
25676dafb89SGarrett Wollmanto indicate that the parameters can be applied to any realm.  (This is
25776dafb89SGarrett Wollmanmost commonly used in a construction such as
25876dafb89SGarrett Wollman.Dq Li basic:* ,
25976dafb89SGarrett Wollmanwhich indicates to
26076dafb89SGarrett Wollman.Nm
26176dafb89SGarrett Wollmanthat it may offer to do
26276dafb89SGarrett Wollman.Li basic
26376dafb89SGarrett Wollmanauthentication for any realm.
26476dafb89SGarrett Wollman.Sh ERRORS
26576dafb89SGarrett WollmanThe
26676dafb89SGarrett Wollman.Nm
26776dafb89SGarrett Wollmancommand returns zero on success, or a non-zero value from
26876dafb89SGarrett Wollman.Aq Pa sysexits.h
26976dafb89SGarrett Wollmanon failure.  If multiple URIs are given for retrieval,
27076dafb89SGarrett Wollman.Nm
27176dafb89SGarrett Wollmanwill attempt all of them and return zero only if all succeeded
27276dafb89SGarrett Wollman(otherwise it will return the error from the last failure).
2737fefc698SJordan K. Hubbard.Sh ENVIRONMENT
27478be3199SGarrett Wollman.Bl -tag -width FTP_PASSIVE_MODE -offset indent
27578be3199SGarrett Wollman.It Ev FTP_TIMEOUT
27678be3199SGarrett Wollmanmaximum time, in seconds, to wait before aborting an
27778be3199SGarrett Wollman.Tn FTP
27878be3199SGarrett Wollmanconnection.
27978be3199SGarrett Wollman.It Ev FTP_LOGIN
28078be3199SGarrett Wollmanthe login name used for
28178be3199SGarrett Wollman.Tn FTP
28278be3199SGarrett Wollmantransfers (default
28378be3199SGarrett Wollman.Dq Li anonymous )
28476dafb89SGarrett Wollman.It Ev FTP_PASSIVE_MODE
28576dafb89SGarrett Wollmanforce the use of passive mode FTP
28678be3199SGarrett Wollman.It Ev FTP_PASSWORD
28778be3199SGarrett Wollmanthe password used for
28878be3199SGarrett Wollman.Tn FTP
28978be3199SGarrett Wollmantransfers (default
29078be3199SGarrett Wollman.Dq Va yourname Ns Li \&@ Ns Va yourhost )
29178be3199SGarrett Wollman.It Ev FTP_PROXY
2928a2f8e39SBill Fennerthe address (in the form
2938a2f8e39SBill Fenner.Do Va hostname Ns
2948a2f8e39SBill Fenner.Op Li : Ns Va port
2958a2f8e39SBill Fenner.Dc )
2968a2f8e39SBill Fennerof a proxy server which understands
29778be3199SGarrett Wollman.Tn FTP
29876dafb89SGarrett Wollman.It Ev HTTP_AUTH
29976dafb89SGarrett Wollmandefines authentication parameters for
30076dafb89SGarrett Wollman.Tn HTTP
30176dafb89SGarrett Wollman.It Ev HTTP_PROXY
3028a2f8e39SBill Fennerthe address (in the form
3038a2f8e39SBill Fenner.Do Va hostname Ns
3048a2f8e39SBill Fenner.Op Li : Ns Va port
3058a2f8e39SBill Fenner.Dc )
3068a2f8e39SBill Fennerof a proxy server which understands
30776dafb89SGarrett Wollman.Tn HTTP
30876dafb89SGarrett Wollman.It Ev HTTP_PROXY_AUTH
30976dafb89SGarrett Wollmandefines authentication parameters for
31076dafb89SGarrett Wollman.Tn HTTP
31176dafb89SGarrett Wollmanproxy servers
31276dafb89SGarrett Wollman.It Ev HTTP_TIMEOUT
31376dafb89SGarrett Wollmanmaximum time, in seconds, to wait before aborting an
31476dafb89SGarrett Wollman.Tn HTTP
31576dafb89SGarrett Wollmanconnection.
3167fefc698SJordan K. Hubbard.Sh SEE ALSO
317da1ff3cbSWolfram Schneider.Xr ftp 1 ,
318da1ff3cbSWolfram Schneider.Xr tftp 1
319c1468430SGarrett Wollman.Rs
320c1468430SGarrett Wollman.%A R. Fielding
321c1468430SGarrett Wollman.%A J. Gettys
322c1468430SGarrett Wollman.%A J. Mogul
323c1468430SGarrett Wollman.%A H. Frystyk
324c1468430SGarrett Wollman.%A T. Berners-Lee
325c1468430SGarrett Wollman.%T "Hypertext Transfer Protocol \-\- HTTP/1.1"
326c1468430SGarrett Wollman.%O RFC 2068
327c1468430SGarrett Wollman.%D January 1997
328c1468430SGarrett Wollman.Re
3297fefc698SJordan K. Hubbard.Sh HISTORY
3307fefc698SJordan K. HubbardThe
3317fefc698SJordan K. Hubbard.Nm fetch
33285cf659aSMike Pritchardcommand appeared in
33385cf659aSMike Pritchard.Fx 2.1.5 .
33478be3199SGarrett Wollman.Sh AUTHORS
33578be3199SGarrett WollmanThe original implementation of
33678be3199SGarrett Wollman.Nm
337306005e7SPhilippe Charnierwas done by
338306005e7SPhilippe Charnier.An Jean-Marc Zucconi .
339306005e7SPhilippe CharnierIt was extensively re-worked for
340bc5d5816SWolfram Schneider.Fx 2.2
341306005e7SPhilippe Charnierby
342306005e7SPhilippe Charnier.An Garrett Wollman .
3432494e810SGarrett Wollman.Sh BUGS
3442494e810SGarrett WollmanThere are too many environment variables and command-line options.
3452494e810SGarrett Wollman.Pp
3462494e810SGarrett WollmanThe
3472494e810SGarrett Wollman.Fl a
3482494e810SGarrett Wollmanoption is only implemented for certain kinds of
3492494e810SGarrett Wollman.Tn HTTP
3502494e810SGarrett Wollmanfailures, and no
3512494e810SGarrett Wollman.Tn FTP
3522494e810SGarrett Wollmanfailures.
3532494e810SGarrett Wollman.Pp
35476dafb89SGarrett WollmanOnly the
35576dafb89SGarrett Wollman.Dq basic
35676dafb89SGarrett Wollmanauthentication mode is implemented for
35776dafb89SGarrett Wollman.Tn HTTP .
35876dafb89SGarrett WollmanThis should be replaced by digest authentication.
3590c8cc99eSGarrett Wollman.Pp
360eeed58d8SGarrett WollmanSome
361eeed58d8SGarrett Wollman.Tn TCP
362eeed58d8SGarrett Wollmanimplementations (other than
363cffe96c9SGarrett Wollman.Tn FreeBSD )
364eeed58d8SGarrett Wollmanfail to correctly implement cases where the
365eeed58d8SGarrett Wollman.Dv SYN
366eeed58d8SGarrett Wollmanand/or
367eeed58d8SGarrett Wollman.Dv FIN
368eeed58d8SGarrett Wollmancontrol flags are specified in packets which also contain data.
3690c8cc99eSGarrett WollmanThe
370eeed58d8SGarrett Wollman.Sq Fl t
371eeed58d8SGarrett Wollmanflag works around the latter deficiency and the
372eeed58d8SGarrett Wollman.Sq Fl b
373eeed58d8SGarrett Wollmanflag works around the former.  Since these are errors of the server's
374eeed58d8SGarrett Wollman.Tn TCP
375eeed58d8SGarrett Wollmanstack, the best we can do is provide these workarounds.  Given a correct
376eeed58d8SGarrett Wollmanserver, an optimal
377eeed58d8SGarrett Wollman.Tn HTTP
378eeed58d8SGarrett Wollmantransfer without
379eeed58d8SGarrett Wollman.Fl t
380eeed58d8SGarrett Wollmanand
3810c8cc99eSGarrett Wollman.Fl b
382eeed58d8SGarrett Wollmaninvolves a minimum of two round trips (for small replies), one less than
383eeed58d8SGarrett Wollmanother implementations.
384c1468430SGarrett Wollman.Pp
385c1468430SGarrett WollmanThe
386c1468430SGarrett Wollman.Tn HTTP
387c1468430SGarrett Wollmanstandard requires interpretation of the
388c1468430SGarrett Wollman.Tn RFC 850
389c1468430SGarrett Wollmandate format, which does not provide a century indication.  Versions of
390c1468430SGarrett Wollman.Nm fetch
391c1468430SGarrett Wollmanprior to
392c1468430SGarrett Wollman.Fx 3.1
393c1468430SGarrett Wollmanwould interpret all such dates as being in the 1900s.  This version of
394c1468430SGarrett Wollman.Nm fetch
395c1468430SGarrett Wollmaninterprets such dates according to the rule given in
396c1468430SGarrett Wollman.Tn RFC 2068 :
397c1468430SGarrett Wollman.Bd -literal -offset indent
398c1468430SGarrett Wollman  o  HTTP/1.1 clients and caches should assume that an RFC-850 date
399c1468430SGarrett Wollman     which appears to be more than 50 years in the future is in fact
400c1468430SGarrett Wollman     in the past (this helps solve the "year 2000" problem).
401c1468430SGarrett Wollman.Ed
402