How to get date modified of a web page (via http)

Started by ale870, September 04, 2008, 04:22:46 AM

Previous topic - Next topic

ale870

Hello, I need to get the modification date (last update) of a web page.

Have you any idea how can I realize that with newLisp?



Thank you!
--

Lutz

#1
Use either the "header" or "list" option in 'get-url':


> (get-url "http://www.nuevatec.com" "header")
"Date: Sat, 30 Aug 2008 18:55:50 GMTrnServer: ApachernLast-Modified: Fri, 21 Mar 2008 01:39:34 GMTrnETag: "1502b2c-c59-47e311d6"rnAccept-Ranges: bytesrnContent-Length: 3161rnContent-Type: text/htmlrnAge: 57rnConnection: closernrn"
>


then look at the Last-Modified header option. Not in all situations this option is reported.

ale870

#2
It works! Thank you!
--