nategood / httpful

A Chainable, REST Friendly, PHP HTTP Client. A sane alternative to cURL.
MIT License
1.74k stars 298 forks source link

Curl proxy configuration is not used by Httpful #289

Open porteg opened 4 years ago

porteg commented 4 years ago

Hi.

We are using Httpful library to do some REST requests. All of them are to other internal systems in the same network so those request does not require the use of a proxy.

Now, we need to do a request to a system that requires the proxy. This proxy has been set into the $HTTPS_PROXY environment variable and using curl all is working fine.

The problem is that Httpful is not working, the response is **"Unable to connect to *** : 56 Received HTTP code 400 from proxy after CONNECT"**

We have also tried to set the proxy with useProxy function but the result is the same.

Could you help us?

porteg commented 4 years ago

The version we are using is 0.2.19.