Simple but useful script for http status

So many times we have to check the status of url or address which we are penetrating today someone ask for this and i got an idea for doing this here is a simple script which will return with the http status code


Script :- 
url=$1curl -sL $url -w "%{http_code} %{url_effective}\n" "URL" -o /dev/null
where url is to url to chech.


For example

#script name localhost

200 ok 




-Kaustubh

Comments