post请求常见content-type类型

395 阅读1分钟

1、application/json

content-type的默认值。

a23dd278fa7bc6043c40685a55f11aa.png

2、application/x-www-form-urlencoded

数据按照 key1=val1&key2=val2 的方式进行编码,key 和 val 都会进行 URL 转码

image.png

3、multipart/form-data

一半用于文件上传

image.png

image.png