One more clarification: in my get or post request, there is no file upload involved. I just want the total number of bytes transferred in a GET or a form-based POST request, and this is done by our custom client application (and not the browser).
Thanks, Arun On Jan 28, 4:31 am, "Ikai L (Google)" <[email protected]> wrote: > Are there places where this isn't reliably set? In my servlet I am calling: > > int contentLength = request.getContentLength(); > > This works with the following form: > > <form action="/content_length" method="POST" enctype="multipart/form-data"> > <input type="file" name="somefile" /> > <input type="text" name="sometext" /> > <input type="submit" /> > </form> > > > > On Mon, Jan 25, 2010 at 3:46 AM, armanuj <[email protected]> wrote: > > Hello, > > > How can one get the byte size of a http request, esp. in the context > > of a Java servlet being used in the Google app. engine? Is there a way > > to do this where the 'Content-Length' is not set (or not reliably set) > > in the get/post headers? > > > Appreciate your help in this. > > > Thanks, > > Arun > > > -- > > 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 > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-appengine-java%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. > > -- > Ikai Lan > Developer Programs Engineer, Google App > Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- 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 [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-java?hl=en.
