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
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
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
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)"
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, "