Skip to content

Instantly share code, notes, and snippets.


eramdam/ Secret

Created Apr 5, 2014
What would you like to do?
A script to test then output the HTTP code of a lot of URLs with curl (using HEAD requests) (made for )
while read LINE; do
curl -o /dev/null --silent --head --write-out '%{http_code}' "$LINE"
echo " $LINE"
done < ./urls.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.