需求:1.登录账户 2.提交答题
分析:
我的请求:
# 答题
answerUrl = 'https://bazhong.xueanquan.com/JiaTing/ajax/FamilyEduCenter.EscapeSkill.SeeVideo,FamilyEduCenter.ashx?_method=TemplateIn2&_session=rw'
aHeaders = {
'Host': 'bazhong.xueanquan.com',
'Origin':'https://bazhong.xueanquan.com',
'X-Requested-With':'XMLHttpRequest',
# application/json; charset=utf-8
# application/x-www-form-urlencoded
# text/xml
'Content-Type':'application/x-www-form-urlencoded',
'Referer': 'https://bazhong.xueanquan.com/JiaTing/EscapeSkill/SeeVideo.aspx?gid=486&li=980',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36',
'Cookie':'xxxxxxxxx'
}