curl - KeynesYouDigIt/Knowledge GitHub Wiki

Method

-X GET

Show response headers

-i

Request Headers

-H "Authorization: OAuth 232dsfdsd2"
-H "OtherHeader: Value"

Data

-d '{"keyName": "valueHere"}'
-d @file-name.json
-d "keyName=value"

Multipart / Files

-F "keyName=value"
-F "publicKey=@key_name.rsa;type=text/plain"

URL

url-here.com