How do i redirect to a GET request from a POST request on GAE
Posted
by user259349
on Stack Overflow
See other posts from Stack Overflow
or by user259349
Published on 2010-04-29T14:41:57Z
Indexed on
2010/04/29
14:57 UTC
Read the original article
Hit count: 375
Hello everyone, i am writing an FBML app on facebook hosted in GAE. Facebook will talk to your hosted app only vai POST (im sure this is the cause, but please do correct me if i'm wrong). So im faced with the issue that inside of my POST method, i need to redirect to facebook OAuth authroize URL. But i can only send a GET request. How can i do that? At the moment i'm doing
class OauthHandler(webapp.RequestHandler):
def post(self):
# blablablab
request.redirect(oauth_uri)
Which is wrong since the oauth_uri is only responding to GET. Further more, OAuth will redirect back to my redirect handler through GET, but i cant! i can only do post. So i'm confused.
ideas?
Thanks in advance
© Stack Overflow or respective owner