When browser connects to a website, it includes a User-Agent string in its HTTP header. Sometimes you may need to change User-Agent with curl to access some URL as a different browser. This is a small note on how to set a custom User-Agent with curl from the command line in Linux.
You can easily test a a website availability from the Linux command line and get the status codes from the web-server using commands like TELNET or CURL. Check a website availability with CURL Execute the following command to check whether a web site is up, and what status message the web server is showing: $ […]
Use one of the following commands to check your public IP address from the Linux command line. Get the Public IP address from the Linux Command Line 0. Easy to Remember Services Get your external IP address using the curl command: $ curl ifconfig.me $ curl ip.appspot.com $ curl icanhazip.com Get your external IP address […]