我在早期阶段写了一个机器人为必发,并已获得了登录,获得价格等基础知识,但我担心的是我正在登录的安全性。在API-NG tutorial (在Certificate Login Interface Details部分)中,他们提到:
Please note: The username and password values should be encoded when
making the login request.但这到底是什么意思,是如何编码的?
目前,我只是按照教程Python示例进行操作:
payload = 'username=myusername&password=password'
headers = {'X-Application': 'SomeKey', 'Content-Type': 'application/x-www-form-urlencoded'}
resp = requests.post('https://identitysso.betfair.com/api/certlogin', data=payload,
cert=('client-2048.crt', 'client-2048.key'), headers=headers)但是,这是否意味着我的用户和密码被不安全地发送?
发布于 2014-05-10 05:14:13
一切都很好。"Encoded“是指有效负载变量的内容格式。您可以使用urllib将dict解析为格式正确的字符串。正在使用HTTPS。如果您将client-2046的密钥文件保密在您的计算机中,这是安全的
https://stackoverflow.com/questions/21666077
复制相似问题