Home  >  Article  >  What is the computer term request?

What is the computer term request?

(*-*)浩
(*-*)浩Original
2019-12-26 10:19:197560browse

What is the computer term request?

#The function of the Request object is to interact with the client, collect the client's Form, Cookies, hyperlinks, or collect the server-side environment variables.

The request object is a request sent from the client to the server, including information submitted by the user and some information from the client. (Recommended learning: phpstorm)

The client can submit data through HTML forms or by providing parameters after the web page address, and then the server obtains these through the relevant methods of the request object. data. The various methods of request are mainly used to process various parameters and options in the request submitted by the client browser.

The Request object, also known as the request object, is derived from the HTTPResponse class and is an important server built-in object in ASP. It connects the Web server and Web client programs.

This object is used to obtain all the information provided by the client when requesting a page or transmitting a Form, including HTTP variables that can identify the browser and user, cookie information stored on the client, and information attached to the URL. Value, query string or value in the HTML control of the Form section in the page, cookie, client certificate, query string, etc.

Such as browser and user variables, data, variables in client forms, or client cookie information, etc. The classes corresponding to the Request object are System, Web, and HttpRequest classes.

Attributes of the Request object

The only attribute of the Request object is TotalBytes, which provides information about the number of bytes requested by the user: Returns the request information issued by the client number of bytes. In use, the value of each request information of the client is usually focused on rather than the entire request string, so this attribute is rarely used in ASP pages.

Methods of the Request object

The only method of the Request object is BinaryRead, which allows access to the complete request information passed to the server from the user page's 632555444b46edf0af44e58213a0ac8c section. content. The syntax format is:

Request.BinaryRead(count)

Description:

① count indicates the bytes of data obtained from the client request when the data is sent to the server as part of the POST request. number.

② This method returns a Variant array (or SafeArray).

③ If the ASP code has already referenced the Request.Form collection, this method cannot be used again. Similarly, if the BinaryRead method is used, the Request.Form collection can no longer be accessed.

Use of Request object

In ASP, when the client requests a page or passes a form, the Request object provides the script with the information provided by the client browser. All information, including all information requested by the user, cookies stored by the user in the browser for the domain name, authorized access using Secure Socket Layer (SSL) or other encrypted communication protocols, and attributes for managing the connection, etc. The Request object can use collections, properties, methods, etc. to transfer parameters. Its syntax format is:

Request.[ 集合 | 属性 | 方法 ] ( 变量 )

The above is the detailed content of What is the computer term request?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn