Created
January 12, 2012 14:44
-
-
Save antonbabenko/1600911 to your computer and use it in GitHub Desktop.
Curl list of urls and save http response code & times (useful for cache warmup)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read LINE; do | |
curl -o /dev/null --silent --progress-bar --head --write-out '%{http_code} %{time_starttransfer} %{url_effective}\n' "$LINE" >> urls_result.txt | |
done < urls.txt |
Perfect, exactly what I was looking for. Thanks!
Thanks! 👍
An idea... We can set interval (sleep) after each request to limit the load if running from the server side.
Well done, thanks. This help me a lot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I knew someone would fix this. I wish the -o /dev/null worked with -K url = "site"
Nice work!