我尝试使用requests.get发送标头:
url = 'http://qp-nachorat2000:8018/icws/' + sessionID + '/status/user-statuses/Administrator'
header = {'ININ-ICWS-CSRF-Token': csrfToken}
pcRequest = requests.get(url, headers=header)
这导致400响应:
{u'errorCode': 2,
u'message': u'A session CSRF token is needed for this request, but none was provided.',
u'errorId': u'error.request.accessDenied.csrfToken.missing'}
同样的GET在Postman中完美无缺:
我错过了什么?任何帮助将不胜感激。