首页 > 技术文章 > curl

qianmaoliugou 2020-06-19 16:11 原文

 

个人笔记

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

推荐阅读