Alex Alex - 1 year ago 261
PHP Question

Goutte/Guzzle proxy doesn't work

I'm trying to use Goutte through a proxy, but it goes through the original IP.

I don't get any error or anything and the requests goes just fine, but though the original IP.

I've tested the proxy on my local computer and with phantomjs and it works just great.

$opts = ['proxy' => ''];
$client->request('GET', $url, $opts);
$appInfo->developer = $crawler->filter('something')->text();

And it uses the computer's IP, not the proxy.

Answer Source

I think Goutte has a bug and doesn't work with proxies. I've tried everything possible and it doesn't work.

I used curl and DOMCrawler.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download