[curlopt_filetime] is used together with [curl->set]. The parameter expected by [curl->set] is an integer. A value of 1 means that libcurl will attempt to get the modification date of the remote document in this operation.
To have practic use of this method, you need to combine it with [curl->get] and [curlinfo_filetime].
curlopt_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