我正在尝试使用Python访问受Siteminder保护的页面。下面是我要做的:
import requests
r = requests.session()
postUrl = "http://example.gfm.com:1212/abc.htm"
params = { 'user': 'faisal',
'password': 'faisal',
'target': '-SM-http%3a%2f%asdasdasdsad%2efmr%2ecom%3a8081%asdasdasdsad%asdsad%2ehtm',
'SMENC': 'ISO-8859-1',
'SMLOCALE': 'US-EN',
'smauthreason': '0',
'smquerydata': '',
'postpreservationdata': ''}
out = r.post(postUrl, data=params, verify=False)
getUrl = "http://status.gfm.com:1212/load.htm"
output = r.get(getUrl, verify=False)
我不知道隐藏变量“smquerydata”和“postpervationdata”是什么。我读到这些变量是在FCC文件中定义的,并且是动态更新的。这些是如何更新的,它们的用途是什么?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐