This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Getting file timestamp ;)

Old posts that have not been replied to for several years.
Locked
P
Prestige

Getting file timestamp ;)

Post by Prestige »

Somebody know if there is a way to get via the geturl the date & time of a file'?

:o
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This information is only available if the web-server provides it.

It is passed along in the header of the http reply from the server, along with other meta data.

This meta data can be extracted using the commands provided with the http package.

The docs for this package can be obtained here, with direct referance to the information meta here
p
pollar
Voice
Posts: 18
Joined: Thu Jan 09, 2003 12:20 pm
Location: Lithuania

Shorter way...

Post by pollar »

Code: Select all

set newsfile [::http::geturl http://xxx.xxx.xxx/xxx.xxx] 
upvar #0 $newsfile state

array set meta $state(meta)

#just for testing :)
putquick "PRIVMSG $nick :Last Modified : $meta(Last-Modified)"       
putquick "PRIVMSG $nick :File date : $meta(Date)"
P
Prestige

Post by Prestige »

Thxkz a l8r!!

btw: pollar i'll send u some swiss keese :)

ciauu!
Locked