How to POST a JSON data using cURL | FrontBackend
https://frontbackend.com/linux/how-to-post-a-json-data-using-curl
WEBMay 19, 2022 · curl --header "Content-Type: application/json" \ --request POST \ --data "{\"firstName\":\"John\",\"lastName\":\"Doe\"}" \ http://localhost:8080/api/customer 3. POST JSON data from a file using curl. In case you want to POST a JSON from a file, you will need to use the @ parameter with the name of that file. Let's check the example command:
DA: 83 PA: 12 MOZ Rank: 25