how to check status code of a web server through terminal
curl -Is http://droptips.com | head -n 1
how to check status code of a web server through terminal
curl -Is http://droptips.com | head -n 1
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us