I have not been able to discover what problem my code has.
I have an API made in Laravel, which for security reasons I access from port 7744 on the web front, when consulting it from another site, I get the error
'cURL error 7: Failed to connect to http: // myhost: 7744 / api / v1 / port 7744: Connection refused'
if I return to enable port 80 then it works.
Can someone guide me in the solution?
In my case the : being used after the end of the domain name is non-standard and not part of the URI specification. I would have thought it would have worked after the hostname though?
If you can attach a middleware to your Guzzle client then I would try doing a dd() on the request and check the scheme, domain, path and query string properties as they are being sent out.
There are some closed issues relating to this on the Guzzle issue board - they seem to hint at being a PHP issue with how it parses strings.