关于请求头Content-type的取值问题

主要是设置数据格式:

 

发送json类型的数据:

       "Content-type","application/json;charset=utf-8"  

 发送表单类型的数据:

        "Content-type","application/x-www-form-urlencoded;charset=utf-8"

 发送纯文本:

        "Content-type","text/plain; charset=utf-8"

 发送html文本:

        "Content-type","text/html; charset=utf-8"


猜你喜欢

转载自blog.csdn.net/yitian_66/article/details/79814155