Did you find this useful?
Socialize it today.


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)
%>

Please help us spread the word by socializing it today!

email contact us

Did you find something wrong with the information on this page? Please take a moment to report it to us so that we can continue to improve the quality of the information on this site. Click here to report an issue with this page.



Recommended Books & Training Resources

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