Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP Request Object

ASP Request Object


The Request object is used to get information from visitors.


QueryString Collection Example

Sending query information when a user clicks a link
This example demonstrates how to send query information to a page in a link and retrieve that information in the target page (in this case, the same page).

Simple application of the QueryString collection
This example demonstrates how to use the QueryString collection to retrieve values from a form. (This form uses the GET method, which means the information sent is visible to the user.)

How to Use Information from a Form
This example demonstrates how to use the values retrieved from a form. This form uses the GET method.

More information from a form
This example demonstrates what the QueryString collection contains if input fields share several identical names. It shows how to use the Count keyword to count the "name" attributes. This form uses the GET method.

Form Collection Example

Simple application of the Form collection
This example demonstrates how to use the Form collection to retrieve values from a form. (This form uses the POST method, which means the information sent is invisible to the user.)

How to Use Information from a Form
This example demonstrates how to use the values retrieved from a form. This form uses the POST method.

More information from a form
This example demonstrates what the Form collection contains if input fields share several identical names. It shows how to use the Count keyword to count the "name" attributes. This form uses the POST method.

A form with radio buttons
This example demonstrates how to use the Form collection to interact with users via radio buttons. This form uses the POST method.

A form with checkboxes
This example demonstrates how to use the Form collection to interact with users via check boxes. This form uses the POST method.

Other Examples

Get server variables
This example demonstrates how to get information such as the visitor's browser type and IP address.

Create a welcome cookie
This example demonstrates how to create a Welcome Cookie.

Detect the total number of bytes sent by the user
This example demonstrates how to detect the total number of bytes sent by the user in the Request object.


Request Object

When a browser requests a page from the server, this action is called a request. The Request object is used to get information from users. Its collections, properties, and methods are described below:

Union

Union Description
ClientCertificate Contains all field values stored in the client certificate.
Cookies Contains all cookie values sent in the HTTP request.
Form Contains all form (input) values sent by a form using the post method.
QueryString Contains all variable values in the HTTP query string.
ServerVariables Contains all server variable values.

property

property Description
TotalBytes Returns the total number of bytes sent by the client in the request body.

Method

Method Description
BinaryRead Retrieves data sent from the client to the server as part of a post request and stores it in a safe array.