Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #curl #post
ADD COMMENT
Topic
Name
8+1 =