Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

markuskoehler's avatar

Guzzle Proxy Issue

Hi all,

I have strange issues with Guzzle... It seems to have baked our company proxy somewhere and I cannot get rid of it, so not able to make any request if outside the company network...

I tried unsetting environment variables, overwriting proxy in request using empty strings or open web proxies, excluding the domain from proxy usage, ... I dont know what else to try.

Could someone specify where Guzzle gets its proxy information from and how to disable that? Even if I overwrite the proxy the error message still says "cURL error 5: Could not resolve proxy: (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)" and also disabling the 2 lines with CURLOPT_PROXY in CurlHandler doesnt help... Caching is set to array btw.

Would be really curious what the cause of my issue could be!

Regards, Markus

0 likes
4 replies
ohffs's avatar

Does curl work on the commandline ok?

markuskoehler's avatar

Yes just downloaded curl for Windows and that displays me the content of http://google.com as it should. So it seems to be a specific problem to PHP, Laravel or Guzzle?

firmadani's avatar

Same issue here, I've set no_proxy in my .bash_profile and it work when I test 'curl' it on command line, but somehow Guzzle still pick it up the value. I don't know where Guzzle get the value from for where this value are store it under which configuration.

Please or to participate in this conversation.