Communication between the client and the server

Source: Internet
Author: User
Tags html page
The previous chapter describes some of the basic issues with installation settings and the use of a S p, as well as the built-in objects it provides. This chapter will further examine the two most commonly used objects. Between browsers (or other user agents) and our B servers, the exchange of information that occurs in requests and responses can be accessed and managed through two built-in objects in the ASP, which are called request and response objects.
Almost all of the work you want to do in an ASP page is to access both objects, and the way you use them affects the efficiency and reliability of your pages. Their main purpose, of course, is to access the values that users send back to the server, either from the < FORM > section of the HTML page, or as a query string, and create the appropriate output to return to the user, and they can share many of the same factors. For example, two objects can use cookies that are stored on the client computer.
Therefore, we divide this chapter into two separate sections (each part of the object) and start with the information exchange between the client and the server, and then examine each of the objects. This will further help to understand the relationship between them and their importance.
Therefore, the contents of this study are:
How the client communicates with the server to pass a Web page or other resource.
The details of the request and response objects, and the similarities between them.
How to access the corresponding value through a form and query string.
How to read or create cookies and store them on the client computer.
What are the server variables? How to access and modify the HTTP header.
Describe changes to other related items, such as the use of the customer's certificate.
First look at the communication between the client browser (or "User Agent") and the ASP's Web server.
When a browser or other user agent accesses a Web site Request page, a conversation is generated between the client server and the Web server, and we will examine this issue carefully, because understanding this issue helps to master the basics of using the ASP's request and response objects. In order to further understand the ASP's more knowledge.
To save space, use the word "browser" (browser) in this chapter and later in this book. But keep in mind that applications that can access Web pages are not just browsers, there are many special applications that download Web pages from sites, such as special client programs designed for visually impaired users or other difficulties with the usual browsers. The most obvious example is the robot that search engines use to access sites on the web. Consider these factors comprehensively, including a common web browser, and the exact words should be the user agent.

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.