Skip to content

Instantly share code, notes, and snippets.

@wdjunaidi
Created February 7, 2012 21:27
Show Gist options
  • Save wdjunaidi/1762114 to your computer and use it in GitHub Desktop.
Save wdjunaidi/1762114 to your computer and use it in GitHub Desktop.
curl - passing arrays and file as multipart/form-data
curl -vX POST <url> -F <arraykey>[0]=<value0> -F <arraykey>[1]=<value1> -F <arraykey>[2]=<value2> -F <key>=@<filename>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment