Skip to content

Instantly share code, notes, and snippets.

@maietta
Forked from antonbabenko/curl_all.sh
Created July 29, 2016 02:38
Show Gist options
  • Save maietta/19ee5c17f77c00d98c9203d0d9a6c2f2 to your computer and use it in GitHub Desktop.
Save maietta/19ee5c17f77c00d98c9203d0d9a6c2f2 to your computer and use it in GitHub Desktop.
Curl list of urls and save http response code & times (useful for cache warmup)
#!/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 < fiddler.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment