gpt4 book ai didi

google-app-engine - SSL 向 Appengine 发送请求

转载 作者:太空宇宙 更新时间:2023-11-03 14:13:42 26 4
gpt4 key购买 nike

我需要在 Google Appengine (Python 2.7) 上开发一个基于网络的服务,该服务涉及将敏感数据从第三方网站发送到我的网站(最好通过 SSL)。说我的网址是https://example.appspot.com , 我想要第三方网站 http://example.com通过POST请求发送两个值,一个是username,另一个是password,到https://example.appspot.com/receiverhandler .此接收器处理程序是 class ReceiverHandler(webapp2.RequestHandler)。我的问题基本上是:如何通过 SSL 连接发送此 POST 数据?我对 SSL 协议(protocol)不是很熟悉,所以我不知道从哪里开始。

最佳答案

使用 urlfetch,只需将其发送到受 SSL 保护的 url:https://example.appspot.com/receiverhandler

这很好地解释了如何使用 POST 参数(有效负载)来做到这一点:

https://developers.google.com/appengine/docs/python/urlfetch/

关于google-app-engine - SSL 向 Appengine 发送请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25316810/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com