green
090af66e8b
"transfered" -> "transferred"
...
Reviewed by: dict(1)
1999-07-02 08:57:06 +00:00
green
0aac238e5b
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
jmg
09c8cd859c
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 <Ken.Coar@Golux.Com>
1999-05-18 19:37:37 +00:00
wollman
bd6b0d4dcd
Restore \n at end of usage message.
...
Complained-about-by: charnier
1999-03-08 19:16:14 +00:00
alex
0af144ae9f
Improve error message wording when attempting to link to a non-existent
...
file on the local host.
PR: 10042
Submitted by: Chris Costello <phoenix@calldei.com>
1999-03-02 04:14:33 +00:00
wollman
9c3b9cf062
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
fenner
44f9119dc9
Remove the FTP_PASSIVE_MODE "fix"; libftpio handles this.
1999-02-05 01:01:17 +00:00
fenner
adb8ba8144
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 <John.Shue@symmetron.com>
Add references to RFC's 1790, 959, 850.
PR: doc/6564
1999-02-03 20:43:29 +00:00
fenner
af6685ec33
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 <watanabe@komadori.planet.kobe-u.ac.jp>
1999-02-03 20:24:53 +00:00
wollman
acfce95642
Fix logic error in RFC 850 kluge.
1999-01-15 17:10:31 +00:00
wollman
78818f4318
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
cracauer
c4f0cd91df
Add -s option, just report size of file that would be fetched.
...
Reviewed by: -current list
1998-12-08 13:00:49 +00:00
des
34ddce5767
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
fenner
1f7615e10a
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
jkh
79ff6f224d
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 <se@mi.uni-koeln.de>
1998-09-20 00:01:26 +00:00
des
8b07d06aca
DTRT for file: URLs when output file is "-".
...
PR: bin/7203
1998-09-17 00:15:15 +00:00
se
cc6b01dc72
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
wollman
a654d73c6b
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
wollman
845ecc3d6b
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
des
e80744306c
Arrggghhhh... forgot to strip the / after outputting %2f
1998-05-09 08:56:07 +00:00
des
bc55335b0d
Map a leading / in -c argument to %2f instead of dropping it silently.
...
PR: bin/6558
1998-05-09 08:41:23 +00:00
fenner
014829c6bf
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
charnier
409a50cddf
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
1998-03-23 07:48:45 +00:00
jb
dca0537025
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
jb
46dfb7f7cd
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
fenner
91940416f2
Suggest using "-b" or "-t" if the connection is reset (typical symptom
...
of broken TCP stack).
1997-11-22 01:00:42 +00:00
jdp
5e61620bb6
Add missing arguments detected by "-Wformat".
1997-11-18 03:27:34 +00:00
obrien
88e48b4b98
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
obrien
00ef31d9b5
If "-l" is given, make sure the target of the link exist.
1997-11-08 22:15:55 +00:00
ache
79136b2cb8
Change diags to see what part of url actually parsed, see
...
previous change about #? parms
1997-11-01 05:47:41 +00:00
ache
387b4eb4a3
Don't search for ':' port in ?# params part
...
Require to correctly parse http://...cgi?http:// ...
1997-10-31 23:33:44 +00:00
fenner
fd51ab9ae1
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
fenner
59cc2d4033
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
cracauer
ce03b01dce
fetch(3) doesn't get asctime(3) format, wrong length assumed
...
PR: bin/4625
Submitted by: "Timo J. Rinne" <tri@pooh.tky.hut.fi>
Obtained from:bin/4625
1997-09-28 11:25:59 +00:00
asami
89548edf3a
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
ache
fbd1e32f91
Add -t option which turns T/TCP off as workaround for some broken servers
...
Submitted by: Marc Slemko <marcs@znep.com>
1997-08-05 20:18:39 +00:00
wollman
4f60b2e680
Work around a brokenness in the HTTP spec by generating the Host header
...
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>
1997-07-26 20:18:43 +00:00
wollman
183f1f7031
Fix the error message for when mirroring and restarting are rejected
...
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.
1997-07-26 20:00:05 +00:00
wollman
989de48b81
Implement HTTP 1.1's ``chunked'' Transfer-Encoding (ick). This hasn't
...
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.
1997-07-26 19:25:56 +00:00
wollman
021417e0de
Provide a new `-b' flag to work around some broken HTTP/TCP implementations
...
that can't deal with a half-closed connection.
1997-07-25 19:35:44 +00:00
charnier
3f6defdfaa
One newline should be enough.
1997-07-02 06:28:32 +00:00
charnier
cce3170ff8
Do not use argv[0] in usage().
1997-07-01 06:37:34 +00:00
ache
4f8081d1a7
Now understand password in ftp:// URLs
1997-05-31 14:45:41 +00:00
jmg
000a4351d9
fix a bug in processing of FTP_TIMEOUT environment variable.
...
Closes PR#2947
Submitted-by: Peter Childs <pjchilds@imforei.apana.org.au>
1997-03-11 15:13:28 +00:00
jmg
66af2c92cc
fix restarting http transfers and understanding response from server.
...
Slight modification of patch by wollman.
Closes PR#2870
Reviewed by: wollman
Submitted by: Marc Slemko <marcs@znep.com>
1997-03-06 20:01:32 +00:00
jmg
189d91654b
fix a couple problems with fetch:
...
. 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
1997-03-06 10:01:54 +00:00
fenner
d0ff874c89
Fix FTP_PROXY to use user@host[@port] for FTP proxy and eliminate
...
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
1997-03-05 18:57:16 +00:00
wosch
374ff5ff08
These man page will appear in 2.2, not 3.0.
1997-02-22 23:43:32 +00:00
peter
f390c26dd9
Revert $FreeBSD$ to $Id$
1997-02-22 19:58:13 +00:00
jmg
dfdb961559
Fix fetch so that all status information is sent to stderr, prevents
...
corruption of file being recieved to stdout.
Submitted-by: Kent Vander Velden <graphix@iastate.edu>
Closes PR#2739
1997-02-17 04:11:47 +00:00