Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] does modified? GET or HEAD?

From: hallvard:ystad:helpinhand at: 14-Apr-2003 13:53

Hi Does anyone know if 'modified? reads the whole URL with a http GET command, or does it simply use a HEAD command? Does anyone have some code for getting the date out of a port! object? Say I'd like to fetch a URL only if it's been modified since the last time I was there. Is there a way to check without having to read the URL twice? E.g. this would read the URL twice, if the site has changed: if lastvisit < modified? some-url [ read some-url ] Thanks, ~H