← Networking

Network services

The web and HTTPS

Web与HTTPS

When you open a page, the browser sends an HTTP request to the server, which replies with the page and a status code showing the result, such as 200 for success, 404 if the page doesn't exist and 500 for a server error.

HTTPS is HTTP with encryption. The browser and server first exchange keys securely, then all data is encrypted, so no one along the way can read passwords or change the page.

A site proves its identity with a digital certificate issued by a trusted authority, so the browser can confirm you are talking to the real site and not a fake. Many services now provide these certificates automatically.

Cookies are small pieces of data a site stores in your browser, such as remembering your login or preferred language, and they are sent with every request to that site.

To speed up the web, files are compressed and cached in the browser and in content delivery networks, and newer HTTP/2 and HTTP/3 send several files together over one connection.

Ask the AI assistant

Ask anything about this lesson and get a simple answer with the terms in Chinese, Arabic and English.

The AI assistant runs on Google's Gemini model and can make mistakes. Do not write personal information. Available to signed-in learners, up to 30 requests a day.

The content is simplified and covers the basics only.