Google Appengine Proxy Post method error
Kev Dwyer
kevin.p.dwyer at gmail.com
Tue Sep 23 02:22:33 EDT 2014
alextrapp at googlemail.com wrote:
> So I got the Labnol Google Appengine proxy but it can't handle the Post
> method aka error 405.
>
> I need help adding this method to the script:
>
> mirror.py = http://pastebin.com/2zRsdi3U
>
> transform_content.py = http://pastebin.com/Fw7FCncA
>
> main.html = http://pastebin.com/HTBH3y5T
>
> All other files are just small files for appengine that don't carry
> sufficient code for this. Hope you guys can help.
>
> Thanks in advance :)
Hello,
Very broadly speaking, you need to add a post method to the MirrorHandler
class, and in that method:
- mung the request in a similar fashion to the get method
- avoid caching the request (POST requests are not idempotent)
- forward the altered request to the destination server
- return the response to the original client
The labnol google-proxy githubpage lists a twitter account for support
contact - http://twitter.com/labnol - so you could try asking there for more
help. Also check the docs for webapp2 and and Google App Engine
(http://developers.google.com/appengine).
Have fun,
Kev
More information about the Python-list
mailing list