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


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!


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

> (get-url "" "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.


It works! Thank you!