Created
January 22, 2017 19:26
-
-
Save tisseurdetoile/070401dc5f6587019fab31a4fb7ba1f3 to your computer and use it in GitHub Desktop.
fetch file ending with the alphet letter with curl pretending to firefox 3 on windows xp
This file contains 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 | |
# fetch file ending with the alphet letter | |
# with curl pretending to firefox 3 on windows xp | |
# | |
for x in {a..z} | |
do | |
echo "http://www.website.com/letter_$x.pdf" | |
curl -silent -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3" --remote-name http://www.website.com/letter_$x.pdf | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment