[google-appengine] Error 400: app engine + custom domain + /search?q=a|b|c

2009-05-04 Thread Tag++

Hi,all

My app: tagplusplus.appspot.com have bound to domain: gae.tagpp.com

Access URL  Status
http://tagplusplus.appspot.com/ OK
http://tagplusplus.appspot.com/search?q=abc OK
http://tagplusplus.appspot.com/search?q=a+b+c   OK
http://tagplusplus.appspot.com/search?q=a|b|c   OK

http://gae.tagpp.com/   OK
http://gae.tagpp.com/search?q=abc   OK
http://gae.tagpp.com/search?q=a+b+c OK
http://gae.tagpp.com/search?q=a|b|c Bad Request Error 400

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

I found that the last one request http://gae.tagpp.com/search?q=a|b|c(with
'|') can not reach to App engine,

there are not any Error/Exception messages produced on App engine end
while calling this url, it seems this

request have been denied in the front of App engine.

Client -- URL Checker/Reuest Dispatcher (ghs.google.com) -- Apps,
real request handler (gae.tagpp.com)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Error 400: app engine + custom domain + /search?q=a|b|c

2009-05-04 Thread Tag++

Hi,all

Please copy this three url to the address box and press enter, don't
click to open it from here.

http://www.google.com/search?q=%22bad+request%22|%22error+400%22
http://admins.googleapps.com/system/app/pages/search?q=%22bad+request%22
http://admins.googleapps.com/system/app/pages/search?q=%22bad+request%22|%22error+400%22

You will get different kink of response, the last one is a 'Google
Sites' with the DNS 'park in' on ghs.google.com
To here you should awaken what's the problem: when you call a url with
'|' char to those sites, you will get 'Error 400' response!

admins.googleapps.com   CNAME   ghs.google.com
ghs.google.com  CNAME   ghs.l.google.com
ghs.l.google.comA   72.14.235.121

So I think my this question is belong to ghs.google.com, not of App
Engine.
I have post a same question to 'Apps help forum':
http://www.google.com/support/forum/p/Google+Apps/thread?tid=696797f63b0a0ea5hl=en

The original post:

My app: tagplusplus.appspot.com have bound to domain: gae.tagpp.com

Access URL  Status
http://tagplusplus.appspot.com/ OK
http://tagplusplus.appspot.com/search?q=abc OK
http://tagplusplus.appspot.com/search?q=a+b+c   OK
http://tagplusplus.appspot.com/search?q=a|b|c   OK

http://gae.tagpp.com/   OK
http://gae.tagpp.com/search?q=abc   OK
http://gae.tagpp.com/search?q=a+b+c OK
http://gae.tagpp.com/search?q=a|b|c Bad Request Error 400

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

I found that the last one request http://gae.tagpp.com/search?q=a|b|c(with
'|') can not reach to App engine,

there are not any Error/Exception messages produced on App engine end
while calling this url, it seems this

request have been denied in the front of App engine.

Client -- URL Checker/Request Dispatcher (ghs.google.com) -- Apps,
real request handler (gae.tagpp.com)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---