PROPERTY:  Request.TotalBytes

Request.TotalBytes

The TotalBytes property is a read-only value that specifies the total number of bytes sent by the client to the server in the body of the HTTP request.

The value returned by TotalBytes can be used as the argument of Request.BinaryRead(Count).

Code:
-------------------File1.html-----------------
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM ACTION="File2.asp" METHOD="POST">
Name:<INPUT TYPE="Text" NAME="name" MAXLENGTH="30"><BR>
Age: <INPUT TYPE="Text" NAME="age" MAXLENGTH="10"><BR>
Sex: <INPUT TYPE="Text" NAME="sex" MAXLENGTH="10"><BR>
<INPUT TYPE="Submit" NAME="submit" VALUE="submit"><BR>
</FORM>
</BODY>
</HTML>
 
-------------------File2.asp------------------
<%
Dim ByteCount
ByteCount = Request.TotalBytes
Response.Write("ByteCount = " & ByteCount & " bytes")
%>


Output
It is dependent on the data entered into the form.
For example, if Name=Bill, Age=56, and Sex=male.

ByteCount = 39 bytes
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information