Detailed description of ASP built-in object Request object

Source: Internet
Author: User

The Request object is used to accept all information in all requests sent from the browser to your server.

Set

Request. ClientCertificate (key [SubField])

A set of information about all customer certificates. For a Key, the set has the following keywords:

Subject
The topic of the certificate. Contains all information about the certificate receipt. Can be used with all subdomain suffixes.

Issuer
The issuer of the certificate. Contains all information about certificate verification. Except CN, it can be used with all subdomain suffixes.

VadidFrom
The date on which the certificate is issued. Use VBScript format.

ValidUntil
The time when the certificate is not valid.

SerialNumber
The serial number of the certificate.

Certificate
The binary stream that contains the entire certificate content, in ASN.1 format.

 


For SubField, the Subject and Issuer keywords can have the following subdomain suffixes: (for example, SubjectOU or IssuerL)

C
Country of origin.

O
Company or organization name.

OU
Organizational unit.

CN
The general name of the user.

L
Local.

S
State (or province ).

T
The title of an individual or company.

GN
Name.

I
Initial.

When the file cervbs. inc (used by VBScript) or cerjavas. inc (used by Jscript) is included in your Active Server Page through the # INCLUDE orientation, the following two flags can be used:

CeCertPresent
Specifies whether the customer certificate exists. Its value is TRUE or FALSE.

CeUnrecongnizedIssure
Specifies whether the issuer of the last certificate in the linked list is unknown. Its value is TRUE or FALSE.


Request. Cookies (Cookie [(key). Attribute])

Cookie set. Allows you to obtain the Cookie of a browser. Cookie indicates the Cookie that is returned. Key is used to return the Cookie value with a certain keyword from the Cookie Dictionary. For Attribute, you can use the Attribute HasKeys to determine whether a Cookie has a subkeyword. The value of HasKeys is TRUE or FALSE.

Request. Form (Parameter) [(Index). Count]

The set of all the data in the HTML form. Parameter is the name of an element in an HTML form. Index is used when a parameter has more than one value (for example, when the MULTIPLE attribute is used in <SELECT>. When a parameter has multiple values, Count indicates the number of multiple values.

Request. QueryString (Varible) [(Index). Count]

Queries the set of all values of a string. Varible is the name of a variable in the query string. If a variable has more than one value, Index is used. When a parameter has multiple values, Count indicates the number of values.

Request. ServerVaribles (Server Environment Variable)

Set of environment variables. The HTTP header can be read. You can use the HTTP _ prefix to read any header information. For example, HTTP_USER_AGENT accepts the client proxy HTTP header (browser type ). In addition, you can use the variables shown in the following table to obtain any environment information.

ALL_HTTP
All HTTP headers sent by the client have the prefix HTTP _.

ALL_RAW
All HTTP headers sent by the client have the same results as those sent by the client without the prefix HTTP _

APPL_MD_PATH
The Metadatabase path of the application.

APPL_PHYSICAL_PATH
The physical path corresponding to the application Metadatabase path.

AUTH_PASSWORD
The password entered in the password dialog box when the basic authentication mode is used.

AUTH_TYPE
When a user accesses a protected script, the server is used to verify the user's authentication method.

AUTH_USER
The authenticated user name.

CERT_COOKIE
The unique ID of the customer certificate.

CERT_FLAG
Customer certificate flag. If there is a client certificate, bit0 is 0. If the client certificate verification is invalid, bit1 is set to 1.

CERT_ISSUER
The issuer field in the user certificate.

CERT_KEYSIZE
Number of digits of the secure socket layer connection keyword, such as 128.

CERT_SECRETKEYSIZE
The number of digits that the server verifies for a private keyword. For example, 1024.

CERT_SERIALNUMBER
The serial number field of the customer certificate.

CERT_SERVER_ISSUER
Issuer field of the server certificate

CERT_SERVER_SUBJECT
The topic field of the server certificate.

CERT_SUBJECT
The topic field of the client certificate.

CONTENT_LENGTH
The length of the content sent by the client.

CONTENT_TYPE
The form content or http put data type sent by the customer.

GATEWAY_INTERFACE
The Gateway interface used by the server.

HTTPS
If the request passes through the secure channel (SSL), ON is returned. If the request comes from an insecure channel, return OFF.

HTTPS_KEYSIZE
Number of digits of the secure socket layer connection keyword, such as 128.

HTTPS_SECRETKEYSIZE
The number of digits that the server verifies for a private keyword. For example, 1024.

HTTPS_SERVER_ISSUER
The issuer field of the server certificate.

HTTPS_SERVER_SUBJECT
The topic field of the server certificate.

INSTANCE_ID
The ID of the IIS instance.

INSTANCE_META_PATH
The MetaBase path of the IIS instance that responds to the request.

LOCAL_ADDR
Returns the server address that receives the request.

LOGON_USER
The user logs on to the Windows NT account

PATH_INFO
The path provided by the client.

PATH_TRANSLATED
The path obtained by ing from virtual to physical.

QUERY_STRING
Query string content.

REMOTE_ADDR
The IP address of the remote host that sends the request.

REMOTE_HOST
The name of the remote host that sends the request.

REQUEST_METHOD
Request method. Such as GET, HEAD, and POST.

SCRIPT_NAME
Name of the script to be executed.

SERVER_NAME
The host name, DNS address, or IP address of the server.

SERVER_PORT
The port number of the server that receives the request.

SERVER_PORT_SECURE
If the server port receiving the request is a security port, the value is 1. Otherwise, the value is 0.

SERVER_PROTOCOL
The name and version of the protocol used by the server.

SERVER_SOFTWARE
Name and version of the server software that responds to the request and runs the gateway.

URL
Provide the basic part of the URL.
 

Method

Request. BinaryRead (Count)

Receives unprocessed content from an HTML form. When this method is called, Count indicates the number of bytes to receive. After this method is called, Count indicates the number of bytes actually received.

Attribute

Request. TotalBytes

 

Length of the query body, in bytes.

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.