summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
Commit message (Collapse)AuthorAgeFilesLines
* "transfered" -> "transferred"green1999-07-022-4/+4
| | | | Reviewed by: dict(1)
* This fixes the problem of cancelling an FTP transfer resulting ingreen1999-06-212-3/+6
| | | | | a bogus error ("parsing URI".) I also fixed an inconsistency in another fs_status.
* make md5 checksums actually work instead of simply calculating the lengthjmg1999-05-181-3/+7
| | | | | | | | | of an empty buffer... the output file wasn't readable... also warn that we can't checksum on stdout and print out the base64 encoded version of the md5 checksum... Site to actually return md5 digest: web.golux.com Verified that fetch was broken: Ken Coar <Ken.Coar@Golux.Com>
* Restore \n at end of usage message.wollman1999-03-081-2/+2
| | | | Complained-about-by: charnier
* Improve error message wording when attempting to link to a non-existentalex1999-03-021-2/+2
| | | | | | | file on the local host. PR: 10042 Submitted by: Chris Costello <phoenix@calldei.com>
* Deal with broken Web sites which return 302 responses rather than 404wollman1999-02-233-17/+38
| | | | | | and an error document when the requested resource does not exist. Grrr. Requested by: asami
* Remove the FTP_PASSIVE_MODE "fix"; libftpio handles this.fenner1999-02-051-3/+1
|
* Warn about collapsing multiple slashes into 1 in ftp URL's.fenner1999-02-032-4/+34
| | | | | | | | | | | Look at the FTP_PASSIVE_MODE environment variable like the man page says. PR: bin/9464 Submitted by: John A. Shue <John.Shue@symmetron.com> Add references to RFC's 1790, 959, 850. PR: doc/6564
* Don't try to parse a colon in a URL as a portfenner1999-02-031-2/+2
| | | | | | | (e.g. http://www.host.name/foo:bar) PR: bin/5072 Submitted by: Takeshi WATANABE <watanabe@komadori.planet.kobe-u.ac.jp>
* Fix logic error in RFC 850 kluge.wollman1999-01-151-3/+4
|
* For RFC 850 dates received in HTTP responses, implement the century pivotwollman1999-01-152-4/+48
| | | | described in RFC 2068. Include a reference to same in the manual page.
* Add -s option, just report size of file that would be fetched.cracauer1998-12-085-8/+67
| | | | Reviewed by: -current list
* main.c:des1998-11-082-12/+13
| | | | | | Fix usage string. Fix getopt() string. Fix ordering of compatibility options. fetch.1: Fix synopsis. Fix ordering of T and t options. Fix minor grammar nit.
* If we know the content-length, only read that number of bytes fromfenner1998-10-261-2/+13
| | | | | the server. There exists a broken server which sends a few extra garbage bytes in response to HTTP/1.1 requests.
* Add -S flag; this is benign since fetch's behavior is unchanged if youjkh1998-09-205-8/+55
| | | | | don't use it. That's why I'm bringing it in during our "code slush" Submitted by: Stefan Esser <se@mi.uni-koeln.de>
* DTRT for file: URLs when output file is "-".des1998-09-171-1/+17
| | | | PR: bin/7203
* Fix proxy authorization code:se1998-07-121-8/+8
| | | | | | - failed to use authorization parameters passed in the environment, if /dev/tty could not be opened (i.e. if running from cron) - mixed use of /dev/tty and stdin for prompt and reading of the result
* Fix my last change: the .Fx macro doesn't do anything useful without anwollman1998-05-091-2/+2
| | | | argument, so use `.Tn FreeBSD' instead.
* Documentation fix: delete references to T/TCP as they are not relevantwollman1998-05-092-12/+36
| | | | | to the case in question. (Said case being quite clearly defined by the basic TCP specification, RFC 792.)
* Arrggghhhh... forgot to strip the / after outputting %2fdes1998-05-091-3/+6
|
* Map a leading / in -c argument to %2f instead of dropping it silently.des1998-05-091-9/+4
| | | | PR: bin/6558
* Describe absolute paths in FTP URL's. This patch has been sittingfenner1998-05-091-3/+16
| | | | around uncommitted for 2 months =(
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-231-3/+6
|
* gcc wants to see long long variables passed to %q printf formats, sojb1998-02-202-9/+9
| | | | cast to that instead of quad_t.
* time() needs a pointer to a time_t, but tv_sec in a timeval is ajb1998-02-201-2/+4
| | | | | long (yuk). So give time() what it wants and let the compiler promote the variable when it is assigned to tv_sec.
* Suggest using "-b" or "-t" if the connection is reset (typical symptomfenner1997-11-221-1/+5
| | | | of broken TCP stack).
* Add missing arguments detected by "-Wformat".jdp1997-11-181-3/+4
|
* style-police got me. :-)obrien1997-11-121-5/+9
| | | | | | Also fixed some "didn't make the most sense" problems. Submitted by: bde
* If "-l" is given, make sure the target of the link exist.obrien1997-11-081-2/+6
|
* Change diags to see what part of url actually parsed, seeache1997-11-011-4/+4
| | | | previous change about #? parms
* Don't search for ':' port in ?# params partache1997-10-311-8/+20
| | | | Require to correctly parse http://...cgi?http://...
* Interpret multiple slashes as a single slash in ftp: URL's. Thisfenner1997-10-081-2/+12
| | | | | | | is contrary to RFC1738, which specifies that empty elements between slashes really mean to send a CWD command with an empty argument. Most FTP servers consider this an error, so strict RFC compliance is advisable in this case.
* Use the RFC1738 interpretation of ftp: URL's, i.e. CWD to eachfenner1997-10-061-10/+68
| | | | | | | slash-seperated element of the URL and then RETR the last element. PR: bin/4670 Reviewed by: wollman
* fetch(3) doesn't get asctime(3) format, wrong length assumedcracauer1997-09-281-2/+2
| | | | | | PR: bin/4625 Submitted by: "Timo J. Rinne" <tri@pooh.tky.hut.fi> Obtained from:bin/4625
* Be consistent with other utilities in spelling "Kbytes". (Actually,asami1997-08-191-3/+3
| | | | | | there even was one of them about ten lines above in the same file.) Reminded by: joerg's commit to usr.bin/ftp/ftp.c rev 1.9
* Add -t option which turns T/TCP off as workaround for some broken serversache1997-08-054-5/+28
| | | | Submitted by: Marc Slemko <marcs@znep.com>
* Work around a brokenness in the HTTP spec by generating the Host headerwollman1997-07-261-2/+2
| | | | | | | | for ftp: URLs as well. This can't possibly be done in the general case, but since we only claim to support http and ftp, we'll adhere to the bogus requirement (RFC 2068, s. 14.25) anyway... >sigh< Submitted by: =?iso-8859-1?Q?=C5ge_R=F8bekk?= <aagero@aage.priv.no>
* Fix the error message for when mirroring and restarting are rejectedwollman1997-07-261-11/+15
| | | | | | due to the output not being a regular file. Also split the error message in any error case here to be on two lines to lessen the likelihood of it being too long to fit on just one.
* Implement HTTP 1.1's ``chunked'' Transfer-Encoding (ick). This hasn'twollman1997-07-261-22/+126
| | | | | | | | | | been extensively tested, but I now can successfully retrieve <http://www.apache.org/index.html>, so I guess that's a victory of some sort. Also move the initialization of ``autherror'' to hopefully eliminate the reported loop involving authentication. Still need to implement MD5 digest authentication.
* Provide a new `-b' flag to work around some broken HTTP/TCP implementationswollman1997-07-254-9/+25
| | | | that can't deal with a half-closed connection.
* One newline should be enough.charnier1997-07-021-2/+2
|
* Do not use argv[0] in usage().charnier1997-07-011-8/+8
|
* Now understand password in ftp:// URLsache1997-05-311-25/+34
|
* fix a bug in processing of FTP_TIMEOUT environment variable.jmg1997-03-111-2/+2
| | | | | | Closes PR#2947 Submitted-by: Peter Childs <pjchilds@imforei.apana.org.au>
* fix restarting http transfers and understanding response from server.jmg1997-03-061-4/+4
| | | | | | | | | Slight modification of patch by wollman. Closes PR#2870 Reviewed by: wollman Submitted by: Marc Slemko <marcs@znep.com>
* fix a couple problems with fetch:jmg1997-03-061-3/+6
| | | | | . don't try to interpet a colon in the pathname as a port number . don't report an errno message when one don't exist
* Fix FTP_PROXY to use user@host[@port] for FTP proxy and eliminatefenner1997-03-053-70/+118
| | | | | | | | | | | undocumented FTP_PROXY_USER Make FTP file errors contian hostname and path. Pass the FTP port to libftp. Partially un-HTMLify error messages returned from server Handle "HTTP NNN" instead of "HTTP/V.vv NNN" response sent by pre-HTTP/1.0 servers Reviewed by: wollman
* These man page will appear in 2.2, not 3.0.wosch1997-02-221-3/+3
|
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* Fix fetch so that all status information is sent to stderr, preventsjmg1997-02-171-11/+10
| | | | | | | | corruption of file being recieved to stdout. Submitted-by: Kent Vander Velden <graphix@iastate.edu> Closes PR#2739
OpenPOWER on IntegriCloud