At Sun Jan 18 20:41:08 2004, Scott Harris wrote: > > HTTP provides a straightforward way to avoid repeated > > downloads of a file that hasn't changed, by sending > > If-Modified-Since requests. > > > > Unfortunately wget doesn't yet support this, though it is > > mentioned in its TODO file. (This is with wget 1.9.1, which > > is the current > > version.) > > My wget client checks for a newer file, or did I miss your point?
wget "cheats". It issues a "HEAD" command, and checks the timestamp. If it turns out that it needs the file, then it issues a "GET" command for it. This obviously saves downloading the file multiple times, but it means two separate HTTP requests if the file has changed instead of one single "GET If-Modified-Since". > wget -N http://www.merchantsoverseas.com/wwwroot/gorilla/bigevil.cf > --12:39:36-- http://www.merchantsoverseas.com/wwwroot/gorilla/bigevil.cf > => `bigevil.cf' > Resolving www.merchantsoverseas.com... done. > Connecting to www.merchantsoverseas.com[204.17.79.197]:80... connected. > HTTP request sent, awaiting response... 200 OK The clue is the "200 OK" message. If If-Modified-Since was being employed, the return code would have been "304 Not Modified". The overhead of this probably doesn't matter on this scale, though. Martin -- Martin Radford | "Only wimps use tape backup: _real_ [EMAIL PROTECTED] | men just upload their important stuff -o) Registered Linux user #9257 | on ftp and let the rest of the world /\\ - see http://counter.li.org | mirror it ;)" - Linus Torvalds _\_V ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk