ASP Request Object
- Previous Page ASP Response
- Next Page ASP Application
The ASP Request object is used to obtain information from the user.
Example
QueryString collection example
- Send query information when the user clicks the link
- This example demonstrates how to send some additional query information in a link to a page and retrieve this information on the target page (in this case, the same page).
- Simple application of QueryString collection
- This example demonstrates QueryString How to retrieve values from a form in a collection. This form uses the GET method, which means the information sent is visible to the user (in the address). The GET method also limits the amount of information sent.
- How to use information sent from the form
- This example demonstrates how to use the values retrieved from the form. We will use QueryString collection. This form uses the GET method.
- More information from the form
- This example demonstrates what happens if the input field contains several fields with the same name,QueryString will contain what content. It will show how to separate the same names. It will also show how to use count keywords to count the "name" attribute. This form uses the GET method.
Form collection example
- A simple application of the Form collection
- This example demonstrates Form collection to retrieve values from the form. This form uses the POST method, which means the information sent is invisible to the user and there is no limit to the amount of information sent (can send a large amount of information).
- How to use information from the form
- This example demonstrates how to use the information retrieved from the form. We use Form collection. The form uses the POST method.
- More information from the form
- This example demonstrates what happens if several input fields use the same name,Form collection will contain what information. It will show how to split the same names apart. It will also show how to use count keywords to count the "name" attribute. This form uses the POST method.
- Form with radio buttons
- This example demonstrates how to use 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 Form collection to interact with the user through checkboxes. This form uses the POST method.
Other examples
- Get user information
- How to find out the browser type, IP address, and other information of the visitor.
- Get server variables
- This example demonstrates how to use ServerVariables collection to obtain the browser type, IP address, and other information of the visitor.
- Create welcome cookie
- This example demonstrates how to use the Cookies collection to create a welcome cookie.
- to detect the total number of bytes sent by the user
- This example demonstrates how to use TotalBytes Properties to get 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 (request).
The ASP Request object is used to obtain information from the user. Its collections, properties, and methods are described as follows:
Collection
Collection | Description |
---|---|
ClientCertificate | Contains the field values stored in the client certificate |
Cookies | Contains all the cookie values sent in the HTTP request |
Form | Contains all the form (input) values sent using the POST method |
QueryString | Contains all the 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 | Retrieve the data sent from the client to the server as part of a POST request and store it in a secure array. |
- Previous Page ASP Response
- Next Page ASP Application