LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2006, 12:19 PM   #1
tooparam
Member
 
Registered: Nov 2005
Location: India
Distribution: Slackware
Posts: 51

Rep: Reputation: 15
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.
 
Old 09-07-2006, 04:08 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Personalized RSS feeds ctkroeker LQ Suggestions & Feedback 2 12-06-2005 07:41 PM
RSS Feeds in Firefox dudeman41465 Linux - Software 3 11-14-2005 07:57 PM
RSS feeds ..?? logicalfuzz LQ Suggestions & Feedback 4 11-02-2005 07:13 PM
RSS Feeds (HELP) webwolf70 Programming 1 02-07-2005 09:08 AM
Rss Feeds essoft478 Programming 1 12-19-2004 12:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration