Ok, I have attached a new patch that moves the local time into http_stat. I am also sending this to [EMAIL PROTECTED] for others to try out. It seems to work great for me.
wget-cvs-ifmodsince.patch
ChangeLog: Craig Sowadski <[EMAIL PROTECTED]>
* http.c (If-Modified-Since): Implemented use of 'If-Modified-Since' header instead of checking 'Last-Modified' durring the head-only request.
Description: This patch modifies the time-stamping method by only comparing local and remote file sizes, and then using the 'If-Modified-Since' header durring the request. Craig Sowadski <[EMAIL PROTECTED]>
From: Hrvoje Niksic <[EMAIL PROTECTED]> To: "Craig Sowadski" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: wget-cvs-ifmodsince.patch Date: Thu, 12 Feb 2004 19:01:06 +0100
The patch looks good, thanks. You might want to put the local time to `struct http_stat' (where other details lie), so that the number of arguments to gethttp doesn't multiply.
Would you agree to post the patch to the list at <[EMAIL PROTECTED]>, so that other people can try it out?
_________________________________________________________________
Get fast, reliable access with MSN 9 Dial-up. Click here for Special Offer! http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/
wget-cvs-ifmodsince.patch
Description: Binary data