Unix and Linux Discussions Tagged with curl |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
4,195 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,189 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
5,441 |
Shell Programming and Scripting |
|
|
|
3 |
10,345 |
UNIX for Beginners Questions & Answers |
|
|
|
12 |
3,639 |
Shell Programming and Scripting |
|
|
|
5 |
6,104 |
Web Development |
|
|
|
4 |
4,152 |
AIX |
|
|
|
6 |
20,648 |
Web Development |
|
|
|
3 |
10,797 |
Web Development |
|
|
|
3 |
7,358 |
AIX |
|
|
|
2 |
8,462 |
Shell Programming and Scripting |
|
|
|
4 |
7,398 |
Web Development |
|
|
|
3 |
6,704 |
Web Development |
|
|
|
8 |
7,231 |
Shell Programming and Scripting |
|
|
|
5 |
3,382 |
Shell Programming and Scripting |
|
|
|
1 |
1,509 |
Shell Programming and Scripting |
|
|
|
2 |
1,336 |
Shell Programming and Scripting |
|
|
|
0 |
1,829 |
Shell Programming and Scripting |
|
|
|
1 |
1,353 |
Shell Programming and Scripting |
|
|
|
0 |
7,192 |
Shell Programming and Scripting |
|
|
|
4 |
13,876 |
Shell Programming and Scripting |
|
|
|
5 |
3,581 |
Shell Programming and Scripting |
|
|
|
3 |
5,568 |
Shell Programming and Scripting |
|
|
|
6 |
9,495 |
Shell Programming and Scripting |
|
|
|
0 |
3,432 |
Shell Programming and Scripting |
|
|
|
0 |
2,427 |
Shell Programming and Scripting |
|
|
|
5 |
7,576 |
Shell Programming and Scripting |
|
|
|
5 |
15,010 |
Shell Programming and Scripting |
|
|
|
4 |
2,247 |
Shell Programming and Scripting |
|
|
|
3 |
3,185 |
Shell Programming and Scripting |
|
|
|
1 |
4,105 |
Shell Programming and Scripting |
|
|
|
9 |
20,420 |
Shell Programming and Scripting |
|
|
|
2 |
6,384 |
Programming |
|
|
|
2 |
43,049 |
Shell Programming and Scripting |
|
|
|
1 |
2,375 |
Shell Programming and Scripting |
|
|
|
1 |
5,389 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,828 |
Red Hat |
|
|
|
1 |
11,421 |
Shell Programming and Scripting |
|
|
|
5 |
416,187 |
Shell Programming and Scripting |
|
|
|
5 |
2,329 |
Shell Programming and Scripting |
CURLOPT_TIMEVALUE(3) curl_easy_setopt options CURLOPT_TIMEVALUE(3)
NAME
CURLOPT_TIMEVALUE - set time value for conditional
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TIMEVALUE, long val);
DESCRIPTION
Pass a long val as parameter. This should be the time counted as seconds since 1 Jan 1970, and the time will be used in a condition as
specified with CURLOPT_TIMECONDITION(3).
DEFAULT
0
PROTOCOLS
HTTP, FTP, RTSP, and FILE
EXAMPLE
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
/* January 1, 2020 is 1577833200 */
curl_easy_setopt(curl, CURLOPT_TIMEVALUE, 1577833200L);
/* If-Modified-Since the above time stamp */
curl_easy_setopt(curl, CURLOPT_TIMECONDITION, CURL_TIMECOND_IFMODSINCE);
/* Perform the request */
curl_easy_perform(curl);
}
AVAILABILITY
Always
RETURN VALUE
Returns CURLE_OK
SEE ALSO
CURLOPT_TIMECONDITION(3),
libcurl 7.54.0 April 03, 2016 CURLOPT_TIMEVALUE(3)