How browsers work

Source: Internet
Author: User
The essence of the browser's working principle is to implement the HTTP protocol communication, the process is as follows:

The process of HTTP communication is broadly divided into three phases:
Connection The server listens to port 8000 through a ServerSocket class object, hears the connection and opens a socket virtual file.
Request After creating the stream object associated with the socket connection, the browser obtains the request, and, for the GET request, obtains the access HTML file name from the request information and sends the request to the server.
Answer After the service receives the request, the search for the relevant directory file, if not present, returns an error message. If present, then want to HTML file, add HTTP Prime processing after the response to the browser, the browser parses the HTML file, if it also contains pictures, videos and other requests, the browser again access the Web server, the exception to get pictures and videos, and to assemble the display.

How browsers work

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.