Understanding the Relationship Between TCP, Sockets, and HTTP

Understanding the Relationship Between TCP, Sockets, and HTTP

Recently, I needed to implement an HTTP interface for a project. So, I took this opportunity to explain the relationship between HTTP and sockets, as well as their connection to TCP. First, it’s essential to understand that in the network layer architecture, the HTTP protocol belongs to the application layer, while the TCP protocol belongs … Read more

HTTP 3.0 Completely Abandons TCP: What Went Wrong?

Author l Hollis Source l Hollis (ID: hollischuang) Since HTTP/1.0 and up to HTTP/2, regardless of how the application layer protocol has improved, TCP has always been the foundation of the HTTP protocol mainly because it provides a reliable connection. However, starting from HTTP 3.0, this situation has changed. Because, in the newly released HTTP … Read more

What Did TCP Do Wrong in Abandoning HTTP 3.0?

What Did TCP Do Wrong in Abandoning HTTP 3.0?

Since HTTP/1.0, up to HTTP/2, TCP has always been the foundation of the HTTP protocol, mainly because it provides a reliable connection. However, starting from HTTP 3.0, this situation has changed. Because, in the newly launched HTTP 3.0, the TCP protocol has been completely abandoned. TCP Head-of-Line Blocking We know that during TCP transmission, data … Read more

Understanding HTTP Long Connections in Nginx

Understanding HTTP Long Connections in Nginx

In Nginx, the HTTP module uses configurations related to HTTP long connections (mainly the keepalive directive) and explains the principles of HTTP long connections. 1. HTTP Long Connections 1.1 Prerequisites Connection management is a key topic in HTTP: opening and maintaining connections greatly affects the performance of websites and web applications. In HTTP/1.x, there are … Read more

Basics of HTTP and Simple Telnet Commands

Basics of HTTP and Simple Telnet Commands

1. Overview of HTTP In the early 1990s, a major emerging application known as the World Wide Web took the stage. The Web is an Internet application that has captured public attention. The application layer protocol of the Web is Hypertext Transfer Protocol (HTTP), which is at the core of the Web. HTTP is implemented … Read more

Notes on Understanding HTTP

Notes on Understanding HTTP

Notes on Understanding HTTP ❝ This is the 285th article in the series on growth by Guoxing. ❞ (1) Reading Understanding HTTP The duration is three weeks from July 11 to July 31. 1. Why Learn HTTP? The front end (client) displays pages and interactions; The back end (server, logic code, data) completes function writing … Read more

Core Principles of Web Crawlers: How an HTTP Request is Completed

Core Principles of Web Crawlers: How an HTTP Request is Completed

Author: Da Mu Jiang https://my.oschina.net/luozhou/blog/3003053 Overview In the previous article, “Do You Know What Happens Behind the Scenes When You Ping?” we analyzed the process of a <span>Ping</span> using actual packet capture (a common interview question). We learned that <span>ping</span> relies on the <span>ICMP</span> protocol and also involves <span>ARP</span> requests in a local area network. … Read more

HTTP Request and Response Messages

HTTP Request and Response Messages

Songqin Software Testing Adhering to Educational Original Intention Both Asking About Harvest and Cultivation 1. Request Message Request Message: Request Line (Generally understanding the content of the request) Message Header (Additional information for the request, some regulations for requesting and receiving data) Message Body (Data sent from the client to the server) 2. Response Message … Read more

What Went Wrong with TCP in HTTP 3.0?

Since HTTP/1.0, up to HTTP/2, regardless of how the application layer protocol has improved, TCP has always been the foundation of the HTTP protocol, mainly because it provides a reliable connection. However, starting from HTTP 3.0, this situation has changed. Because, in the newly released HTTP 3.0, the TCP protocol has been completely abandoned. TCP … Read more