Skip to content

Instantly share code, notes, and snippets.

@edorgeville
Forked from refactornator/MyData.csv
Last active August 29, 2015 14:28
Show Gist options
  • Save edorgeville/d3c1320af46062944353 to your computer and use it in GitHub Desktop.
Save edorgeville/d3c1320af46062944353 to your computer and use it in GitHub Desktop.
Upload a CSV file in the body of a HTTP POST request.
product price quantity
widget1 19.95 10
widget2 24.00 20
widget1 12.00 40
curl -v --user username:password 'https://localhost:8443/zoomdata-web/service/upload?source=MySource' \
-X POST \
-H 'Content-Type: text/csv' \
-d @MyData.csv \
--insecure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment