Content-Type类型总结(安全)
目录
content-type
1. application/x-www-form-urlencoded
2. multipart/form-data
3.application/json
4.text/plain
5. text/xml
6. application/xml
7. 对于axios请求,不同的请求方式content-type也不同
8. application/octet-stream
9. image/png、image/jpeg、image/gif
10. text/html
11. application/pdf
12. multipart/byteranges
13. 其他常见类型:
注意事项
content-type
- content-type是http请求的响应头和请求头的字段。当作为响应头时,告诉客户端实际返回的内容的内容类型。作为请求头时,客户端告诉服务器实际发送的数据类型。
- 前端开发过程中,需要跟后端工程师对接接口的数据格式,不同的数据类型对于服务器来说有不同的处理方式,因此我们需要关注不同的cont