首页 > 技术文章 > curl post 请求 curl参数为List

faberbeta 2021-03-17 11:24 原文

curl 请求post list数据

curl -H "Content-Type: application/json" -X POST -d '[{},{}]' http://127.0.0.1:8080/user/list

curl 请求post json数据

curl -XPUT -H 'Content-type':'application/json' -d {"password":"pass1234"} http://localhost:49200/_xpack/security/user/elastic/_password

推荐阅读