Merge pull request #967 from boxbilling/bulk-fixes

Updated cURL user agent
This commit is contained in:
Yağızhan authored and GitHub committed 2021-08-12 14:33:17 +03:00
commit 10730cdd85
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,7 @@ class Box_Tools
public function get_url($url, $timeout = 10)
{
$ch = curl_init();
$userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)';
$userAgent = 'Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0';
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);