ContentType

1.application/x-www-form-urlencoded  浏览器的原生 form 表单

2.multipart/form-data  我们使用表单上传文件时,必须让 form 的 enctyped 等于这个值

3.application/json  消息主体是序列化后的 JSON 字符串

4.text/xml  XML-RPC(XML Remote Procedure Call)

 

详细原文见 http://blog.csdn.net/jam_yin/article/details/51837204

posted @ 2018-01-22 10:29  Forekoy  阅读(84)  评论(0编辑  收藏  举报