TA的每日心情 | 无聊 2018-5-10 09:16 |
---|
签到天数: 172 天 连续签到: 2 天 [LV.7]测试师长
|
python接口测试请求头headers信息用什么样的才是标准的呢?求助
测试浏览器系统接口和app系统接口headers配置有什么区别呢?
headers={'Connection':'keep-alive',
'Referer':url,
'Accept-Language':'zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3',
'Accept-Encoding':'gzip, deflate',
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0',
'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
"Content-Type":"application/json",
'Host':'115.29.205.195'}
'''
headers={'Host':'115.29.205.195:9098',
'Content-Type':'application/json',
'Connection':'keep-alive',
'charset':'UTF-8',
'Connection':'keep-alive',
'Accept':'*/*',
'Accept-Language':'zh-cn',
'Content-Length':'39',
'Accept-Encoding':'gzip,deflate',
'User-Agent':'huoxiu/2.0.3 CFNetwork/808.0.2 Darwin/16.0.0'}
|
|