Skip to content

Instantly share code, notes, and snippets.

@Shilo
Forked from BenjaminKobjolke/gist:8b194a59185ad21eba27
Created September 2, 2014 10:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shilo/e470c28b24127f78795f to your computer and use it in GitHub Desktop.
Save Shilo/e470c28b24127f78795f to your computer and use it in GitHub Desktop.
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