Skip to content

Instantly share code, notes, and snippets.

@BasementCat
Created January 20, 2015 16:08
Show Gist options
  • Save BasementCat/8883c5278e87387289e0 to your computer and use it in GitHub Desktop.
Save BasementCat/8883c5278e87387289e0 to your computer and use it in GitHub Desktop.
Check HTTP response code for multiple URLs
for URL in url1 url2 url3;
do
curl -sLI -w "%{http_code} %{url_effective}\\n" "$URL" -o /dev/null |tee -a output.txt;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment