Dag-Erling Smørgrav
641aa40590
MFC: if output file is a device node, don't set mtime or unlink
2000-09-17 19:51:14 +00:00
Dag-Erling Smørgrav
10162cff31
MFC: revert to old behavior of deleting the output file when interrupted.
...
Approved by: jkh
2000-07-26 07:56:16 +00:00
Dag-Erling Smørgrav
724d700502
MFC: don't print summary in quiet mode (cosmetic)
2000-07-21 14:23:22 +00:00
Dag-Erling Smørgrav
2197aaf139
MFC: Sync with -CURRENT (most notably, fix resume and proxy problems)
...
Approved by: jkh
2000-07-21 11:20:05 +00:00
Dag-Erling Smørgrav
5d74d3d4a6
MFC: fix bugs related to resumed HTTP transfers.
2000-07-20 00:00:01 +00:00
Dag-Erling Smørgrav
d7680ac351
MFC: don't force passive mode
2000-07-19 09:14:44 +00:00
Ben Smithurst
729f4472b2
MFC: remove description of -t, don't mark the word "and" as a flag.
...
Approved by: des
2000-07-18 21:07:38 +00:00
Dag-Erling Smørgrav
dc81f49071
MFC: everything since the last one.
2000-07-17 22:03:10 +00:00
cvs2svn
ff0b720ced
This commit was manufactured by cvs2svn to create branch 'RELENG_4'.
2000-07-17 13:13:05 +00:00
Dag-Erling Smørgrav
7ee95268b1
MFC: libfetch-based fetch(1)
2000-07-16 01:16:46 +00:00
Dag-Erling Smørgrav
ac365fd452
Prettify, add $FreeBSD$ and claim maintainership
2000-06-29 09:28:26 +00:00
Martin Cracauer
301cba219f
Print a warning and exit with != 0 when at least one downloaded file
...
is shorter than previously announced by the server.
Tested by asami.
Approved by: jkh
2000-03-08 13:02:11 +00:00
Sheldon Hearn
87faa07bec
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
Brian Feldman
d6a8296aed
Add the -F option. This is for forcing restarts with -r by inhibiting
...
transmission of the If-Range HTTP header field.
1999-10-23 15:22:53 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Brian Feldman
90331af0d2
"transfered" -> "transferred"
...
Reviewed by: dict(1)
1999-07-02 08:57:06 +00:00
Brian Feldman
378949dbca
This fixes the problem of cancelling an FTP transfer resulting in
...
a bogus error ("parsing URI".) I also fixed an inconsistency in
another fs_status.
1999-06-21 02:38:16 +00:00
John-Mark Gurney
85020e14f0
make md5 checksums actually work instead of simply calculating the length
...
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 <[email protected] >
1999-05-18 19:37:37 +00:00
Garrett Wollman
c7ede78e51
Restore \n at end of usage message.
...
Complained-about-by: charnier
1999-03-08 19:16:14 +00:00
Alexander Langer
c5e72606a7
Improve error message wording when attempting to link to a non-existent
...
file on the local host.
PR: 10042
Submitted by: Chris Costello <[email protected] >
1999-03-02 04:14:33 +00:00
Garrett Wollman
189da04438
Deal with broken Web sites which return 302 responses rather than 404
...
and an error document when the requested resource does not exist. Grrr.
Requested by: asami
1999-02-23 18:51:13 +00:00
Bill Fenner
d17bf266c4
Remove the FTP_PASSIVE_MODE "fix"; libftpio handles this.
1999-02-05 01:01:17 +00:00
Bill Fenner
054672c795
Warn about collapsing multiple slashes into 1 in ftp URL's.
...
Look at the FTP_PASSIVE_MODE environment variable like the man page says.
PR: bin/9464
Submitted by: John A. Shue <[email protected] >
Add references to RFC's 1790, 959, 850.
PR: doc/6564
1999-02-03 20:43:29 +00:00
Bill Fenner
93eb50393d
Don't try to parse a colon in a URL as a port
...
(e.g. http://www.host.name/foo:bar )
PR: bin/5072
Submitted by: Takeshi WATANABE <[email protected] >
1999-02-03 20:24:53 +00:00
Garrett Wollman
9caa4ddf6b
Fix logic error in RFC 850 kluge.
1999-01-15 17:10:31 +00:00
Garrett Wollman
c146843096
For RFC 850 dates received in HTTP responses, implement the century pivot
...
described in RFC 2068. Include a reference to same in the manual page.
1999-01-15 16:56:22 +00:00
Martin Cracauer
b451f4524e
Add -s option, just report size of file that would be fetched.
...
Reviewed by: -current list
1998-12-08 13:00:49 +00:00
Dag-Erling Smørgrav
9f63f2aa1c
main.c:
...
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.
1998-11-08 23:18:48 +00:00
Bill Fenner
60a53b7d32
If we know the content-length, only read that number of bytes from
...
the server. There exists a broken server which sends a few extra
garbage bytes in response to HTTP/1.1 requests.
1998-10-26 02:39:21 +00:00
Jordan K. Hubbard
0637c2cccd
Add -S flag; this is benign since fetch's behavior is unchanged if you
...
don't use it. That's why I'm bringing it in during our "code slush"
Submitted by: Stefan Esser <[email protected] >
1998-09-20 00:01:26 +00:00
Dag-Erling Smørgrav
82e3dde754
DTRT for file: URLs when output file is "-".
...
PR: bin/7203
1998-09-17 00:15:15 +00:00
Stefan Eßer
cc522880b4
Fix proxy authorization code:
...
- 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
1998-07-12 09:07:36 +00:00
Garrett Wollman
cffe96c903
Fix my last change: the .Fx macro doesn't do anything useful without an
...
argument, so use `.Tn FreeBSD' instead.
1998-05-09 21:39:49 +00:00
Garrett Wollman
eeed58d824
Documentation fix: delete references to T/TCP as they are not relevant
...
to the case in question. (Said case being quite clearly defined by
the basic TCP specification, RFC 792.)
1998-05-09 20:50:37 +00:00
Dag-Erling Smørgrav
49778f39ac
Arrggghhhh... forgot to strip the / after outputting %2f
1998-05-09 08:56:07 +00:00
Dag-Erling Smørgrav
757c6582c1
Map a leading / in -c argument to %2f instead of dropping it silently.
...
PR: bin/6558
1998-05-09 08:41:23 +00:00
Bill Fenner
5e92200712
Describe absolute paths in FTP URL's. This patch has been sitting
...
around uncommitted for 2 months =(
1998-05-09 07:33:09 +00:00
Philippe Charnier
306005e78c
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
1998-03-23 07:48:45 +00:00
John Birrell
5362bb64c5
gcc wants to see long long variables passed to %q printf formats, so
...
cast to that instead of quad_t.
1998-02-20 05:11:42 +00:00
John Birrell
2ffc763234
time() needs a pointer to a time_t, but tv_sec in a timeval is a
...
long (yuk). So give time() what it wants and let the compiler
promote the variable when it is assigned to tv_sec.
1998-02-20 05:08:53 +00:00
Bill Fenner
18d1eb6776
Suggest using "-b" or "-t" if the connection is reset (typical symptom
...
of broken TCP stack).
1997-11-22 01:00:42 +00:00
John Polstra
a5bd62c599
Add missing arguments detected by "-Wformat".
1997-11-18 03:27:34 +00:00
David E. O'Brien
e3f8c97942
style-police got me. :-)
...
Also fixed some "didn't make the most sense" problems.
Submitted by: bde
1997-11-12 04:39:33 +00:00
David E. O'Brien
e4b172e407
If "-l" is given, make sure the target of the link exist.
1997-11-08 22:15:55 +00:00
Andrey A. Chernov
9e8930055e
Change diags to see what part of url actually parsed, see
...
previous change about #? parms
1997-11-01 05:47:41 +00:00
Andrey A. Chernov
4ad97ec183
Don't search for ':' port in ?# params part
...
Require to correctly parse http://...cgi?http://...
1997-10-31 23:33:44 +00:00
Bill Fenner
21d466b21a
Interpret multiple slashes as a single slash in ftp: URL's. This
...
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.
1997-10-08 18:43:53 +00:00
Bill Fenner
a5cd8a3572
Use the RFC1738 interpretation of ftp: URL's, i.e. CWD to each
...
slash-seperated element of the URL and then RETR the last element.
PR: bin/4670
Reviewed by: wollman
1997-10-06 01:09:56 +00:00
Martin Cracauer
3e27c094e4
fetch(3) doesn't get asctime(3) format, wrong length assumed
...
PR: bin/4625
Submitted by: "Timo J. Rinne" <[email protected] >
Obtained from:bin/4625
1997-09-28 11:25:59 +00:00
Satoshi Asami
e5ed1f5994
Be consistent with other utilities in spelling "Kbytes". (Actually,
...
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
1997-08-19 01:57:53 +00:00