nategood / httpful

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

Quiet curl #270

Open pascalBokBok opened 6 years ago

pascalBokBok commented 6 years ago

Hi Httpful should ask curl to be quiet / not write to STDOUT/ERR. Example: When a domain name cannot be resolved the php script using httpful will output "Could not resolve host: somehost.com" and then Httpful will throw an Httpful\Exception\ConnectionErrorException with the same info. But even if I catch the error I still get the output. There shouldn't be any output - just the exception.

The same issue appears for connection timeouts.

pascalBokBok commented 6 years ago

@nategood If unmaintained, it would be nice if you refered to some Httpful alternatives for newcomers.