Answers for "curl set application/json"

PHP
24

curl post json

curl -X POST -H "Content-Type: application/json" 
 -d '{"username":"abc","password":"abc"}' 
 https://api.example.com/v2/login
Posted by: Guest on July-03-2020
0

curl accept json

curl -H "Accept: application/json"
Posted by: Guest on October-06-2021

Browse Popular Code Answers by Language