Hi,
I'm using my app write some response to the request.
But the content-length is -1.
It occurs when the content-type of response is "text/html" or "text/
plain".
When the content-type is "image/png",everything is OK.
My app is like this:
---------------------------------------------------------------------------------------------------------
class default(webapp.RequestHandler):

        def get(self):

                self.response.headers['Content-Type'] = "text/html"

                self.response.out.write("something to show the browser")



def main():

        wsgiref.handlers.CGIHandler().run(webapp.WSGIApplication([      ('/',
default),
                                                                                
                                        ]))



if __name__ == '__main__':

        main()
------------------------------------------------------------------------------------------------------------
I can get the "something to show the browser" in the client
browser,while if I use something like
URLConnection in Java the conn.getContentLength() would return -1.
And in wireshark,I find there is a "Content-encoding:gzip" filed.Does
it do anything with my problem?

Any opinion would be appreciated.

Best regards.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to