Skip to content

Instantly share code, notes, and snippets.

@davidcrx
Created May 3, 2018 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidcrx/e172e8d163e0095cfb130d3b2a91e9b6 to your computer and use it in GitHub Desktop.
Save davidcrx/e172e8d163e0095cfb130d3b2a91e9b6 to your computer and use it in GitHub Desktop.
#!/bin/bash
while read LINE; do
curl -o /dev/null --silent --progress-bar --head --write-out '%{http_code} %{time_starttransfer} %{url_effective}\n' "$LINE"
done < websites.lst
echo -e "\n"
echo -e "Code 200: Okei"
echo -e "Code 302: Okei (http)"
echo -e "Code 404: Not found"
echo -e "Code 301: Move permanently"
echo -e "Para mas información de códigos de error, porfavor consulte la siguiente URL: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment