ASP Request Object : TotalBytes Property
The TotalBytes property holds the total number of bytes sent by the client to the server in the body of the HTTP request. The TotalBytes property is read-only.
count = Request.TotalBytes
now holds the number of bytes sent in the request. This number can be used in conjunction with Request.BinaryRead
to obtain the actual byte contents of the request. In fact, using it with the BinaryRead method
is about the only use this property has, since ASP
has built in object
s to manipulate the contents of the request. In combination
with BinaryRead, however, this property can be used to do cool things like upload binary file
s, etc.) from a client to the server.
Back to the ASP Request Object
Back to ASP Objects
All code is my own (i swear)