Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
CURLOPT_HTTP09_ALLOWED(3) | Library Functions Manual | CURLOPT_HTTP09_ALLOWED(3) |
NAME
CURLOPT_HTTP09_ALLOWED - allow HTTP/0.9 responseSYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTP09_ALLOWED, long allowed);
DESCRIPTION
Pass the long argument allowed set to 1L to allow HTTP/0.9 responses.DEFAULT
0PROTOCOLS
This functionality affects http onlyEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
CURLcode ret;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_HTTP09_ALLOWED, 1L);
ret = curl_easy_perform(curl);
}
}
HISTORY
curl allowed HTTP/0.9 responses by default before 7.66.0AVAILABILITY
Added in curl 7.64.0RETURN VALUE
Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not.SEE ALSO
CURLOPT_HTTP_VERSION(3), CURLOPT_SSLVERSION(3)2024-12-28 | libcurl |