ASP Reading Notes (2)-built-in objects

Source: Internet
Author: User
Tags servervariables

1. Request object
1. Use the get method to submit form data and request. querystring ("") to process a single table page. The parameter is the name attribute value of the form element.
2. Use the POST method to submit the form data and process the single page of the table. Request. Form (""); the parameter is the name attribute value of the form element.
3. Obtain the size of data bytes received by the client, and use request. totalbytes
4. How to read data in binary code mode. The request object provides a binaryread method to read data submitted by the client using the POST method in binary code mode. The customer outputs data using a binarywrite method.
For example: dim arrays (1000) arrays (1) = request. binayread (request. totalbytes)
Response. binarywrite (arrays (1 ))
5. Obtain server information. You can use the servervariables method of the request object to obtain some server information, such:
Current file name: request. servervariables ("path_info ")
Client IP: request. severvariables ("remote_addr ")
Host Name: request. servervariables ("SERVER_NAME ")
6. Obtain the subject information verified by the client. The clientcertificate Data Set obtains the verification field from the web browser publishing request. When the client browser supports the SSL protocol, that is, sending an HTTP request starting with "https: //" instead of "http: //", and the Web server connected to the browser is running on SSL, the authentication field sent by the client. If the client does not send authentication information, or the server segment does not have a command to request authentication from the client, then, the clientcertficate Data Set returns empty (null). In general, IIS or PWS are default commands that do not require authentication from the client. Use the clientcertificate data set of the request object to obtain the topic information verified by the client. As follows: Code :

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.