| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Submitted by: Henry Whincup <henry@techiebod.com> (in principle)
|
|
|
|
|
| |
(except for DNS operations). Always use funopen() for HTTP, to support
both timeouts and SSL.
|
|
|
|
| |
cookie) and increase symmetry with equivalent FTP code.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
chunk.
PR: bin/33608
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
it of HTML tags and comments.
PR: bin/32989
MFC after: 1 week
|
|
|
|
|
|
|
| |
default.
PR: 32988
MFC after: 3 days
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
ages - some of which wouldn't be necessary if gcc wasn't broken or TPTB were
willing to do something (-fno-builtin) about it.
|
| |
|
|
|
|
|
| |
PR: 27669
Submitted by: Eoin Lawless <eoin@maths.tcd.ie>
|
| |
|
|
|
|
| |
Fix some other minor glitches.
|
|
|
|
| |
PR: bin/25494
|
|
|
|
|
|
| |
in order to avoid this bug in the future.
Submitted by: se
|
| |
|
|
|
|
| |
As a side effect, remove a lot of duplicate and now redundant code.
|
|
|
|
| |
HTTP-Version on the Status-Line (see RFC2616 sections 3.1 and 6.1).
|
| |
|
|
|
|
|
| |
Work around YA Apache bug: don't send port in Host: header if it's the
default port.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Pointed out by: ache
|
|
|
|
| |
left out by accident during the rewrite.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Only send absolute URI if connected to a proxy, since Apache doesn't always
understand absolute URIs.
Clean up some of the debugging output.
|
|
|
|
| |
Submitted by: se
|
|
|
|
| |
are disabled.
|
| |
|
| |
|
|
|
|
| |
Submitted by: ume
|
|
|
|
|
| |
Reported by: Ben Smithurst <ben@scientia.demon.co.uk>
Reviewed by: des
|
|
|
|
| |
Initialize the struct url_stat at the beginning of fetchStatHTTP().
|
|
|
|
|
|
| |
Implement fetchStatHTTP().
Unbungle struct url, and add fetchFreeURL().
Document it.
|
| |
|
|
|
|
| |
Outline sanity checking of server port spec.
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
| |
Rename fetchConnect to _fetch_connect since it's internal.
|