mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
example: use correct type (long) for CURLOPT_FOLLOWLOCATION
This commit is contained in:
parent
afbd5f978e
commit
22eb00f937
@ -74,7 +74,7 @@ int main(int argc, char *argv[])
|
|||||||
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
|
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, hsp);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, hsp);
|
||||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
|
|
||||||
curl_easy_perform(curl);
|
curl_easy_perform(curl);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user