summaryrefslogtreecommitdiffstats
path: root/lib/libfetch
Commit message (Collapse)AuthorAgeFilesLines
* Argh! Fix passive mode selection (again)des2000-10-171-2/+3
|
* Use the right user namedes2000-10-131-3/+3
|
* Document recent changes in URL parsing and proxy handlingdes2000-10-121-10/+20
|
* ftp.c needs _http_request()des2000-10-121-0/+11
|
* Rework proxy handling so that proxies can be specified as URLs.des2000-10-122-206/+156
| | | | As a side effect, remove a lot of duplicate and now redundant code.
* Relax URL syntax so that schemeless URLs are supported.des2000-10-121-24/+23
|
* Add macros for the names of the URL schemes we support.des2000-10-121-0/+5
|
* Make the ENVIRONMENT section more legible, and mention that HTTP_AUTH isdes2000-10-121-4/+10
| | | | colon-separated.
* Work around buggy servers such as NCSA httpd which send an incompletedes2000-09-241-9/+18
| | | | HTTP-Version on the Status-Line (see RFC2616 sections 3.1 and 6.1).
* Document the FTP_PROXY and HTTP_PROXY variables better.des2000-08-311-0/+4
|
* Grok 125 replies to passive RETR. This fixes an interoperability bug withdes2000-08-211-1/+2
| | | | | | Microsoft FTP Service. Reported by: asmodai, eivind
* Fix signedness bogon.des2000-08-021-7/+6
|
* Don't fail if _ftp_stat() reports a protocol error, since that most likelydes2000-07-271-0/+1
| | | | | | | means that the server doesn't understand SIZE or MDTM, which should not be a hard failure. Submitted by: ume
* If the server reports the size as 0, treat it as unknown. This works arounddes2000-07-251-3/+2
| | | | | | | | | a bug in some ftp servers (most notably ftp.vmunix.com) which report the size of a file correctly in ascii mode, but report it as 0 in binary mode. Reported by: asmodai Also remove an unneeded initialization.
* Centralize the default port finding code.des2000-07-253-33/+43
| | | | | Work around YA Apache bug: don't send port in Host: header if it's the default port.
* Ignore environment variables that are set but empty.des2000-07-211-40/+81
| | | | | | | | | | | | Sort out the size / length confusion. Always try to report the *real* file size in the url_stat structure, no matter how much of it is actually being sent, and try to detect inconsistencies between sizes. Rearrange the request loop to avoid having to add meaningless code just to silence compiler warnings. Switch to a more sensible and consistent interface for the _http_parse*() functions.
* Document the proxy support better.des2000-07-211-2/+15
|
* The decision to use an HTTP proxy for FTP documents belongs in the FTP codedes2000-07-212-13/+24
|
* Don't send port number to proxy unless it's not the standard FTP portdes2000-07-211-2/+6
|
* Fix the case where the file name is preceded by a lone slash.des2000-07-201-1/+1
|
* Don't try to skip to the requested offset if the server returns more datades2000-07-191-8/+10
| | | | | | than requested. Instead, inform the caller of the real offset by modifying the offset field in the original struct url, and let him decide how to handle the situation.
* Don't take a failure to stat a file to mean that it doesn't exist, as it maydes2000-07-181-1/+5
| | | | | be a dynamically created file, e.g. a tarball on servers that support sending tarballs of directories.
* Introduce fetchXGet*(), which combine the functionalities of fetchGet*() anddes2000-07-176-113/+236
| | | | | | fetchStat*(). In most cases, either fetchGet*() or fetchXGet*() is a wrapper around the other; in all cases, calling fetchGet*() is identical to calling fetchXGet*() with the second argument set to NULL.
* Don't forget to set file descriptor to -1 after closing it, since the codedes2000-07-171-1/+1
| | | | | | | outside the loop inspects it to determine whether or not we succeeded in retrieving the requested document. This fixes a bug where fetchGetHTTP() would return a FILE with an invalid file descriptor if it hit the redirect limit without locating the requested document.
* Use a symbolic constant instead of hardcoding 999des2000-07-171-10/+11
|
* Don't forget to declare fetchRestartCalls.des2000-07-171-0/+1
|
* Introduce the (undocumented) variable fetchRestartCalls, which controls whetherdes2000-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.
* Remove fetchContentType(), which disappeared in the HTTP rewrite.des2000-07-171-1/+0
|
* #ifdef DEBUG -> #ifndef NDEBUGdes2000-07-161-2/+2
| | | | Pointed out by: ache
* Reinsert the MIT copyright, which applies to the base64 code and wasdes2000-07-161-0/+32
| | | | left out by accident during the rewrite.
* Fix a bug (misplaced continue) that caused redirects to fail. Lots of codedes2000-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
* Fully document the HTTP authorization feature.des2000-07-121-12/+18
| | | | Update the BUGS section to reflect the HTTP rewrite.
* Extensive rewrite of the HTTP code. The new code is significantly cleaner anddes2000-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.
* Use fetch_putln()des2000-07-111-11/+5
|
* Add _fetch_putln()des2000-07-112-6/+30
|
* Document that basic authorization now kinda works.des2000-07-111-16/+20
|
* Rework the authorization code.des2000-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.
* Clean up the debugging outputdes2000-07-112-12/+3
|
* Free chunks obtained by getaddrinfo(3).ume2000-07-101-0/+1
| | | | Approved by: des
* Make EPSV work again. Separate parsing code of 229 replies fromume2000-07-101-7/+14
| | | | | | the code for 227 and 228. Submitted by: des
* Don't assume the remote address in a 227 reply is enclosed in parentheses.des2000-07-081-2/+1
|
* Fix basic authentication, and add proxy authentication.des2000-07-081-19/+45
| | | | Submitted by: se
* Make restart work in active mode, too.des2000-06-291-0/+5
| | | | | PR: bin/18688 Submitted by: Rudolf Cejka <cejkar@dcse.fee.vutbr.cz>
* Handle multiline replies properly, instead of kinda-right.des2000-06-281-7/+16
|
* Don't incorrectly report a protocol error when we get a 302 and redirectsdes2000-06-211-2/+5
| | | | are disabled.
* Back out wes' commit with extreme prejudice.des2000-06-201-143/+5
|
* Add implementation of fetchListFTP.wes2000-06-201-5/+143
| | | | Reviewed by: silence
* Hackish support for 302 redirect.des2000-05-261-24/+59
|
* Honor FTP_PASSIVE_MODE so caller doesn't need to.des2000-05-261-0/+4
|
* Output newline after debugging messagedes2000-05-251-0/+1
|
OpenPOWER on IntegriCloud