summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch/fetch.h
Commit message (Collapse)AuthorAgeFilesLines
* Add -s option, just report size of file that would be fetched.cracauer1998-12-081-1/+2
| | | | Reviewed by: -current list
* Add -S flag; this is benign since fetch's behavior is unchanged if youjkh1998-09-201-1/+2
| | | | | 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>
* Add -t option which turns T/TCP off as workaround for some broken serversache1997-08-051-1/+2
| | | | Submitted by: Marc Slemko <marcs@znep.com>
* Provide a new `-b' flag to work around some broken HTTP/TCP implementationswollman1997-07-251-1/+2
| | | | that can't deal with a half-closed connection.
* Some bug-fixes, clean-ups, and one new feature:wollman1997-02-051-1/+2
| | | | | | | | | | | | | | - 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.
* Some fixes for HTTP:wollman1997-01-311-1/+2
| | | | | | | | | | | 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-301-0/+87
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.
OpenPOWER on IntegriCloud