mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[curl] FOLLOWLOCATION 1
It does not execute follow-url-hook, but works.
This commit is contained in:
parent
d12dacf6ab
commit
d10108751f
@ -195,7 +195,7 @@ do_http(struct connection *conn)
|
|||||||
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, http->error);
|
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, http->error);
|
||||||
curl_easy_setopt(curl, CURLOPT_PRIVATE, conn);
|
curl_easy_setopt(curl, CURLOPT_PRIVATE, conn);
|
||||||
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L);
|
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L);
|
||||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 0L);
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, my_fwrite_header);
|
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, my_fwrite_header);
|
||||||
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "");
|
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "");
|
||||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
|
||||||
|
Loading…
Reference in New Issue
Block a user