Sortix 1.1dev ports manual
This manual documents Sortix 1.1dev ports. You can instead view this document in the latest official manual.
CURLOPT_HEADER(3) | curl_easy_setopt options | CURLOPT_HEADER(3) |
NAME
CURLOPT_HEADER - pass headers to the data streamSYNOPSIS
#include <curl/curl.h>DESCRIPTION
Pass the long value onoff set to 1 to ask libcurl to include the headers in the write callback ( CURLOPT_WRITEFUNCTION(3)). This option is relevant for protocols that actually have headers or other meta-data (like HTTP and FTP).DEFAULT
0PROTOCOLS
MostEXAMPLE
CURL *curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); curl_easy_setopt(curl, CURLOPT_HEADER, 1L); curl_easy_perform(curl); }
RETURN VALUE
Returns CURLE_OK.SEE ALSO
CURLOPT_HEADERFUNCTION(3), CURLOPT_HTTPHEADER(3),October 3, 2018 | libcurl 7.69.0 |