Re: [appengine-java] Re: Getting the size of a http request?

2010-02-16 Thread Ikai L (Google)
This data may come from a system outside App Engine before being sent to the request logs. At any rate, it's not available in an API yet, and would likely only be in aggregated form or seriously delayed. At any rate, you may wish to create a feature request and star it: http://code.google.com/p/g

[appengine-java] Re: Getting the size of a http request?

2010-02-14 Thread armanuj
Ok, Thanks, Ikai. I will try this (subject to latency considerations), and let you know. I am assuming GAE tracks the bytes flowing on the wire and log it - could there be access to such data from the logs for each request? If so, how to enable such logging and how to access such data from the log

Re: [appengine-java] Re: Getting the size of a http request?

2010-02-05 Thread Ikai L (Google)
It's not going to be pretty, but you can manually get the size using either getInputStream() or getReader() and just iterating until you get to the end, incrementing your count by your buffer size each time, then counting the final result: http://java.sun.com/products/servlet/2.3/javadoc/javax/ser

[appengine-java] Re: Getting the size of a http request?

2010-02-05 Thread armanuj
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)"

[appengine-java] Re: Getting the size of a http request?

2010-02-05 Thread armanuj
Thanks, Ikai. For this to work, it seems like content-length should be set in the http headers of the request. If this is not set by the posting client, the question is whether there is a mechanism of detecting the number of bytes transferred (including header and URL bytes). On Jan 28, 4:31 am, "