The TotalBytes property specifies the total number of bytes sent in the body of the HTTP request.
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).
-------------------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")
%>
ByteCount = 39 bytes
The output is dependent on the data entered into the form.
For example, if Name=Bill, Age=56, and Sex=male.