[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].
curl->get(curlinfo_filetime)
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
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments