From owner-cvs-usrbin Thu Jan 30 13:43:48 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA03707 for cvs-usrbin-outgoing; Thu, 30 Jan 1997 13:43:48 -0800 (PST) Received: (from wollman@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA03697; Thu, 30 Jan 1997 13:43:46 -0800 (PST) Date: Thu, 30 Jan 1997 13:43:46 -0800 (PST) From: Garrett Wollman Message-Id: <199701302143.NAA03697@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/fetch fetch.h file.c ftp.c http.c uri.c util.c Makefile fetch.1 main.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wollman 97/01/30 13:43:46 Modified: usr.bin/fetch Makefile fetch.1 main.c Added: usr.bin/fetch fetch.h file.c ftp.c http.c uri.c util.c Log: Here is my long-threatened revamping of fetch. Jean-Marc probably won't 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. Revision Changes Path 1.3 +4 -4 src/usr.bin/fetch/Makefile 1.12 +128 -67 src/usr.bin/fetch/fetch.1 1.32 +230 -695 src/usr.bin/fetch/main.c