Obtaining metadata from a url or web to for avoid loadit

S

Sak ..

Hi!

I was googling a lot with very different queris to find an answer, lets
see:
I'm programming a script who work with web files (html and rss), the
program check if exists modifications in tons of urls. It was wondering
if I could check the data modification (like a local file) to avoid to
download the file and load to memory (for compare with cached files) if
the file didn't change.

The question is: are there a method to know the modified date (or other
metada) of a file from the url?

I hope the question was clear and tanks for your time.
 
H

Hassan Schroeder

Thanks for the info, but I can't find anything about the question.

<quote>

9.4 HEAD

The HEAD method is identical to GET except that the server MUST NOT
return a message-body in the response. The metainformation contained
in the HTTP headers in response to a HEAD request SHOULD be identical
to the information sent in response to a GET request. This method can
be used for obtaining metainformation about the entity implied by the
request without transferring the entity-body itself. This method is
often used for testing hypertext links for validity, accessibility,
and recent modification.

</quote>

Also,

13.3.1 Last-Modified Dates

--=20
Hassan Schroeder ------------------------ (e-mail address removed)
twitter: @hassan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
DewittMill
Top