I am using the latest version of guzzle.
(from composer.json)
"guzzlehttp/guzzle": "~5"
(from composer.lock)
"name": "guzzlehttp/guzzle",
"version": "5.2.0",
When I attempt to request (GET or POST) with a URL that contains a PORT number:
$response = $client->get('http://www.hostdnshere.com:8888', array());
I get the following error:
string(68) "cURL error 7: Failed to connect to 000.000.000.000: Permission denied"
When I do the same but omit the PORT:
$response = $client->get('http://www.hostdnshere.com', array());
The request succeeds without issue. I have searched the documentation and Googled the web but cannot find out how to set the port for the host since it cannot be included.
Additionally, I have tested it all using cURL on the server form which the requests are being sent, with and without the PORT, works like a charm no matter what so I know its not an issue with the Server, DNS, Proxies, or PORTS.
guzzleissue but invalid port specified, or auth protected area