Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use the right user name | des | 2000-10-13 | 1 | -3/+3 |
| | |||||
* | Document recent changes in URL parsing and proxy handling | des | 2000-10-12 | 1 | -10/+20 |
| | |||||
* | ftp.c needs _http_request() | des | 2000-10-12 | 1 | -0/+11 |
| | |||||
* | Rework proxy handling so that proxies can be specified as URLs. | des | 2000-10-12 | 2 | -206/+156 |
| | | | | As a side effect, remove a lot of duplicate and now redundant code. | ||||
* | Relax URL syntax so that schemeless URLs are supported. | des | 2000-10-12 | 1 | -24/+23 |
| | |||||
* | Add macros for the names of the URL schemes we support. | des | 2000-10-12 | 1 | -0/+5 |
| | |||||
* | Make the ENVIRONMENT section more legible, and mention that HTTP_AUTH is | des | 2000-10-12 | 1 | -4/+10 |
| | | | | colon-separated. | ||||
* | Work around buggy servers such as NCSA httpd which send an incomplete | des | 2000-09-24 | 1 | -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. | des | 2000-08-31 | 1 | -0/+4 |
| | |||||
* | Grok 125 replies to passive RETR. This fixes an interoperability bug with | des | 2000-08-21 | 1 | -1/+2 |
| | | | | | | Microsoft FTP Service. Reported by: asmodai, eivind | ||||
* | Fix signedness bogon. | des | 2000-08-02 | 1 | -7/+6 |
| | |||||
* | Don't fail if _ftp_stat() reports a protocol error, since that most likely | des | 2000-07-27 | 1 | -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 around | des | 2000-07-25 | 1 | -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. | des | 2000-07-25 | 3 | -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. | des | 2000-07-21 | 1 | -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. | des | 2000-07-21 | 1 | -2/+15 |
| | |||||
* | The decision to use an HTTP proxy for FTP documents belongs in the FTP code | des | 2000-07-21 | 2 | -13/+24 |
| | |||||
* | Don't send port number to proxy unless it's not the standard FTP port | des | 2000-07-21 | 1 | -2/+6 |
| | |||||
* | Fix the case where the file name is preceded by a lone slash. | des | 2000-07-20 | 1 | -1/+1 |
| | |||||
* | Don't try to skip to the requested offset if the server returns more data | des | 2000-07-19 | 1 | -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 may | des | 2000-07-18 | 1 | -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*() and | des | 2000-07-17 | 6 | -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 code | des | 2000-07-17 | 1 | -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 999 | des | 2000-07-17 | 1 | -10/+11 |
| | |||||
* | Don't forget to declare fetchRestartCalls. | des | 2000-07-17 | 1 | -0/+1 |
| | |||||
* | Introduce the (undocumented) variable fetchRestartCalls, which controls whether | des | 2000-07-17 | 2 | -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. | des | 2000-07-17 | 1 | -1/+0 |
| | |||||
* | #ifdef DEBUG -> #ifndef NDEBUG | des | 2000-07-16 | 1 | -2/+2 |
| | | | | Pointed out by: ache | ||||
* | Reinsert the MIT copyright, which applies to the base64 code and was | des | 2000-07-16 | 1 | -0/+32 |
| | | | | left out by accident during the rewrite. | ||||
* | Fix a bug (misplaced continue) that caused redirects to fail. Lots of code | des | 2000-07-13 | 1 | -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. | des | 2000-07-12 | 1 | -12/+18 |
| | | | | Update the BUGS section to reflect the HTTP rewrite. | ||||
* | Extensive rewrite of the HTTP code. The new code is significantly cleaner and | des | 2000-07-12 | 1 | -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() | des | 2000-07-11 | 1 | -11/+5 |
| | |||||
* | Add _fetch_putln() | des | 2000-07-11 | 2 | -6/+30 |
| | |||||
* | Document that basic authorization now kinda works. | des | 2000-07-11 | 1 | -16/+20 |
| | |||||
* | Rework the authorization code. | des | 2000-07-11 | 1 | -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 output | des | 2000-07-11 | 2 | -12/+3 |
| | |||||
* | Free chunks obtained by getaddrinfo(3). | ume | 2000-07-10 | 1 | -0/+1 |
| | | | | Approved by: des | ||||
* | Make EPSV work again. Separate parsing code of 229 replies from | ume | 2000-07-10 | 1 | -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. | des | 2000-07-08 | 1 | -2/+1 |
| | |||||
* | Fix basic authentication, and add proxy authentication. | des | 2000-07-08 | 1 | -19/+45 |
| | | | | Submitted by: se | ||||
* | Make restart work in active mode, too. | des | 2000-06-29 | 1 | -0/+5 |
| | | | | | PR: bin/18688 Submitted by: Rudolf Cejka <cejkar@dcse.fee.vutbr.cz> | ||||
* | Handle multiline replies properly, instead of kinda-right. | des | 2000-06-28 | 1 | -7/+16 |
| | |||||
* | Don't incorrectly report a protocol error when we get a 302 and redirects | des | 2000-06-21 | 1 | -2/+5 |
| | | | | are disabled. | ||||
* | Back out wes' commit with extreme prejudice. | des | 2000-06-20 | 1 | -143/+5 |
| | |||||
* | Add implementation of fetchListFTP. | wes | 2000-06-20 | 1 | -5/+143 |
| | | | | Reviewed by: silence | ||||
* | Hackish support for 302 redirect. | des | 2000-05-26 | 1 | -24/+59 |
| | |||||
* | Honor FTP_PASSIVE_MODE so caller doesn't need to. | des | 2000-05-26 | 1 | -0/+4 |
| | |||||
* | Output newline after debugging message | des | 2000-05-25 | 1 | -0/+1 |
| | |||||
* | Add (and document) fetchMakeURL() | des | 2000-05-25 | 3 | -3/+51 |
| |