Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 619 Bytes

post_json_data.md

File metadata and controls

16 lines (11 loc) · 619 Bytes

Post JSON Data with cURL

Posting JSON using cURL is a common task when working with APIs. This TIL will show you how to post JSON data using cURL.

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{ "name": "xenomorpheus", "job": "supremeleader" }' \
  https://reqres.in/api/users

I can recommend reqres.in for playing around and learning purposes.

Resources and References