summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Modified the display() function to recognize when the output it going to ajmg1997-02-141-14/+18
| | | | | | | | | file. When it is don't do the percentage update, but still display the file size and rate. Closes PR#2725 Reviewed by: wollman
* Fix remote request for HTTP proxies. Should close PR#2670.wollman1997-02-112-5/+15
|
* Fix PR#2700: report correct transmission speed, and restart transferswollman1997-02-102-4/+6
| | | | | | from the restart point, not the end of the file (blush!). Submitted by: John-Mark Gurney <jmg@nike.efn.org>
* Fix off-by-one error in proxy host:port parser.wollman1997-02-071-2/+1
| | | | Submitted by: fenner
* Some bug-fixes, clean-ups, and one new feature:wollman1997-02-056-63/+503
| | | | | | | | | | | | | | - Fix the bug with URIs of the form ftp://host/filename. - Fix some more string-termination bugs in util.c. - Use safe_malloc() rather than testing the return value of regular malloc() in 15 places. - Implement HTTP authentication, for both servers and proxies. Currently only ``basic'' authentication is supported; This Is A Bug (but less of one tjhan nmot supporting any authentication). I think there is only one more feature which is required for full HTTP/1.1 support, which is Transfer-Encoding: chunked; this should not be toohard, but it isn't very important, either.
* Null-terminate the string in percent_decode() so that we don't depend onbde1997-02-021-1/+2
| | | | | | malloc() returning zeroed storage or dump core while starting up. Found-by: /etc/malloc.conf ->AJ
* Some fixes for HTTP:wollman1997-01-314-46/+293
| | | | | | | | | | | 1) Implement redirects (or try to, at least). 2) Implement automatic retry after 503 errors when Retry-After is given. 3) Implement a -a flag to enable both of these behaviors. 4) Recognize Transfer-Encoding headers and emit a warning that the file is likely to be damaged. 5) Bug fix: only write the amount of data we read. 6) Actually document some of these. 7) Fix the usage message to display flags in semi-alphabetical order.
* Here is my long-threatened revamping of fetch. Jean-Marc probably won'twollman1997-01-309-761/+2428
| | | | | | | | | | | | | | | | | | | | | | | | | recognize it any more. This makes the following significant changes: - The main body of the program doesn't know a thing about URIs, HTTP, or FTP. This makes it possible to easily plug in other protocols. (The next revision will probably be able to dynamically add new recognizers.) - There are no longer arbitrary timeouts for the protocols. If you want to set one for yourself, use the environment variables. - FTP proxies are now supported (if I implemented it right). - The HTTP implementation is much more complete, and can now do restarts, preserve modtimes, and mrun in mirror mode. It's not yet up to 1.1, but it's getting there. - Transaction TCP is now used for sending HTTP requests. The HTTP/1.1 syntax for requesting that the connection be closed after one request is implemented. In all of this, I have doubtless broken somebody. Please test it and tell me about the bugs.
* Handle timeouts in a slightly less baroque way.jkh1997-01-171-22/+22
|
* Sort cross references.wosch1997-01-151-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Report net connection error via hstrerror(h_errno) now instead ofache1996-11-141-2/+3
| | | | simple fact that can't connect
* Change to new ftpLogin interfaceache1996-11-141-4/+8
| | | | | | Now clearly say: Not logged in instead of old: Broken pipe (note it was original reason for all my libftpio changes)
* Cosmetic bugfix. fetch was modifying it's argv[] strings in place, whichpeter1996-11-101-2/+6
| | | | caused ps(1) to show strange things..
* bin/1933: don't print negative % for huge files (80Mb)phk1996-10-311-2/+4
|
* old host:/filename syntax was brokenadam1996-10-241-5/+8
| | | | implement /filename syntax for completeness
OpenPOWER on IntegriCloud