Alex Alex - 9 months ago 148
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.