什么是siteminder隐藏变量?数据是如何传递给它们的?

2024-04-29 05:18:32 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用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文件中定义的,并且是动态更新的。这些是如何更新的,它们的用途是什么?你知道吗


Tags: importcomfalsehttp页面paramsrequestsverify