fixed the search part of the search engine
Changed http 2 request to yahoo to a http 1.1 for proper support Solved anubis for startpage Ddg blocked via capcha, not gonna implement a capcha solver for ts lol
This commit is contained in:
@@ -63,7 +63,9 @@ void configure_curl_handle(CURL *curl, const char *full_url,
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)chunk);
|
||||
curl_easy_setopt(curl, CURLOPT_USERAGENT, get_random_user_agent());
|
||||
|
||||
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
|
||||
/* Yahoo currently answers HTTP/2 requests with a 500 error. HTTP/1.1 is
|
||||
accepted by all of the scraped engines, so use it everywhere. */
|
||||
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
|
||||
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "");
|
||||
curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, CURL_DNS_TIMEOUT_SECS);
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||
|
||||
Reference in New Issue
Block a user