Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use memcpy(3) instead of the BSD-specific bcopy(3). | des | 2008-02-08 | 1 | -1/+1 |
| | | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> MFC after: 2 weeks | ||||
* | Add necessary cast for tolower() argument. | des | 2008-02-06 | 1 | -2/+3 |
| | | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> MFC after: 1 week | ||||
* | As several people pointed out, I did all the ctype casts the wrong | des | 2007-12-19 | 1 | -13/+15 |
| | | | | | | | way (not for the first time...) Noticed by: bde, ru ++ MFC after: 1 week | ||||
* | Add support for the NO_PROXY / no_proxy environment variable as used by | des | 2007-12-18 | 1 | -3/+5 |
| | | | | | | | | | lynx, curl etc. Note that this patch differs significantly from that in the PR, as the submitter refined it after submitting the PR. PR: 110388 Submitted by: Alexander Pohoyda <alexander.pohoyda@gmx.net> MFC after: 3 weeks | ||||
* | Old patch I had lying around: correctly cast the argument to is*(). | des | 2007-12-18 | 1 | -12/+13 |
| | | | | | | IWBNI gcc could warn about this the way it warns about printf() abuse. MFC after: 1 week | ||||
* | Clean up namespace violations. | des | 2007-12-14 | 1 | -97/+97 |
| | | | | MFC after: 1 week | ||||
* | Handle temporary redirects (HTTP status code 307) | des | 2007-05-08 | 1 | -0/+2 |
| | | | | | | PR: kern/112515 Submitted by: Ryan C. Gordon <icculus@icculus.org> MFC after: 3 weeks | ||||
* | Ignore HTTP_PROXY if it is defined but empty. This was already handled | des | 2005-08-24 | 1 | -1/+1 |
| | | | | | | | | | | correctly in the case of FTP_PROXY, because an empty FTP_PROXY has a specific meaning ("don't use any proxy at all for ftp, even if HTTP_PROXY is defined"), while an empty HTTP_PROXY has no meaning at all. PR: bin/85185 Submitted by: Conall O'Brien <conallob=freebsd@maths.tcd.ie> MFC after: 2 weeks | ||||
* | Set the TCP_NODELAY socket option and clear TCP_NOPUSH in order to flush | kbyanc | 2005-03-02 | 1 | -2/+15 |
| | | | | | | | | any pending HTTP request rather than calling shutdown(2) with SHUT_WR. This makes libfetch (and thus fetch(1)) work again with Squid proxies configured to not allow half-closed connections. Reported by: Pawel Worach (pawel.worach AT telia DOT com) | ||||
* | Set TCP_NOPUSH on HTTP requests, reducing the number of round-trips | kbyanc | 2005-02-16 | 1 | -1/+9 |
| | | | | | | necessary to establish each connection. MFC after: 2 weeks | ||||
* | Update copyright years. | des | 2004-09-21 | 1 | -1/+1 |
| | |||||
* | Don't forget to allocate space for the terminating NUL when converting to | des | 2004-08-07 | 1 | -1/+1 |
| | | | | | | | | base 64. PR: misc/70022 Submitted by: Herve Masson <herve-bsdbt@mindstep.com> MFC after: 3 days | ||||
* | Slight tweak to previous commit: don't forget to call _http_seterr() if | des | 2004-02-11 | 1 | -0/+1 |
| | | | | we get a genuine 416 reply. | ||||
* | When restarting a transfer that has already completed, the server will | des | 2004-02-11 | 1 | -9/+41 |
| | | | | | | | reply with a 416 error code (requested range not satisfiable) because we ask it to start at the end of the file. Handle this gracefully by considering a 416 reply a success if the requested offset exactly matches the length of the file and the requested length is zero. | ||||
* | Re-wrap some comments. | des | 2004-02-11 | 1 | -6/+7 |
| | |||||
* | Don't dereference flags if NULL (see http.c rev 1.87) | des | 2003-03-29 | 1 | -1/+1 |
| | |||||
* | Don't parse the proxy URL unless we're actually going to use it. No real | des | 2003-03-11 | 1 | -3/+6 |
| | | | | functional difference, but debugging output will be less confusing. | ||||
* | style(9): add parentheses to sizeof even when not strictly required. | des | 2003-01-28 | 1 | -2/+2 |
| | | | | MFC after: 3 days | ||||
* | A negative offset means "get it all". | des | 2003-01-22 | 1 | -2/+2 |
| | |||||
* | Implement and document support for an HTTP_REFERER environment variable. | des | 2002-11-28 | 1 | -12/+21 |
| | | | | | | | PR: 28171 Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> Approved by: re (bmah) MFC after: 1 week | ||||
* | Use __func__ and break a long line. | des | 2002-10-30 | 1 | -5/+4 |
| | |||||
* | Don't forget to set the error flag when _fetch_read() returns -1. | des | 2002-10-30 | 1 | -2/+6 |
| | |||||
* | Eliminate two cases of undefined behaviour: total in _fetch_write() was | des | 2002-10-27 | 1 | -0/+1 |
| | | | | | | | | not initialized before use, and _http_growbuf() did not return a value on success. Reported by: Peter Edwards <pmedwards@eircom.net> MFC after: 2 weeks | ||||
* | HTTP authentication got broken in rev. 1.49. | ru | 2002-10-03 | 1 | -4/+4 |
| | |||||
* | Don't try to dereference conn when we know it's NULL. | des | 2002-06-19 | 1 | -2/+5 |
| | |||||
* | Make SSL support conditional on NOCRYPT. | des | 2002-06-05 | 1 | -0/+3 |
| | |||||
* | Add SSL support + slight cleanup. | des | 2002-06-05 | 1 | -1/+6 |
| | | | | Submitted by: Henry Whincup <henry@techiebod.com> (in principle) | ||||
* | Wrap everything in struct connection, and enforce timeouts everywhere | des | 2002-06-05 | 1 | -33/+52 |
| | | | | | (except for DNS operations). Always use funopen() for HTTP, to support both timeouts and SSL. | ||||
* | Rename struct cookie to struct httpio to avoid confusion (it's not an HTTP | des | 2002-06-05 | 1 | -50/+50 |
| | | | | cookie) and increase symmetry with equivalent FTP code. | ||||
* | Add comments to struct cookie. | des | 2002-06-05 | 1 | -8/+8 |
| | |||||
* | Fix a bug I introduced in the chunk decoder in the previous commit.. | des | 2002-06-05 | 1 | -1/+1 |
| | |||||
* | First step towards SSL support: wrap connections in a 'struct connection' | des | 2002-06-05 | 1 | -77/+84 |
| | | | | | | | | | | which contains the socket descriptor, the input buffer and (yet unused) SSL state variables. This has the neat side effect of greatly improving reentrance (though we're not *quite* there yet) and opening the door to HTTP connection caching. This commit is inspired by email conversations with and patches from Henry Whincup <henry@techiebod.com> last fall. | ||||
* | Do not use __progname directly (except in [gs]etprogname(3)). | markm | 2002-03-29 | 1 | -3/+1 |
| | | | | | | Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the same name is defined in userland. | ||||
* | Reindent, and add parentheses to return statements. Some functions in | des | 2002-02-05 | 1 | -736/+742 |
| | | | | | ftp.c and http.c now have exceedingly long lines due to deep nesting; this will be corrected by reorganizing the code in a later revision. | ||||
* | Check the return value from read() when reading the CR/LF at the end of a | des | 2002-01-20 | 1 | -2/+4 |
| | | | | | | | chunk. PR: bin/33608 MFC after: 2 weeks | ||||
* | In verbose mode, display the full error message from the server, stripping | des | 2002-01-01 | 1 | -3/+48 |
| | | | | | | | it of HTML tags and comments. PR: bin/32989 MFC after: 1 week | ||||
* | Remove VT100 escapes from debugging messages now that they're enabled by | des | 2002-01-01 | 1 | -10/+10 |
| | | | | | | | default. PR: 32988 MFC after: 3 days | ||||
* | Conditionalize some debugging code that didn't use the DEBUG macro. | des | 2001-12-09 | 1 | -8/+10 |
| | | | | MFC after: 1 week | ||||
* | Properly handle being redirected to an FTP URL. | des | 2001-12-04 | 1 | -1/+10 |
| | | | | | | | | | Also fix a couple of not-so-minor bugs: - missing case for HTTP_SEE_OTHER - incorrect definition of HTTP_NEED_PROXY_AUTH PR: 20259 MFC after: 2 weeks | ||||
* | Tons of type, style and warning fixes that have been rotting in my tree for | des | 2001-10-18 | 1 | -18/+24 |
| | | | | | ages - some of which wouldn't be necessary if gcc wasn't broken or TPTB were willing to do something (-fno-builtin) about it. | ||||
* | Add __FBSDID()s to libfetch | dillon | 2001-09-30 | 1 | -2/+3 |
| | |||||
* | Implement a HTTP_USER_AGENT environment variable. | des | 2001-05-27 | 1 | -1/+4 |
| | | | | | PR: 27669 Submitted by: Eoin Lawless <eoin@maths.tcd.ie> | ||||
* | Add rudimentary support for an authentication callback function. | des | 2001-05-26 | 1 | -16/+40 |
| | |||||
* | Apply 'const' liberally. | archie | 2001-04-24 | 1 | -20/+20 |
| | | | | Fix some other minor glitches. | ||||
* | Support lower-case versions of the proxy environment variables. | des | 2001-03-07 | 1 | -1/+2 |
| | | | | PR: bin/25494 | ||||
* | Use the documented (and historical) defaults. Centralize the decision logic | des | 2000-11-10 | 1 | -20/+3 |
| | | | | | | in order to avoid this bug in the future. Submitted by: se | ||||
* | Use CHECK_FLAG | des | 2000-10-29 | 1 | -6/+6 |
| | |||||
* | Rework proxy handling so that proxies can be specified as URLs. | des | 2000-10-12 | 1 | -132/+65 |
| | | | | As a side effect, remove a lot of duplicate and now redundant code. | ||||
* | 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). | ||||
* | Fix signedness bogon. | des | 2000-08-02 | 1 | -7/+6 |
| |