Answers for "curl a post request with body"

37

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 post form

curl -X POST -F 'username=davidwalsh' -F 'password=something' http://domain.tld/post-to-me.php
Posted by: Guest on September-24-2021

Code answers related to "curl a post request with body"

Code answers related to "Javascript"

Browse Popular Code Answers by Language