The application of client Request and server Response details in ASP is implemented through the ASP built-in Request and Response object.
· Request object: provides all the information provided by the client when the client requests a page or transmits a form. This includes the HTTP variables that can indicate the browser and the user, and the cookies stored in the browser under this domain name, the value of any HTML control in the <FORM> section of the string or page appended to the URL as the query string. It also provides authorized access using Secure Socket Layer (SSL) or other encrypted communication protocols and attributes that help you manage connections.
· Response object: used to access the Response information created by the server and returned to the client concurrently. Provide HTTP variables for the script, specify the functions of the server and server, information about the content sent back to the browser, and any new cookies that will be stored in the browser for this domain. It also provides a series of methods to create output, such as the ubiquitous Response. Write method.
1. Overview of Request object members
A) set of Request objects
Object call method: Request. Cookies ("UserName") = UserName
The Request object provides five sets that can be used to access various types of information requested by the client to the Web server. These sets are shown in the following table:
Set and description of Request objects
Set name: ClientCertificate
Note: When a client accesses a page or other resources, it is used to indicate the identity of the client certificate to the server. Each member is read-only.
Set name: Cookies
Note: based on user requests, a set of all cookie values sent by the user system. These cookies are only valid for the corresponding domain, and each member is read-only.
Set name: Form
Note: When the property value of METHOD is POST, all the values of the HTML control units in the <FORM> segment submitted as requests are read-only.
Set name: QueryString
Note: the name/value pair attached to the URL of the user request or submitted as a request and the METHOD attribute is GET (or its attribute is omitted, or the value of all HTML control units in <FORM>. Each member is read-only.
Set name: ServerVariables
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.