[opensuse] Determine modification time of remote (http) file
Is there way to determine the last modification time of a file via HTTP? Specifically, I'd like to not download or parse a very large RSS file (300+ items) if it hasn't changed. TIA, Jeffrey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jeffrey L. Taylor wrote:
Is there way to determine the last modification time of a file via HTTP? Specifically, I'd like to not download or parse a very large RSS file (300+ items) if it hasn't changed.
A conditional http get will do just that. /Per -- /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday January 18 2009, Jeffrey L. Taylor wrote:
Is there way to determine the last modification time of a file via HTTP? Specifically, I'd like to not download or parse a very large RSS file (300+ items) if it hasn't changed.
Wget has an option specifically to handle this: "-N"
TIA, Jeffrey
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jeffrey L. Taylor escribió:
Is there way to determine the last modification time of a file via HTTP? Specifically, I'd like to not download or parse a very large RSS file (300+ items) if it hasn't changed.
in what language are you coding your RSS reader ? there are plenty of ways to do that, but the right one is specific to the tools you are using. anyway, that is done using conditional http requests. -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Quoting Cristian Rodríguez <crrodriguez@suse.de>:
Jeffrey L. Taylor escribió:
Is there way to determine the last modification time of a file via HTTP? Specifically, I'd like to not download or parse a very large RSS file (300+ items) if it hasn't changed.
in what language are you coding your RSS reader ? there are plenty of ways to do that, but the right one is specific to the tools you are using.
anyway, that is done using conditional http requests.
Ruby, specifically Ruby on Rails. Starting with Rails 2.2 conditional GET is supported from the server side. I'm looking if there is any existing support for the client side. Thanks, Jeffrey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jeffrey L. Taylor escribió:
Ruby, specifically Ruby on Rails. Starting with Rails 2.2 conditional GET is supported from the server side.
http://www.superwick.com/archives/2007/06/09/rss-feed-parsing-in-ruby-on-rai... I'm looking if there is any existing support
for the client side.
It is part of the http protocol, any client that can send custom http headers will do it just fine. -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
participants (4)
-
Cristian Rodríguez
-
Jeffrey L. Taylor
-
Per Jessen
-
Randall R Schulz