Dear community, I've searched on Google and on this forum for an answer to my question, but nothing turned up, so here goes:
I am trying to set the Content-Length header in my response from within the servlet, like this: response.setContentLength(someString.getBytes().length); The request is a POST request. It works on the test-server started from within Eclipse (and tested with curl), it doesn't work on the GAE production server -- the header field "Content-Length" simply gets discarded. These are the headers from the response on GAE production: HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Date: Thu, 14 Oct 2010 13:24:48 GMT Server: Google Frontend Cache-Control: private, x-gzip-ok="" Transfer-Encoding: chunked Does it have something to do with the compression and/or the chunked encoding? Is it still possible to set the content-length somehow? If not, why does GAE supress this header? Thank you very much in advance! Regards, Markus -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.