user3059347
user3059347

Reputation: 539

SSL Post Request to Appengine

I need to develop a web-based service on Google Appengine (Python 2.7) that involves the sending of sensitive data from a third-party website over to my site (preferably through SSL). Say that my url is https://example.appspot.com, and I want the third-party site http://example.com to send two values through a POST request, one is username and the other is password, to https://example.appspot.com/receiverhandler. This receiver handler is class ReceiverHandler(webapp2.RequestHandler). My question is basically: how can I send this POST data through an SSL connection? I'm not entirely familiar with the SSL protocol, so I have no idea where to begin.

Upvotes: 0

Views: 95

Answers (1)

GAEfan
GAEfan

Reputation: 11360

Using urlfetch, just send it to the SSL-secured url: https://example.appspot.com/receiverhandler

This gives great explanation of how to do it, using POST params (payload):

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

Upvotes: 1

Related Questions