美文网首页
curl工具

curl工具

作者: hemingkung | 来源:发表于2019-11-18 00:02 被阅读0次
#!/usr/bin/env bash

curl -X POST -d '{"userName": "nick", "deposit": 10}' -H 'Content-Type: application/json' http://localhost:8080/api/customer

curl -X POST -d '{"userName": "nick error1", "deposit": 10}' -H 'Content-Type: application/json' http://localhost:8080/api/customer

curl -X POST -d '{"userName": "nick error2", "deposit": 10}' -H 'Content-Type: application/json' http://localhost:8080/api/customer


curl -X POST  -H 'Content-Type: application/json' http://localhost:8080/api/customer/msg?msg=new_customer


curl -X POST  -H 'Content-Type: application/json' http://localhost:8080/api/customer/msg?msg=new_customer_error1


curl -X POST  -H 'Content-Type: application/json' http://localhost:8080/api/customer/msg?msg=new_customer_error2





curl http://localhost:8080/api/customer/msg

相关文章

网友评论

      本文标题:curl工具

      本文链接:https://www.haomeiwen.com/subject/zdamictx.html