需要在Python中发送一个HTTP请求,该请求将通过Google帐户进行身份验证

我有一个应用程序,相当于在用户手机上运行的Python脚本,以及在用户浏览器中运行的JS客户端。 Python脚本将消息作为HTTP请求发送到App Engine。 然后,服务器将消息推送到JS客户端。

问题是身份验证:服务器可以轻松地使用Google帐户对来自JS客户端的任何内容进行身份验证,这是由特定用户发送的,但我不知道如何让Python脚本发出也会进行身份验证的HTTP请求。

有任何想法吗?

采纳答案:

根据其主页, httplib2支持Google帐户身份验证,也许这对您有帮助吗?

author: steven

参考更多解答: Need to send a HTTP request in Python that'll authenticate with Google Accounts ,转载请保留出处需要在Python中发送一个HTTP请求,该请求将通过Google帐户进行身份验证及作者信息

Statement: We respect knowledge and authors. Since the content comes from the Internet and is intended for scientific research, any reprinters should retain the author's signature and origin. If you are the author of the content and feel in dispute, please contact email: 1076545519@qq.com. We will find out the situation and deal with it in time. We sincerely thank the author for his hard work.


更多:python