"josh" <xd********@gmail.comwrote in message
news:bc**********************************@1g2000pr e.googlegroups.com...
On 4 Set, 15:18, "Anthony Jones" <AnthonyWJo...@yadayadayada.com>
wrote:
"josh" <xdevel1...@gmail.comwrote in message
news:53**********************************@n38g2000 prl.googlegroups.com...
Hi,
can I know the request and the response page bytes (its length)?
Request.InputStream.Length will give you the size of entity posted.
However Response.OutputStream.Length is not supported. Untill the request
is complete there is no way to know how big it will finally be.
What do you need this info for?
--
Anthony Jones - MVP ASP/ASP.NET
I need this info bacause I must write a profiling application.
So I must know how time passes between one request and its response...
and I have to knowalso other info as that.
If I put Request.InputStream.Length in Page_Load
I have 0
Why?
>>>>>>>>>>>>>>>>>
For profiling why not use IIS logging?
Indeed there must be a zillion existing (and probably some free) profiling
tools.
The InputStream represents the entity body posted (and there isn't one for a
GET request) not the total size of the headers that have arrived.
--
Anthony Jones - MVP ASP/ASP.NET