summaryrefslogtreecommitdiff
path: root/lib/libfetch
Commit message (Collapse)AuthorAgeFilesLines
* Make restart work in active mode, too.Dag-Erling Smørgrav2000-06-291-0/+5
| | | | | | | | PR: bin/18688 Submitted by: Rudolf Cejka <cejkar@dcse.fee.vutbr.cz> Notes: svn path=/head/; revision=62256
* Handle multiline replies properly, instead of kinda-right.Dag-Erling Smørgrav2000-06-281-7/+16
| | | | Notes: svn path=/head/; revision=62215
* Don't incorrectly report a protocol error when we get a 302 and redirectsDag-Erling Smørgrav2000-06-211-2/+5
| | | | | | | are disabled. Notes: svn path=/head/; revision=61896
* Back out wes' commit with extreme prejudice.Dag-Erling Smørgrav2000-06-201-143/+5
| | | | Notes: svn path=/head/; revision=61866
* Add implementation of fetchListFTP.Wes Peters2000-06-201-5/+143
| | | | | | | Reviewed by: silence Notes: svn path=/head/; revision=61838
* Hackish support for 302 redirect.Dag-Erling Smørgrav2000-05-261-24/+59
| | | | Notes: svn path=/head/; revision=60954
* Honor FTP_PASSIVE_MODE so caller doesn't need to.Dag-Erling Smørgrav2000-05-261-0/+4
| | | | Notes: svn path=/head/; revision=60951
* Output newline after debugging messageDag-Erling Smørgrav2000-05-251-0/+1
| | | | Notes: svn path=/head/; revision=60928
* Add (and document) fetchMakeURL()Dag-Erling Smørgrav2000-05-253-3/+51
| | | | Notes: svn path=/head/; revision=60927
* Dump com_err, it's a stinking crock of shit.Dag-Erling Smørgrav2000-05-257-127/+49
| | | | Notes: svn path=/head/; revision=60924
* Use $FTP_PASSWORD for FTP password. If $FTP_PASSWORD is notHajimu UMEMOTO2000-05-221-1/+11
| | | | | | | found, `yourname@yourhost' is used. Notes: svn path=/head/; revision=60791
* IPv6 support.Hajimu UMEMOTO2000-05-207-68/+278
| | | | Notes: svn path=/head/; revision=60737
* Better handling of some boundary conditions.Dag-Erling Smørgrav2000-05-192-4/+9
| | | | | | | Submitted by: ume Notes: svn path=/head/; revision=60707
* Make HTTP_PROXY work for FTP.Hajimu UMEMOTO2000-05-152-13/+45
| | | | | | | | Reported by: Ben Smithurst <ben@scientia.demon.co.uk> Reviewed by: des Notes: svn path=/head/; revision=60587
* Document struct url.Dag-Erling Smørgrav2000-05-151-0/+32
| | | | | | | Document the default values for fetchStat*(). Notes: svn path=/head/; revision=60585
* Initialize the struct url_stat at the beginning of _fetch_stat_file().Dag-Erling Smørgrav2000-05-151-0/+2
| | | | Notes: svn path=/head/; revision=60584
* Initialize the struct url_stat at the beginning of fetchStatFTP().Dag-Erling Smørgrav2000-05-151-0/+3
| | | | Notes: svn path=/head/; revision=60582
* Remove unused 'verbose'.Dag-Erling Smørgrav2000-05-151-6/+6
| | | | | | | Initialize the struct url_stat at the beginning of fetchStatHTTP(). Notes: svn path=/head/; revision=60581
* Add workaround for ftpds with the Y2K MDTM bugDag-Erling Smørgrav2000-05-111-7/+22
| | | | Notes: svn path=/head/; revision=60383
* Bump major number, since struct url has changed.Dag-Erling Smørgrav2000-05-111-1/+1
| | | | | | | Discussed with: jdp Notes: svn path=/head/; revision=60381
* Fix hard sentence break.Dag-Erling Smørgrav2000-05-111-2/+2
| | | | | | | Submitted by: sheldonh Notes: svn path=/head/; revision=60380
* Reorganize some of the http code and split it into more functions.Dag-Erling Smørgrav2000-05-114-103/+203
| | | | | | | | | Implement fetchStatHTTP(). Unbungle struct url, and add fetchFreeURL(). Document it. Notes: svn path=/head/; revision=60376
* Supply only one author name per instance of %A, as per mdoc.samples(7).Sheldon Hearn2000-05-101-3/+10
| | | | | | | | PR: 18465 Submitted by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp> Notes: svn path=/head/; revision=60311
* While we're at it, add a length field too in case we want to fully implementDag-Erling Smørgrav2000-05-071-0/+1
| | | | | | | partial fetches later. Notes: svn path=/head/; revision=60197
* Implement restartDag-Erling Smørgrav2000-05-071-1/+32
| | | | Notes: svn path=/head/; revision=60196
* Use sizeof more consistently.Dag-Erling Smørgrav2000-05-072-3/+3
| | | | Notes: svn path=/head/; revision=60190
* Use sizeof more consistently.Dag-Erling Smørgrav2000-05-071-11/+41
| | | | | | | Outline sanity checking of server port spec. Notes: svn path=/head/; revision=60189
* Implement restart.Dag-Erling Smørgrav2000-05-071-14/+41
| | | | | | | | Use sizeof more consistently. Outline sanity checking of server port spec. Notes: svn path=/head/; revision=60188
* Implement restartDag-Erling Smørgrav2000-05-071-1/+13
| | | | Notes: svn path=/head/; revision=60187
* Add offset field to struct urlDag-Erling Smørgrav2000-05-071-0/+1
| | | | Notes: svn path=/head/; revision=60183
* Introduce .Lb macro to libfetch manpageAlexey Zelkin2000-04-221-6/+8
| | | | | | | | | Sort .Nm values Change first column width in errors list (table look much better now) Remove redundant comma Notes: svn path=/head/; revision=59509
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-021-19/+38
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* Fix timestamp handling.Dag-Erling Smørgrav2000-01-261-5/+7
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=56635
* Replace beforeinstall target with new variables used by .mk system.Rodney W. Grimes2000-01-141-6/+1
| | | | | | | Reviewed by: marcel, and make world Notes: svn path=/head/; revision=55955
* More old uncommitted patches: implement timeouts at the protocol level.Dag-Erling Smørgrav2000-01-075-99/+206
| | | | | | | Currently only supported for ftp connections. Notes: svn path=/head/; revision=55557
* Add error codes for protocol errors.Dag-Erling Smørgrav2000-01-073-1/+3
| | | | Notes: svn path=/head/; revision=55555
* Patches I've had lying around for several months:Dag-Erling Smørgrav2000-01-074-20/+78
| | | | | | | | | | * Add the 'h' ftp flag (allocate local port in high range) * Add the 'd' flag (use direct connection even if proxy is defined) * Make sure flags != NULL before calling strchr(). * Minor changes to some comments. Notes: svn path=/head/; revision=55544
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2812-12/+12
| | | | Notes: svn path=/head/; revision=50476
* Fixed prototype for fetchParseURL().Bruce Evans1999-03-051-2/+2
| | | | Notes: svn path=/head/; revision=44494
* Add MAINTAINER.Dag-Erling Smørgrav1999-01-291-1/+2
| | | | Notes: svn path=/head/; revision=43394
* Implement and document file list retrieval.Dag-Erling Smørgrav1998-12-218-13/+207
| | | | Notes: svn path=/head/; revision=41989
* Don't specify a language to compile_et.Dag-Erling Smørgrav1998-12-185-12/+12
| | | | | | | Rename fetchConnect to _fetch_connect since it's internal. Notes: svn path=/head/; revision=41923
* Implement and document fetchStatFTP.Dag-Erling Smørgrav1998-12-162-49/+132
| | | | | | | | Update description of struct url_stat in the man page. Clean up error handling in ftp.c. Notes: svn path=/head/; revision=41869
* Remove unused header files. Fix a few shadowing bugs. Improve error reporting.Dag-Erling Smørgrav1998-12-162-57/+30
| | | | Notes: svn path=/head/; revision=41863
* Add verbose flag, and support functions.Dag-Erling Smørgrav1998-12-1610-59/+109
| | | | | | | | | | | | Brucify the Makefile. Differentiate atime and mtime in fetch*Stat(). Fix a few pointer bugs. Tweak some error messages. Don't #include sys/param.h and stdio.h in fetch.h. Document that sys/param.h and stdio.h must be #included before fetch.h. Notes: svn path=/head/; revision=41862
* Fix the "Unknown HTTP error" message.Dag-Erling Smørgrav1998-12-151-3/+3
| | | | | | | Make compile_et generate prototypes. Notes: svn path=/head/; revision=41820
* fetch_err.h is a generated file, so don't look for it in ${.CURDIR}.Dag-Erling Smørgrav1998-11-071-2/+2
| | | | Notes: svn path=/head/; revision=40990
* Second of a series of cleanups to libfetch.Dag-Erling Smørgrav1998-11-0612-231/+569
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces the following features: a) the fetchStat*() functions, which return meta-information for a document, such as size, modification time, etc. b) the use of the com_err(3) facilities to report errors. It also fixes a bunch of style bugs and a few logic bugs and somewhat improves the man page. Changed files, in alphabetical order: Makefile: Don't generate macros in {ftp,http}err.c. Generate category fields for the error message lists. Compile the error table. Install fetch_err.h along with fetch.h. common.c: Remove the _netdb_errstring() macro, and add FETCH_ERR_NETDB to the error code in the _netdb_seterr() macro. Add categories to the _netdb_errlist table. Report errors through the Common Error library. common.h: Add the DEBUG macros. Add prototype for fetchConnect(). Remove the prototype for _fetch_errstring(), which is local to common.c Add a categroy field to struct fetcherr, and define constants for error categories. Define macros for _{url,netdb,ftp,http}_seterr(). errors.et: (new file) List error categories. fetch.3: Document the fetchStat*() functions. Move the "unimplemented functionality" comments from NOTES to BUGS. Document that applications which use libfetch must also use libcom_err, and list existing error codes. Undocument fetchLastErr{Code,String}. Remove the (empty) DIAGNOSTICS section. Mention Eugene Skepner in the AUTHORS section. fetch.c: Move the DEBUG macros to common.c Add fetchStat() and fetchStatURL(). Generate error messages for URL parser errors, and fix a minor bug in the parser. Use 'struct url' instead of 'url_t'. Remove fetchLastErr{Code,String}. fetch.h: Use 'struct url' instead of 'url_t', and remove the typedef. Define struct url_stat (used by fetchStat()). Add prototypes for fetchStat*(). Remove the declarations for fetchLastErr{Code,String}. Include fetch_err.h. fetch_err.et: (new file) Error table for libfetch. file.c: Add fetchStatFile(). Use 'struct url' instead of 'url_t'. ftp.c: Add fetchStatFTP(). Use 'struct url' instead of 'url_t'. Don't use fetchLastErrCode. ftp.errors: Add categories to all error messages. http.c: Add fetchStatHTTP(). Use 'struct url' instead of 'url_t'. Don't use fetchLastErr{Code,Text}. http.errors: Add categories to all error messages. Prompted by: jkh and Eugene Skepner Numerous sugestions from: Garett Wollman and Eugene Skepner Notes: svn path=/head/; revision=40975
* First of a series of cleanups to libfetch. Changed files, inDag-Erling Smørgrav1998-11-059-153/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | alphabetical order: Makefile: Add common.c to SRCS. Make debugging easier by making 'CFLAGS += -DNDEBUG' conditional on DEBUG Don't declare struct {ftp,http}err in {ftp,http}err.c; use struct fetcherr instead. README: Remove the todo list, which is out of date anyway. common.c: (new file) Gather utility functions in this file. Merge the error reporting functions intp _fetch_errstring(), _fetch_seterr() and _fetch_syserr(). Set fetchLastErrCode and fetchLastErrText appropriately when fetchConnect fails. common.h: (new file) Gather internal prototypes and structures in this files. fetch.3: Undocument fetchFreeURL(). Document a few more known bugs. Document fetchLastErrCode and fetchLastErrText. fetch.c: Add descriptive comments to all functions that lacked them. Move fetchConnect() to common.c. Obviate the need for fetchFreeURL(), and remove it. fetch.h: Modify struct url_t so the document part is at the end. ftp.c: Remove code that is duplicated elsewhere. http.c: Remove code that is duplicated elsewhere. Prompted by: jkh Notes: svn path=/head/; revision=40939
* Bring the man page more or less up to date with the code.Dag-Erling Smørgrav1998-09-261-23/+54
| | | | Notes: svn path=/head/; revision=39694