Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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 www.educative.io #
 
PREVIOUS NEXT
Tagged: #curl #post
ADD COMMENT
Topic
Name
4+5 =