mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
example/crawler: also set CURLOPT_AUTOREFERER
Could make sense, and it was not used in any example before. Closes #11283
This commit is contained in:
parent
ce421a7a7f
commit
578becba30
@ -95,6 +95,7 @@ CURL *make_handle(char *url)
|
||||
curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "");
|
||||
curl_easy_setopt(handle, CURLOPT_TIMEOUT, 5L);
|
||||
curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1L);
|
||||
curl_easy_setopt(handle, CURLOPT_AUTOREFERER, 1L);
|
||||
curl_easy_setopt(handle, CURLOPT_MAXREDIRS, 10L);
|
||||
curl_easy_setopt(handle, CURLOPT_CONNECTTIMEOUT, 2L);
|
||||
curl_easy_setopt(handle, CURLOPT_COOKIEFILE, "");
|
||||
|
Loading…
Reference in New Issue
Block a user