mirror of
https://github.com/curl/curl.git
synced 2026-07-23 01:37:15 +03: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue