Easy Tutorial
❮ Http Tutorial Http Header Fields ❯

Introduction to HTTP/HTTPS

The HTTP protocol stands for Hyper Text Transfer Protocol, which is the protocol used to transfer hypertext from web servers to local browsers on the World Wide Web.

HTTP is based on the TCP/IP communication protocol for transmitting data (HTML files, image files, query results, etc.).

The HTTPS protocol stands for HyperText Transfer Protocol Secure, a protocol used for secure communication over a computer network.

HTTPS communicates via HTTP but uses SSL/TLS to encrypt data packets. The main purpose of HTTPS is to provide authentication of the website server and protect the privacy and integrity of exchanged data.

HTTP URLs start with http:// and use port 80 by default, while HTTPS URLs start with https:// and use port 443 by default.


HTTP Working Principle

The HTTP protocol operates on a client-server architecture.

Browsers, acting as HTTP clients, send all requests to web servers via URLs.

Web servers include Apache servers, IIS servers (Internet Information Services), etc.

After receiving requests, web servers send response information back to the client.

The default port number for HTTP is 80, but it can be changed to 8080 or another port.

Three Key Points about HTTP:

The following diagram illustrates the HTTP protocol communication flow:


Role of HTTPS

The main function of HTTPS is to create a secure channel over an insecure network, providing reasonable protection against eavesdropping and man-in-the-middle attacks when using appropriate encryption packages and verified server certificates.

HTTPS trust is based on certificate authorities (CA) pre-installed in the operating system.

Therefore, an HTTPS connection with a website is only trustworthy under the following conditions:

Browsers like Google Chrome, Internet Explorer, and Firefox issue warnings when a website contains mixed content of encrypted and unencrypted elements.

HTTP links are displayed as insecure:

HTTPS links are displayed as secure:


Further Reference Content

❮ Http Tutorial Http Header Fields ❯