Resources:
https://curl.haxx.se/docs/httpscripting.html
Notes:
curl -X <proto> <url>
curl -d "@data.txt" -X POST http://localhost:3000/data
curl -d "@payload.json" -X PUT http://localhost:19200/ -H "Content-Type: application/json"
From: https://gist.github.com/subfuzion/08c5d85437d5d4f00e58
#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see c).c, --cookie-jar <file name> File to save response cookies to.d, --data <data> Send specified data in POST request. Details provided below.f, --fail Fail silently (don't output HTML error form if returned).F, --form <name=content> Submit form data.H, --header <header> Headers to supply with request.i, --include Include HTTP headers in the output.I, --head Fetch headers only.k, --insecure Allow insecure connections to succeed.L, --location Follow redirects.o, --output <file> Write output to . Can use -create-dirs in conjunction with this to create any directories specified in the o path.