Http Error 405 Google App Engine
here for a quick overview of the site Help Center Detailed answers to any questions google app engine 405 method not allowed you might have Meta Discuss the workings and policies of this 405 method not allowed the method post is not allowed for this resource. site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers google app engine the method get is not allowed for this resource or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Getiing this error in google app engine 405 HTTP method GET is not supported by this URL up vote 0 down vote favorite My web.xml. Please check the url-pattern here. is it correct or not
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a http://stackoverflow.com/questions/20535889/getiing-this-error-in-google-app-engine-405-http-method-get-is-not-supported-by minute: Sign up Error 405 Method not allowed up vote 0 down vote favorite 1 I am desgining a web app using google app engine and python and While extracting the form data ie. parameter values using the get request the following error occurs during the runtime: 405 Method Not Allowed The method GET is not allowed for this resource. Following http://stackoverflow.com/questions/21536590/error-405-method-not-allowed is the code: is the get mothos creating problem or is there any other solution to get parameter values. class PostBody(webapp2.RequestHandler): def post(self): stringContent=cgi.escape(self.request.get('txtLocation')) stringurl='http://maps.googleapis.com/maps/api/place/textsearch/json?query='|stringContent|'&sensor=false&key=mykey' result=json.load(urllib.urlopen(stringurl)) self.response.write(result) Thanks... google-app-engine python-2.7 share|improve this question edited Feb 3 '14 at 20:20 asked Feb 3 '14 at 20:01 Mitul Karnik 40110 Your URL looks malformed. You have an http:// followed by an https and a space before method and your querystring. Is this the correct URL you are trying to get? –Mendhak Feb 3 '14 at 20:07 ohhh extremely sorry it is typing mistake but the url in the program is correct , there is only one http:// and the problem still prevails.. –Mitul Karnik Feb 3 '14 at 20:11 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted Try replacing def post(self) by def get(self) share|improve this answer answered Feb 3 '14 at 20:18 Vincent 399521 Thankss .. thankks a lot it worked !!!! –Mitul Karnik Feb 3 '14 at 20:24 No problem. I remembered having this issue at some point
here for a quick overview of the site Help Center Detailed answers http://stackoverflow.com/questions/35967513/405-method-not-allowed-get-request-in-google-app-engine-language-python to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack google app Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 405 Method not Allowed- Get request in Google App Engine, language Python up vote 0 down vote favorite I know there are a ton google app engine of these questions and I have spent hours going through them and trying to figure it out but I am not able to find the problem. My main.py looks like this: import webapp2 from google.appengine.api import oauth app = webapp2.WSGIApplication([ ('/org', 'org.Organization'), ], debug=True) app.router.add(webapp2.Route(r'/org/