Last Updated: February 25, 2016
·
789
· chris089

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 
}