
TotalBytes | 335
HttpRequest
Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
the URL http://search.support.microsoft.com/kb/c.asp, the raw URL is /kb/c.asp.
The raw URL includes the query string, if one is present.
Parameter
stringvar
A string variable to receive the raw URL.
Example
The example writes the RawUrl property to the browser:
Sub Page_Load( )
Dim stringvar As String
stringvar = Request.RawUrl
Message.Text = "The raw URL is: " & stringvar
End Sub
RequestType
stringvar = Request.RequestType
The RequestType property returns a String containing the request type (i.e., GET
or POST) of the current request.
Parameter
stringvar
A string variable to receive the request type.
Example
The example writes the RequestType property to the browser:
Sub Page_Load( )
Dim stringvar As String
stringvar = Request.RequestType
Message.Text = "The request type is: " & stringvar
End Sub
Notes
This property is listed as read/write; however, there really aren’t any situations
where it would be useful to change its value. From the read standpoint, this prop-
erty returns the same information as the read-only HttpMethod property listed
earlier in this chapter. If you attempt to change its value, no corresponding change
occurs in the value of HttpMethod.
TotalBytes
intvar = Request.TotalBytes
Returns an Integer representing the size of the HTTP request body. ...