app.yaml:
<pre>
application: tagplusplus
version: 1
runtime: python
api_version: 1
handlers:
- url: .*
script: main.py
</pre>
main.py:
<pre>
class MainPage(webapp.RequestHandler):
def get(self):
url = self.request.url
q = self.request.get('q')
s = ('Base: %s, %s' % (q,url))
logging.info(s)
self.response.out.write(s)
application = webapp.WSGIApplication([
('/.*', MainPage)
], debug=True)
def main():
wsgiref.handlers.CGIHandler().run(application)
if __name__ == '__main__':
main()
</pre>
"http://tagplusplus.appspot.com/search?q=a|b|c" OK
"http://gae.tagpp.com/search?q=a|b|c" Error 400
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---