From f097dab94ef0708d5e02fe7f715c89d3c05e492b Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Mon, 19 Sep 2022 16:16:40 +0200 Subject: maximum of 20 redirects (same as chrome browser) --- it_url.class | 1 + 1 file changed, 1 insertion(+) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index d718201..6058346 100644 --- a/it_url.class +++ b/it_url.class @@ -261,6 +261,7 @@ static function curl_opts($p=array()) CURLOPT_LOW_SPEED_LIMIT => 5, CURLOPT_LOW_SPEED_TIME => $p['timeout'], CURLOPT_FOLLOWLOCATION => $p['followlocation'], + CURLOPT_MAXREDIRS => 20, CURLOPT_HTTPHEADER => $headers, CURLOPT_CUSTOMREQUEST => $p['method'] ?: null, CURLOPT_NOBODY => $p['method'] == 'HEAD', -- cgit v1.2.3