Lasso Soft Inc. > Home

[ CURLOPT_FILETIME ]

Method

[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].

  • Syntax
curlopt_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