Hi @godsom. Thanks for being part of GoDaddy Community!
My guess would be that you're not able to connect due to the port you're trying to use or a configuration issue on the server you're trying to connect to. I don't have any direct experience using cURL, but I know our shared hosting environments are generally restricted to using ports 80/443. Hope that helps. If not, feel free to provide more information. Others in the community may be able to provide you with additional suggestions.
JesseW - GoDaddy | Community Manager | 24/7 support available at x.co/247support | Remember to choose a solution and give kudos.