Answers for "how to check a url in linux command line"

0

how to check status code of a web server through terminal

curl -Is http://droptips.com | head -n 1
Posted by: Guest on June-10-2020
0

command to hit url in linux

There are lots of ways:

nc www.example.com 80: upside is you have full controll over what you send, downside is you are on your own. Restrict to HTTP 1.0 to minimize the things you need to type GET / HTTP/1.0 followed by an empty line is all you need.

curl http://www.example.com/: good for normal use and debugging. Has lots of options. Especially usefull: --verbose to see the HTTP request/response and --head to send a HEAD request (no body).

openssl s_client -connect www.example.com:443: Useful for debugging HTTPS servers.

wget: good for download and maybe more.

w3m, lynx, links: text-only browser.
Posted by: Guest on July-12-2021

Code answers related to "how to check a url in linux command line"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language