ASP Request Object

Wednesday, August 29, 2012

tags ASP

The ASP Request object retrieves the values that the client browser passes to the web server during an HTTP request. The main purpose of is to retrieve information from the web client. This object is very useful in collecting information that is used in server-side processing. The collections, properties and methods of the ASP Request object are as follows:


Collections

CollectionDescription
ClientCertificateContains all the field values stored in the client certificate. You must configure your web server to request client certificates.
CookiesContains all the cookie values sent in a HTTP request
FormContains all the input values from a form that sent to the server using the post method.
QueryStringContains all the variable values in a HTTP query string.
ServerVariablesContains all the predefined environment server variables.


Properties

PropertyDescription
TotalBytesA read-only property that specifies the total number of bytes sent by the client in the HTTP request body.


Methods

MethodDescription
BinaryReadRetrieves the data sent to the server from the client as part of a post request and stores it in a safe array


Examples

Here is a listing of some examples regarding the use of the Response Object and its collections, methods, and properties.

<%
Request.Cookies("userName")
Request.Form("firstName")
Request.QueryString("lastName")
Request.ServerVariables("remote_addr")
totalB=Request.TotalBytes
Request.BinaryRead(totalB)
%>

Did you find the page informational and useful? Share it using one of your favorite social sites.

Recommended Books & Training Resources

Sams Teach Yourself Active Server Pages 3.0 in 21 Days ASP In A Nutshell Beginning ASP Databases