Sortix cisortix manual
This manual documents Sortix cisortix. You can instead view this document in the latest official manual.
CURLOPT_POST(3) | curl_easy_setopt options | CURLOPT_POST(3) |
NAME
CURLOPT_POST - make an HTTP POSTDESCRIPTION
A parameter set to 1 tells libcurl to do a regular HTTP post. This will also make the library use a "Content-Type: application/x-www-form-urlencoded" header. (This is by far the most commonly used POST method).DEFAULT
0, disabledPROTOCOLS
HTTPEXAMPLE
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
curl_easy_setopt(curl, CURLOPT_POST, 1L);
/* set up the read callback with CURLOPT_READFUNCTION */
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
AVAILABILITY
Along with HTTPRETURN VALUE
Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not.SEE ALSO
CURLOPT_POSTFIELDS(3), CURLOPT_HTTPPOST(3),May 17, 2022 | libcurl 7.84.0 |