]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for HTTP 1.1 If-Modified-Since behavior.
authorMurray Stokely <murray@FreeBSD.org>
Mon, 15 Dec 2008 08:27:44 +0000 (08:27 +0000)
committerMurray Stokely <murray@FreeBSD.org>
Mon, 15 Dec 2008 08:27:44 +0000 (08:27 +0000)
commit7f92799f678efdf44f0f4d3322f49498749e4468
tree9ece849067a9d612c3bf00d2dd2a07b33b383a74
parent0a420d08ae2e066c872a51dba7646a5a6528f9d0
Add support for HTTP 1.1 If-Modified-Since behavior.

fetch(1) accepts a new argument -i <file> that if specified will cause
the file to be downloaded only if it is more recent than the mtime of
<file>.

libfetch(3) accepts the mtime in the url structure and a flag to
indicate when this behavior is desired.

PR: bin/87841
Submitted by: Jukka A. Ukkonen <jau@iki.fi> (partially)
Reviewed by: des, ru
MFC after: 3 weeks
lib/libfetch/fetch.3
lib/libfetch/fetch.h
lib/libfetch/http.c
usr.bin/fetch/fetch.1
usr.bin/fetch/fetch.c