When you retrieve it, store the value of the last-modified header.
When you retrieve it the next time, pass the if-modified-since request
header.  That's what I do with a feed aggregator I wrote and it works
great.  You could also look at the ETag value.

Rob Wilkerson


On 10/19/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> I am trying to compare the content of a file I am reading from a remote 
> server using <cfhttp> and the content of a file I read with <cffile> to see 
> if they are the same or not.
>
> The file that is being read was previously written from a <cfhttp> read.  My 
> goal is to see if the content from the remote file has changed since the last 
> time it was copied to the local server, if so copy it to the local server.
>
> I'm having surprising difficulties with that.  Even though I have just copied 
> the remote file, a second test says the content of the two files are NOT the 
> same?
>
> Am I missing something here?
>
> Is there another way I can do this?
>
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> ---------
> | 1 |   |
> ---------  Binary Soduko
> |   |   |
> ---------
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice:  This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257406
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to