Goutte icon indicating copy to clipboard operation
Goutte copied to clipboard

Proxy not working

Open gyan111 opened this issue 4 years ago • 0 comments

I am using Goutte with Laravel and hosted on shared hosting.

On local few proxies are working and few are not.

But on server which is a namecheap shared hosting proxy not working at all.

Here is my code.

use Symfony\Component\HttpClient\HttpClient; use Goutte\Client;

used in different order too but same issue.

$proxy='5.11.17.230:1080'; $config = ['proxy' => $proxy, 'timeout' => 60]; $client = new Client(HttpClient::create($config));

error

Failed to connect to 5.11.17.230 port 1080: Connection refused for

I have used several proxies from several source but same issue.

gyan111 avatar Jan 17 '22 15:01 gyan111