Practical Guide to Sending and Receiving HTTP/HTTPS Requests

Practical Guide to Sending and Receiving HTTP/HTTPS Requests

Introduction In daily projects, we often encounter the integration of third-party systems, and HTTP requests are a common method of integration. This article provides a brief introduction and usage. Core Concepts of HTTP/HTTPS 1. Basics of HTTP Protocol Definition: HyperText Transfer Protocol (HTTP), used for communication between clients and servers.Core Features: • Stateless Protocol: Each … Read more

Considerations for Sending Cookies in HTTP Requests

Considerations for Sending Cookies in HTTP Requests

In web projects with a separation of front-end and back-end, the front-end usually needs to send cookies to the back-end. Sending cookies to the same site means that the IP or domain accessed by the front-end and back-end is the same. When the IP or domain accessed by the front-end and back-end is different, cross-site … Read more

Differences Between MQTT and HTTP

Differences Between MQTT and HTTP

Imagine coming home from work to find the lights automatically turned on, the air conditioning set to the most comfortable temperature, and your phone alerting you with a message saying “Living Room Temperature 26 ℃”. This is not magic, but rather the “group chat” completed in a second by MQTT—sensors act like chatterboxes, throwing data … Read more

Advantages of MQTT Over HTTP

Advantages of MQTT Over HTTP

Follow+Star Public Account, don’t miss out on exciting content Source | Embedded Miscellaneous In the past decade, the Internet of Things (IoT) has been developing rapidly, and in many scenarios, networking is essential. Both MQTT and HTTP are used in IoT applications, but their application scenarios differ. In IoT applications, MQTT (Message Queuing Telemetry Transport) … Read more

In-Depth Explanation of the HTTP Protocol: The Cornerstone of Internet Communication

In-Depth Explanation of the HTTP Protocol: The Cornerstone of Internet Communication

1. Basic Concepts of the HTTP Protocol Definition: The HyperText Transfer Protocol (HTTP) is an application layer protocol used for distributed, collaborative, and hypermedia information systems, serving as the foundation for data communication on the Internet.Core Function: It specifies the format and rules for data transmission between clients (such as browsers) and servers, enabling requests … Read more

Do You Really Understand HTTP? A Comprehensive Guide to Web Communication Principles!

Do You Really Understand HTTP? A Comprehensive Guide to Web Communication Principles!

Click the blue “Most Programmer” to follow me! Add a “star“, every day at 18:03 to learn technology together! Web Technology and HTTP Protocol Table of Contents Domain Name 1. Concept of Domain Name 2. Structure of Domain Name 3. Types of Domain Names 1. Classified by Hierarchy 2. Classified by Purpose 3. Special Types … Read more

Frontend Engineering Practice: The Correct Approach to HTTP Request Interception and Error Handling

Frontend Engineering Practice: The Correct Approach to HTTP Request Interception and Error Handling

“Did the API request fail? There was no prompt at all!” “The backend returned 401, and I’m still clicking on the page…” If you have encountered similar awkward situations in your project, you may need to understand the HTTP request interception and error handling mechanism in the frontend. In modern frontend projects like Vue/React, API … Read more

Comparison of HTTP Asynchronous Calls: httpx vs aiohttp

Comparison of HTTP Asynchronous Calls: httpx vs aiohttp

Core Features httpx Modern API Design: Inspired by the synchronous libraryrequests, the API is intuitive and easy to use. HTTP/2 Support: Natively supports HTTP/2, which can enhance communication efficiency with compatible servers. Sync and Async Compatibility: Supports both synchronous (httpx.Client) and asynchronous (httpx.AsyncClient) interfaces, suitable for mixed scenarios. aiohttp High Performance: Designed to be lightweight, … Read more

Interview: What are the Differences Between RPC and HTTP?

Interview: What are the Differences Between RPC and HTTP?

What are the differences between RPC and HTTP? 1. Differences: 1. Transmission Protocol RPC can be based on TCP protocol or HTTP protocol. HTTP is based on HTTP protocol. 2. Transmission Efficiency RPC, using a custom TCP protocol, can make the request payload smaller, or using HTTP2 protocol can also significantly reduce the payload size, … Read more

Understanding the Statelessness of the HTTP Protocol

Understanding the Statelessness of the HTTP Protocol

In simple terms, it means there is no past, no history. It is important to emphasize that the HTTP protocol is stateless only when cookies are not enabled; when cookies are enabled, it is actually stateful. Here, we will assume that cookies are not enabled. Imagine a scenario where you have developed a web site … Read more