Skip to content

Instantly share code, notes, and snippets.

@dzmitry-savitski
Last active March 19, 2019 11:02
Show Gist options
  • Save dzmitry-savitski/f0d876f90520b72efdc1363c6fac83be to your computer and use it in GitHub Desktop.
Save dzmitry-savitski/f0d876f90520b72efdc1363c6fac83be to your computer and use it in GitHub Desktop.
#!/bin/bash
for domain in $(cat $1);
do
# -L - follow redirect
# echo [http://$domain] - $(curl -w '%{size_download}' --output /dev/null -s http://$domain);
echo [https://$domain] - $(curl -w '%{size_download}' -L --insecure --max-time 2 --output /tmp/out/$domain.https.html -s https://$domain);
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment