using curl to get HTTP status and final redirection target without the noise
function http_status() {
curl -sL -w "%{http_code} %{url_effective}\\n" -o /dev/null $1
}
Written by Christoph Neuroth
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Http
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#