curl

 

个人笔记

curl -H "Content-Type:application/x-www-form-urlencoded" -d "name=root&password=1234" http://xxxxx/login -v


curl -H "Cookie:okay_session=abcdefafdadfas" -X GET http://xxxxx/director/show\?id=80&type=4


多个请求头,-H追加

curl -X POST http://xxxxxxxx/teacher/findTeacherListByClass -H "Content-Type: application/json" -H "requestid: 0211111111" -d "{\"a\":1,\"b\":null}"

 

https://www.jianshu.com/p/7965c56c5a2e

posted @ 2020-06-19 16:11  牵猫溜狗  阅读(127)  评论(0编辑  收藏  举报