curl

Install

sudo apt install curl

sudo yum install curl

External IP

Note: A preferred way of retrieving your external IP address is to use dig.

dig

curl checkip.amazonaws.com

Note: There are several alternate sites. I have used Amazon AWS as my example as retrieving your IP via curl is not considered 100% safe (i.e. the site could do more than you expect). AWS feels like it is probably one of the safer options. Other sites include: ifconfig.me, icanhazip.com, ipecho.net/plain, ifconfig.co etc.

Check URL

curl https://myserver:3872/emd/main/

If your SSL protected site doesn't have a valid certificate, you can turn off verification...

curl -k https://myserver:3872/emd/main/

Check Response Time

To measure how quickly a http request completes...

curl -w "%{time_total}\n" -l -s https://myserver:3872/emd/main/

Bibliography