You can use the options header header header ETagand If-Modified-Since.
Here is an example python code:
etag = ...
last_modifier = ...
req = urllib2.Request(url)
if etag:
req.add_header("If-None-Match", etag)
if last_modified:
req.add_header("If-Modified-Since", last_modified)
opener = urllib2.build_opener(NotModifiedHandler())
url_handle = opener.open(req)
headers = url_handle.info()
if hasattr(url_handle, 'code') and url_handle.code == 304:
else:
The code can be ported to any language in which you simply add the necessary header tags and check the returned code.
UPDATE: Checkout this blog post: HTTP Conditional GET for RSS Hackers