Curl Error

[stextbox id=”warning”]Error:┬áSSL read: error:00000000:lib(0):func(0):reason(0), errno 104[/stextbox]

Getting a curl error from a php script. Try to run curl without php.

ssh to the server
find the script

cd /var/www/vhosts/path/to/script
nano script.php

Find the call and execute from a command line

curl --verbose https://api-internal.script.com

Output:

* About to connect() to api-internal.script.com port 443
* Trying 54.183.xxx.xxx... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
[1] 418
[2] 419
[3] 420
[1] Done entityType=destination?searchDate=2014-08-31
[2]- Done partySize=4
[3]+ Done searchTime=12%3A00

It looks like the connection is being refused by the remote server. Curl the page directly which takes PHP out of the equation. This is the response you get when getting the URL directly from SSH.