Skip to content

Instantly share code, notes, and snippets.

@fpinzn
Created February 20, 2013 16:56
Show Gist options
  • Save fpinzn/4997061 to your computer and use it in GitHub Desktop.
Save fpinzn/4997061 to your computer and use it in GitHub Desktop.
One liner to post a file to an API and open the answered html in a new tab.
curl -X POST -F "file=@test.csv" 10.0.1.3:3000/api/v1/users/1/data_sources > result.html && open result.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment