ASP Request



The Request object is used to obtain information from visitors.


tryitimg.gif

QueryString collection instance

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

Simple application of 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 that the information sent is visible to the user.)

How to use information from the form
This example demonstrates how to use the values ​​retrieved from the form. This form uses the GET method.

More information from the form
This example demonstrates what the QueryString collection will contain if the input field contains several identical names. It will show how to use the Count keyword to count the "name" attribute. This form uses the GET method.

tryitimg.gif

Form collection instance

Simple application of 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 that the information sent is invisible to the user.)

How to use information from the form
This example shows how to use the values ​​retrieved from the form . This form uses the POST method.

More information from forms
This example demonstrates what the Form collection will contain if the input fields contain several identical names. It will show how to use the Count keyword to count the "name" attribute. This form uses the POST method.

Form with radio buttons
This example demonstrates how to use the Form collection to interact with the user through radio buttons. This form uses the POST method.

Form with checkboxes
This example demonstrates how to use the Form collection to interact with the user through checkboxes. This form uses the POST method.

tryitimg.gif

Other examples

Get server variables
This example demonstrates how to obtain the visitor's browser type, IP address and other information.

Create 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 the browser requests a page from the server, this behavior is called a request. The Request object is used to obtain information from the user. Its collections, properties and methods are described as follows:

Collection

CollectionDescription
ClientCertificateContains all field values ​​stored in the client certificate.
CookiesContains all cookie values ​​sent in the HTTP request.
Form Contains all form (input) values ​​sent by the form using the post method.
QueryString Contains all variable values ​​​​in the HTTP query string.
ServerVariablesContains all server variable values.

Properties

PropertiesDescription
TotalBytesReturns the total number of bytes sent by the client in the request body.

Method

MethodDescription
BinaryReadRetrieve the data sent from the client to the server as part of the post request and store it in a safe array.