Skip to content

Instantly share code, notes, and snippets.

@evitolins
Last active December 24, 2015 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evitolins/6769745 to your computer and use it in GitHub Desktop.
Save evitolins/6769745 to your computer and use it in GitHub Desktop.
Upload a file via Curl, and retrieve returned HTML.
curl -F "upload_filename=@/full/path/to/local/file.txt" -F "myotherqueryvar=queryvalue" -L http://198.101.215.168/upload.php > html_out.htm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment