Skip to content

Instantly share code, notes, and snippets.

@abeger
Last active February 16, 2023 20:18
Show Gist options
  • Save abeger/b191df15801997d9bdc584a61d5cae78 to your computer and use it in GitHub Desktop.
Save abeger/b191df15801997d9bdc584a61d5cae78 to your computer and use it in GitHub Desktop.
Just get the HTTP code for a given URL with curl
curl -I -s -o/dev/null -w"%{url_effective} %{http_code}\n" -m 5 URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment