Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting the content length from
Application_BeginRequest
but cant able to get content length from
Application_EndRequest

Any help would be appreciated.

What I have tried:

Application_BeginRequest
Public Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
        Case8Logger.Info(String.Format("Request Time: {0}, Request Size: {1}", Date.Now, Request.TotalBytes))
    End Sub


Application_EndRequest

Public Sub Application_EndRequest(ByVal sender As Object, ByVal e As EventArgs)
        Case8Logger.Info(String.Format("Response Content Length: {0}", Response.Headers))
    End Sub
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900