2018年3月6日 星期二

curl command

curl command
  1. Post Json data - 除 postman 之外的好選擇
  2. curl -H "Content-Type: application/json" \
    -X POST -d '{"username":"xyz","password":"xyz"}' http://localhost:3000/api/login
    
  3. Authorization: Basic
  4. curl -H "Content-Type: application/json" \
    -H "Authorization: Basic Token" \
    -X POST -d '{"username":"xyz","password":"xyz"}' http://localhost:3000/api/login
    
    

ref : stackoverflow

沒有留言:

張貼留言