Curl: (7) couldn't connect to host Curl: (7) couldn't connect to host curl curl

Curl: (7) couldn't connect to host


I was able to solve it by adding the below line to /etc/hosts

`server private ip` localhost localhost.localdomain