I'm trying to scrape a website using Goutte (https://github.com/FriendsOfPHP/Goutte) in Laravel. It works fine but returns an error when using a proxy
$client = new Client([
'curl' => [ CURLOPT_SSLVERSION => 1 ],
]);
$proxy = 'http://50.239.245.110:80';
$client->setClient(new \GuzzleHttp\Client(['proxy' => $proxy]));
$crawler = $client->request('GET', 'https://symfony.com/doc/current/components/dom_crawler.html');
$test = $crawler->filter('h1')->extract(['_text']);
dd($test);
I added 'curl' => [ CURLOPT_SSLVERSION => 1 ] since it said that it the ssl version was correct but it still displays the same error.