get请求
curl: curl url
#示例
curl www.baidu.com
post请求
curl
-H header
-X post 或get
-d json数据
示例:
curl -H "Content-type: application/json" -X POST -d '{"usernameToken":{"username":"admin","password":"admin123"}}' url
curl: curl url
#示例
curl www.baidu.com
curl
-H header
-X post 或get
-d json数据
示例:
curl -H "Content-type: application/json" -X POST -d '{"usernameToken":{"username":"admin","password":"admin123"}}' url