2024-06-17 14:53:33 发布
网友
使用cURL,我可以做--location-trusted以允许将name+密码发送到站点可能重定向到的所有主机(http://curl.haxx.se/docs/manpage.html#--location-trusted)。在
--location-trusted
我可以用Python对请求库执行类似的操作吗?在
如果你必须使用libcurl(这是合法的!),您需要传递^{}选项。在
虽然doc页面本身没有提到它,但这是libcurl命令行 location-trusted标志的等价物。更多信息请参见the CVE page,他们介绍了 location-trusted。在
location-trusted
requests将自动处理重定向: (http://docs.python-requests.org/en/latest/user/quickstart/#redirection-and-history) 所以,这应该是一个很好的开始(如果你还没有经历过): (http://docs.python-requests.org/en/latest/user/authentication/)
requests
如果你必须使用libcurl(这是合法的!),您需要传递^{} 选项。在
虽然doc页面本身没有提到它,但这是libcurl命令行
location-trusted
标志的等价物。更多信息请参见the CVE page,他们介绍了location-trusted
。在requests
将自动处理重定向: (http://docs.python-requests.org/en/latest/user/quickstart/#redirection-and-history)所以,这应该是一个很好的开始(如果你还没有经历过): (http://docs.python-requests.org/en/latest/user/authentication/)
相关问题 更多 >
编程相关推荐