Curl - techniq/wiki GitHub Wiki
curl -i localhost/api/foo
curl -v localhost/api/foo
Unix:
curl -X POST -d '"foo"' localhost/api/foo
Windows:
curl -X POST -d "\"foo\"" localhost/api/foo
Unix:
curl -X POST -H "Content-Type: application/json" -d '{"foo": "bar"}' localhost/api/foo
Windows:
curl -X POST -H "Content-Type: application/json" -d "{\"foo\": \"bar\"}" localhost/api/foo
curl -g 'http://localhost:8080/api/v1/events?where={"distance_kilometers":{">=":7.9,"<":8.1}}'
curl -G -v "http://localhost:30001/data" --data-urlencode "msg=hello world"
curl -s http://www.whatsmyip.org/http-compression-test/ -w '%{size_download}' -o /dev/null
curl localhost -H 'Authorization: Bearer <JWT>'
curl --ntlm -u : example.com