Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 319 Bytes

curl.md

File metadata and controls

19 lines (13 loc) · 319 Bytes

curl - for url requests

Basic auth

base64 auth:

echo -n <user>:<password> | base64
curl -H "Authorization: Basic dGVzdDpwYXNz" http://...

Curl post

curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X POST http://..