Computers & ProgrammingASPBackend Development

ASP Request Object

The ASP Request object retrieves the values that the client browser passes to the web server during an HTTP request. The main purpose 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 an HTTP request
FormContains all the input values from a form that is sent to the server using the post method.
QueryStringContains all the variable values in an 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)
%>

Leave a Comment

Your email address will not be published.

Scroll to Top