Unix and Linux Discussions Tagged with curl |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
4,203 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,190 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
5,442 |
Shell Programming and Scripting |
|
|
|
3 |
10,345 |
UNIX for Beginners Questions & Answers |
|
|
|
12 |
3,641 |
Shell Programming and Scripting |
|
|
|
5 |
6,105 |
Web Development |
|
|
|
4 |
4,155 |
AIX |
|
|
|
6 |
20,649 |
Web Development |
|
|
|
3 |
10,800 |
Web Development |
|
|
|
3 |
7,360 |
AIX |
|
|
|
2 |
8,463 |
Shell Programming and Scripting |
|
|
|
4 |
7,402 |
Web Development |
|
|
|
3 |
6,708 |
Web Development |
|
|
|
8 |
7,233 |
Shell Programming and Scripting |
|
|
|
5 |
3,382 |
Shell Programming and Scripting |
|
|
|
1 |
1,511 |
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,193 |
Shell Programming and Scripting |
|
|
|
4 |
13,878 |
Shell Programming and Scripting |
|
|
|
5 |
3,581 |
Shell Programming and Scripting |
|
|
|
3 |
5,569 |
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,011 |
Shell Programming and Scripting |
|
|
|
4 |
2,247 |
Shell Programming and Scripting |
|
|
|
3 |
3,186 |
Shell Programming and Scripting |
|
|
|
1 |
4,105 |
Shell Programming and Scripting |
|
|
|
9 |
20,424 |
Shell Programming and Scripting |
|
|
|
2 |
6,385 |
Programming |
|
|
|
2 |
43,056 |
Shell Programming and Scripting |
|
|
|
1 |
2,375 |
Shell Programming and Scripting |
|
|
|
1 |
5,389 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,831 |
Red Hat |
|
|
|
1 |
11,421 |
Shell Programming and Scripting |
|
|
|
5 |
416,220 |
Shell Programming and Scripting |
|
|
|
5 |
2,330 |
Shell Programming and Scripting |
CURLOPT_HTTPGET(3) curl_easy_setopt options CURLOPT_HTTPGET(3)
NAME
CURLOPT_HTTPGET - ask for a HTTP GET request
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTPGET, long useget);
DESCRIPTION
Pass a long. If useget is 1, this forces the HTTP request to get back to using GET. Usable if a POST, HEAD, PUT, etc has been used previ-
ously using the same curl handle.
When setting CURLOPT_HTTPGET(3) to 1, it will automatically set CURLOPT_NOBODY(3) to 0 and CURLOPT_UPLOAD(3) to 0.
DEFAULT
0
PROTOCOLS
HTTP(S)
EXAMPLE
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
/* use a GET to fetch this */
curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);
/* Perform the request */
curl_easy_perform(curl);
}
AVAILABILITY
Along with HTTP
RETURN VALUE
Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO
CURLOPT_NOBODY(3), CURLOPT_UPLOAD(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_HTTPGET(3)