Thursday, April 11, 2013

cURL Error (7): couldn't connect to host



"cURL Error (7): couldn't connect to host"

This error is self explanatory by itself.. It means that the connection to the host was not possible. This can be due to: 

1.   Your server has not started correctly. 
2.   The URL of the server you have entered is not correct. 
3.   There are firewall or other network settings which are preventing to browse the URL. 

The best way to troubleshoot such problem is first to test if we can browse the URL via a browser. 

2 comments:

  1. I can browse to URL but its not working for using curl command

    ReplyDelete
  2. Hi Manish,

    Is this an HTTPS URL which might be requiring some client certificates to be sent to it?

    thanks,

    ReplyDelete