#http
3 one-liners with this tag.
All one-liners tagged http
Check HTTP status codes for a list of URLs
$while read -r u; do printf '%s %s\n' "$(curl -o /dev/null -sS -w '%{http_code}' "$u")" "$u"; done < urls.txt
Show the HTTP response headers of a website
$curl -sSI https://example.com/
Show the redirect chain of a URL with status codes
$curl -sIL "http://example.com/" | grep -iE "^(HTTP/|location:)"