Sortix 1.1dev ports manual
This manual documents Sortix 1.1dev ports. You can instead view this document in the latest official manual.
CURLOPT_FOLLOWLOCATION(3) | curl_easy_setopt options | CURLOPT_FOLLOWLOCATION(3) |
NAME
CURLOPT_FOLLOWLOCATION - follow HTTP 3xx redirectsSYNOPSIS
#include <curl/curl.h>DESCRIPTION
A long parameter set to 1 tells the library to follow any Location: header that the server sends as part of an HTTP header in a 3xx response. The Location: header can specify a relative or an absolute URL to follow.DEFAULT
0, disabledPROTOCOLS
HTTP(S)EXAMPLE
CURL *curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); /* example.com is redirected, so we tell libcurl to follow redirection */ curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_perform(curl); }
AVAILABILITY
Along with HTTPRETURN VALUE
Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not.SEE ALSO
CURLOPT_REDIR_PROTOCOLS(3), CURLOPT_PROTOCOLS(3), CURLOPT_POSTREDIR(3), CURLINFO_REDIRECT_URL(3), CURLINFO_REDIRECT_COUNT(3),January 28, 2020 | libcurl 7.69.0 |