Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Proxy not working #455

Open
gyan111 opened this issue Jan 17, 2022 · 0 comments
Open

Proxy not working #455

gyan111 opened this issue Jan 17, 2022 · 0 comments

Comments

@gyan111
Copy link

gyan111 commented Jan 17, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant