Last active
August 29, 2015 14:05
-
-
Save BenjaminKobjolke/8b194a59185ad21eba27 to your computer and use it in GitHub Desktop.
my favourite cURL commands #commandline
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
create dummy images | |
curl -L "http://dummyimage.com/600x400/000/fff&text=DummyImage%20[01-10]" -o image_#1.png | |
get page headers | |
curl --head http://google.com | |
send parameters to page | |
curl.exe -L -G "http://yoururl.com" --data-urlencode "text=DESIGN6 daily backup started" | |
send formdata & files to page | |
curl -F file=@test.jpg -F text="BINGO BONGO" "https://yoururl.com" | |
download a file | |
curl -L -O http:/test.exe | |
download facebook profile images | |
curl -L "https://graph.facebook.com/[1-100000000]/picture?width=160&height=160" -o "facebook_user_#1.jpg" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment