1.Request Payload结构

格式:{"username":"abc","password":"123456"}
Content-Type: application/json;charset=UTF-8

2.Form Data结构

格式"username=abc&password=123456"
Content-Type: application/x-www-form-urlencoded

3.总结

Request Headers部分的Content-Type会根据提交的参数格式自动匹配,
Content-Type可以手动设置,但是并不会改变提交的内容本身

作者 铁血 汉子 2021年7月2日
2024/03/29/11:20:00am 2021/7/2/1:35:18
0 726