Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
CURLOPT_HEADER(3) | Library Functions Manual | CURLOPT_HEADER(3) |
NAME
CURLOPT_HEADER - pass headers to the data streamSYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HEADER, long onoff);
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
This functionality affects ftp, http, imap, pop3 and smtpEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
curl_easy_perform(curl);
}
}
AVAILABILITY
Added in curl 7.1RETURN VALUE
Returns CURLE_OK.SEE ALSO
CURLOPT_HEADERFUNCTION(3), CURLOPT_HTTPHEADER(3)2024-12-28 | libcurl |