VOOZH about

URL: https://www.geeksforgeeks.org/software-engineering/asp-request-object/

⇱ ASP Request Object - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ASP Request Object

Last Updated : 29 Oct, 2021

The ASP Request Object is used to retrieve the information from the client browser. The Request Object is used when the client wants to request for a particular page from the server.

 The Request Object has properties, methods, and collections that are given below

Collections : 

  • Client Certificate: It is used to contain all the field values that will be stored in the Client Certificate.
  • Cookies: It is used to returning all the values of a collection of cookies that will be sent as an HTTP request.
  • Forms: It is used for returning the collection of form elements that posted to the HTTP request body
  • Query String: It is used to get the value of the variable that will be present in the HTTP query string.
  • Server Variable: It is used to return all the values of the server variables.

Properties 

  • Total Bytes: It is used to get the total number of bytes that will be sent to the server through the body of the request.
 

Methods

  • Binary Read(): This method is used to retrieve the data sent to the server from the client-side using POST request. This Method stores the data in Safe Array. A Safe Array is used to store the information about the number and the bounds of its dimensions.

Examples: Below code illustrates that how to return the value of cookies named as “site”. A ("Request.cookies" is used to get a cookie value)

Output 

Lets code with GeeksforGeeks
Comment
Article Tags:

Explore