主要是设置数据格式:
发送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"