Answers for "curl post form"

2

curl post

# dont forget the content type, else it will throw an error

curl -X POST -H "Content-Type: application/json" \
 -d '{"username":"abc","password":"abc"}' \
 https://api.example.com/v2/login
Posted by: Guest on August-12-2021
-1

curl post

curl --data '' https://example.com/resource.cgi

curl -X POST https://example.com/resource.cgi

curl --request POST https://example.com/resource.cgi
Posted by: Guest on August-15-2020
0

curl pass data in request

curl -d "param1=value1¶m2=value2" -X POST http://localhost:3000/data
Posted by: Guest on March-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 "Shell/Bash"

Browse Popular Code Answers by Language