LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to determine age of rss feeds (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-determine-age-of-rss-feeds-480650/)

tooparam 09-05-2006 12:19 PM

How to determine age of rss feeds
 
Hi there

I wish to write some script which can cache the RSS feeds on my server as long as they not updated on the remote server.

Please give me some clue how to go about it.

unSpawn 09-07-2006 04:08 AM

Could poll on interval using HEAD request (run "%A.*%S" string through "date" to expand):
Code:

HEAD $URI HTTP/1.0 If-Modified-Since: %A, %d-%b-%y %H:%M:%S
and parse response for string "304 Not modified":
Code:

HTTP/1.0 304 Not modified
HEAD request being cheap (bandwidth): only header is returned.


All times are GMT -5. The time now is 02:19 PM.