mirror of
https://github.com/curl/curl.git
synced 2026-05-30 11:27:29 +03:00
Fixed debug.c to work again unchanged.
Added CURLOPT_FOLLOWLOCATION since example.com is now redirected.
This commit is contained in:
parent
163a1dca5f
commit
3d7b7b6b84
1 changed files with 3 additions and 0 deletions
|
|
@ -130,6 +130,9 @@ int main(void)
|
|||
/* the DEBUGFUNCTION has no effect until we enable VERBOSE */
|
||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||
|
||||
/* example.com is redirected, so we tell libcurl to follow redirection */
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
|
||||
res = curl_easy_perform(curl);
|
||||
/* Check for errors */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue