summaryrefslogtreecommitdiff
path: root/lib/libfetch
Commit message (Collapse)AuthorAgeFilesLines
...
* Use a symbolic constant instead of hardcoding 999Dag-Erling Smørgrav2000-07-171-10/+11
| | | | Notes: svn path=/head/; revision=63336
* Don't forget to declare fetchRestartCalls.Dag-Erling Smørgrav2000-07-171-0/+1
| | | | Notes: svn path=/head/; revision=63335
* Introduce the (undocumented) variable fetchRestartCalls, which controls whetherDag-Erling Smørgrav2000-07-172-2/+3
| | | | | | | | | | or not interrupted system calls will be restarted. This fixes a bug where fetch(1) would hang (potentially forever) if a server stopped responding, because the signal handler would absorb the user's efforts to interrupt the transfer. Notes: svn path=/head/; revision=63334
* Remove fetchContentType(), which disappeared in the HTTP rewrite.Dag-Erling Smørgrav2000-07-171-1/+0
| | | | Notes: svn path=/head/; revision=63333
* #ifdef DEBUG -> #ifndef NDEBUGDag-Erling Smørgrav2000-07-161-2/+2
| | | | | | | Pointed out by: ache Notes: svn path=/head/; revision=63281
* Reinsert the MIT copyright, which applies to the base64 code and wasDag-Erling Smørgrav2000-07-161-0/+32
| | | | | | | left out by accident during the rewrite. Notes: svn path=/head/; revision=63236
* Fix a bug (misplaced continue) that caused redirects to fail. Lots of codeDag-Erling Smørgrav2000-07-131-16/+29
| | | | | | | | | | | moved around, but the acutal functional changes are small. Add support for site-internal redirects (where the Location: header gives a path instead of an absolute URI) Pointed out by: kuriyama Notes: svn path=/head/; revision=63069
* Fully document the HTTP authorization feature.Dag-Erling Smørgrav2000-07-121-12/+18
| | | | | | | Update the BUGS section to reflect the HTTP rewrite. Notes: svn path=/head/; revision=63013
* Extensive rewrite of the HTTP code. The new code is significantly cleaner andDag-Erling Smørgrav2000-07-121-446/+685
| | | | | | | | | | | more robust, and somewhat more efficient. It also handles authorization and redirects properly, and supports timeouts like the FTP code. Many thanks to Umemoto-san for his assistance with IPv6 support, both here and in other parts of libfetch. Notes: svn path=/head/; revision=63012
* Use fetch_putln()Dag-Erling Smørgrav2000-07-111-11/+5
| | | | Notes: svn path=/head/; revision=62982
* Add _fetch_putln()Dag-Erling Smørgrav2000-07-112-6/+30
| | | | Notes: svn path=/head/; revision=62981
* Document that basic authorization now kinda works.Dag-Erling Smørgrav2000-07-111-16/+20
| | | | Notes: svn path=/head/; revision=62966
* Rework the authorization code.Dag-Erling Smørgrav2000-07-111-78/+83
| | | | | | | | | Only send absolute URI if connected to a proxy, since Apache doesn't always understand absolute URIs. Clean up some of the debugging output. Notes: svn path=/head/; revision=62965
* Clean up the debugging outputDag-Erling Smørgrav2000-07-112-12/+3
| | | | Notes: svn path=/head/; revision=62964
* Free chunks obtained by getaddrinfo(3).Hajimu UMEMOTO2000-07-101-0/+1
| | | | | | | Approved by: des Notes: svn path=/head/; revision=62911
* Make EPSV work again. Separate parsing code of 229 replies fromHajimu UMEMOTO2000-07-101-7/+14
| | | | | | | | | the code for 227 and 228. Submitted by: des Notes: svn path=/head/; revision=62888
* Don't assume the remote address in a 227 reply is enclosed in parentheses.Dag-Erling Smørgrav2000-07-081-2/+1
| | | | Notes: svn path=/head/; revision=62814
* Fix basic authentication, and add proxy authentication.Dag-Erling Smørgrav2000-07-081-19/+45
| | | | | | | Submitted by: se Notes: svn path=/head/; revision=62811
* 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