History log of /freebsd/lib/libfetch/http.c (Results 201 – 225 of 278)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 836e34ee 18-Dec-2007 Dag-Erling Smørgrav <des@FreeBSD.org>

Old patch I had lying around: correctly cast the argument to is*().
IWBNI gcc could warn about this the way it warns about printf() abuse.

MFC after: 1 week


# a1b37df2 14-Dec-2007 Dag-Erling Smørgrav <des@FreeBSD.org>

Clean up namespace violations.

MFC after: 1 week


# cd842257 08-May-2007 Dag-Erling Smørgrav <des@FreeBSD.org>

Handle temporary redirects (HTTP status code 307)

PR: kern/112515
Submitted by: Ryan C. Gordon <icculus@icculus.org>
MFC after: 3 weeks


Revision tags: release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0
# 2738229e 24-Aug-2005 Dag-Erling Smørgrav <des@FreeBSD.org>

Ignore HTTP_PROXY if it is defined but empty. This was already handled
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, eve

Ignore HTTP_PROXY if it is defined but empty. This was already handled
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

show more ...


Revision tags: release/5.4.0_cvs, release/5.4.0
# 448980e7 02-Mar-2005 Kelly Yancey <kbyanc@FreeBSD.org>

Set the TCP_NODELAY socket option and clear TCP_NOPUSH in order to flush
any pending HTTP request rather than calling shutdown(2) with SHUT_WR.
This makes libfetch (and thus fetch(1)) work again with

Set the TCP_NODELAY socket option and clear TCP_NOPUSH in order to flush
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)

show more ...


# 20a2a51b 16-Feb-2005 Kelly Yancey <kbyanc@FreeBSD.org>

Set TCP_NOPUSH on HTTP requests, reducing the number of round-trips
necessary to establish each connection.

MFC after: 2 weeks


Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0
# 2cbbf9da 21-Sep-2004 Dag-Erling Smørgrav <des@FreeBSD.org>

Update copyright years.


# 264a4c03 07-Aug-2004 Dag-Erling Smørgrav <des@FreeBSD.org>

Don't forget to allocate space for the terminating NUL when converting to
base 64.

PR: misc/70022
Submitted by: Herve Masson <herve-bsdbt@mindstep.com>
MFC after: 3 days


Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1
# 4d3d90ad 11-Feb-2004 Dag-Erling Smørgrav <des@FreeBSD.org>

Slight tweak to previous commit: don't forget to call _http_seterr() if
we get a genuine 416 reply.


# b5e12145 11-Feb-2004 Dag-Erling Smørgrav <des@FreeBSD.org>

When restarting a transfer that has already completed, the server will
reply with a 416 error code (requested range not satisfiable) because
we ask it to start at the end of the file. Handle this gr

When restarting a transfer that has already completed, the server will
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.

show more ...


# 2576e459 11-Feb-2004 Dag-Erling Smørgrav <des@FreeBSD.org>

Re-wrap some comments.


Revision tags: release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0
# 762892c0 29-Mar-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Don't dereference flags if NULL (see http.c rev 1.87)


# b91d6074 11-Mar-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Don't parse the proxy URL unless we're actually going to use it. No real
functional difference, but debugging output will be less confusing.


# 930105c1 28-Jan-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

style(9): add parentheses to sizeof even when not strictly required.

MFC after: 3 days


# 591c0199 22-Jan-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

A negative offset means "get it all".


Revision tags: release/5.0.0_cvs, release/5.0.0
# d5216a4f 28-Nov-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Implement and document support for an HTTP_REFERER environment variable.

PR: 28171
Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
Approved by: re (bmah)
MFC after: 1 week


# a49b853d 30-Oct-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Use __func__ and break a long line.


# cab84950 30-Oct-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Don't forget to set the error flag when _fetch_read() returns -1.


# 9f788e9c 27-Oct-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Eliminate two cases of undefined behaviour: total in _fetch_write() was
not initialized before use, and _http_growbuf() did not return a value
on success.

Reported by: Peter Edwards <pmedwards@eirco

Eliminate two cases of undefined behaviour: total in _fetch_write() was
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

show more ...


Revision tags: release/4.7.0_cvs
# 721d559c 03-Oct-2002 Ruslan Ermilov <ru@FreeBSD.org>

HTTP authentication got broken in rev. 1.49.


Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs
# f8bd33a0 19-Jun-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Don't try to dereference conn when we know it's NULL.


# 3070f6cb 05-Jun-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Make SSL support conditional on NOCRYPT.


# 111e2510 05-Jun-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Add SSL support + slight cleanup.

Submitted by: Henry Whincup <henry@techiebod.com> (in principle)


# 9601e333 05-Jun-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Wrap everything in struct connection, and enforce timeouts everywhere
(except for DNS operations). Always use funopen() for HTTP, to support
both timeouts and SSL.


# ccdd94bd 05-Jun-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Rename struct cookie to struct httpio to avoid confusion (it's not an HTTP
cookie) and increase symmetry with equivalent FTP code.


12345678910>>...12