Lasso Soft Inc. > Home

[ CURLINFO_FILETIME ]

Method

[curlinfo_filetime] is used together with [curl->get]. It is used to receive the remote time of the retrieved document (in number of seconds since January 1, 1970 in the GMT/UTC time zone). If you receive -1, then it is likely that the server does not support the option.

To have practical use of this method, you need to combine it with [curl->set] and [curlopt_filetime].

  • Syntax
curl->get(curlinfo_filetime)
Examples
  • Beginner

To obtain the modification date of a file on a remote server.

The date is given in seconds since January 1, 1970.

Code

local(c = curl('ftp://ftp.sunet.se/pub/etext/gutenberg/GUTINDEX.00.txt'))
#c->set(curlopt_filetime, 1)
local(result = #c->result)
#c->get(curlinfo_filetime)

Result

01290930354

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft