CURL执行请求

curl -X POST --header 'Connection: keep-alive' --header 'Content-Type: application/json;charset=UTF-8' -d '{"name":"lily"}' 'http://localhost:8080/test'

--header指定头部设置

-d 指定body体

-X 指定请求方法,默认为GET

posted on 2020-04-24 17:26  哼着歌啦啦啦  阅读(339)  评论(0编辑  收藏  举报