The Pitfalls of Login Functionality: How an HTTP Redirection Attack Almost Cost My Company (with Solutions)

The Pitfalls of Login Functionality: How an HTTP Redirection Attack Almost Cost My Company (with Solutions)

Follow our public account for Java insightsTimely delivery Last week, I made a blunder at the company—my own login module almost became an accomplice to a phishing site. Today, I want to share this thrilling process and how to avoid the “invisible bomb” of HTTP redirection attacks. The Morning That Drove the Tester Crazy It … Read more

Differences Between WebSocket and HTTP Communication, Usage Scenarios, and WebSocket Code Examples

Differences Between WebSocket and HTTP Communication, Usage Scenarios, and WebSocket Code Examples

🕵️ Reading | Changsha ⭐ Software Engineering ⭐ Bachelor’s Degree 🏠 Work | Guangzhou ⭐ Java Full Stack Developer 🌳 Multiple technical forum expert bloggers, over 110,000 fans online ✈️ Official Account | Country Boy Programming. Reply with Java full video tutorial or front-end full video tutorial to get 300G+ tutorial materials and project practical … Read more

HTTP Status Codes: A Comprehensive Analysis of the ‘Morse Code’ Sent by the Server

HTTP Status Codes: A Comprehensive Analysis of the 'Morse Code' Sent by the Server

Introduction 【Preface】 Long time no see! I have been busy with the launch of a new project for the past six months, and I haven’t written an article in a while (please be gentle 😅). During this time, while troubleshooting online issues, I found that many colleagues still understand HTTP status codes as just “200=Success, … Read more

Httpx: The Rising Star of Asynchronous HTTP!

Httpx: The Rising Star of Asynchronous HTTP!

▲ Click the card above to follow me Httpx: The Rising Star of Asynchronous HTTP! In today’s era of high concurrency and high-performance web applications, traditional synchronous HTTP requests are increasingly unable to meet our needs. As a brilliant new star in the Python ecosystem, Httpx is quietly changing the way we handle web requests. … Read more

Httpx: The Future Star of Asynchronous HTTP!

Httpx: The Future Star of Asynchronous HTTP!

▼ Click the card below to follow me ▲ Click the card above to follow me Httpx: The King of Asynchronous HTTP Libraries! In modern web development, asynchronous programming is becoming the key to enhancing performance. Traditional synchronous HTTP requests are like waiting in line to buy breakfast, where everyone has to wait patiently. Httpx … Read more

Requests: A Magical HTTP Request Tool!

Requests: A Magical HTTP Request Tool!

How can a Python web scraper do without Requests? This HTTP tool is simply a Swiss Army knife for data acquisition! Whether it’s scraping a webpage, calling an API, or downloading a file, just a few lines of code will do the trick without the hassle of low-level details. Today, let’s take a look at … Read more

Basics of Python Web Scraping – Fundamental Principles of HTTP (Part 2)

Basics of Python Web Scraping - Fundamental Principles of HTTP (Part 2)

HTTP Request Process A complete HTTP request process includes DNS requests and responses, domain name resolution, TCP connection, three-way handshake, server response to the HTTP request, browser parsing and rendering of HTML, and finally, the server closes the TCP connection with a four-way handshake. Step 1: DNS Resolution The local DNS uses recursive queries to … Read more

nghttp2: Implementing HTTP/2 on ESP32 Series SOC Platforms

nghttp2: Implementing HTTP/2 on ESP32 Series SOC Platforms

In application development, HTTP/2 is a highly efficient network protocol that has garnered attention due to its features such as multiplexing and header compression. nghttp2 is an open-source project that provides rich functionality for implementing HTTP/2. As embedded platforms like the ESP32 evolve, applying the features of nghttp2 on these platforms has become a significant … Read more

Requests: An Elegant HTTP Request Library for Python

Requests: An Elegant HTTP Request Library for Python

In today’s internet era, web services are ubiquitous, and the exchange and retrieval of data have become crucial. Whether it’s fetching remote API data, submitting forms, downloading files, or developing web crawlers, dealing with the HTTP protocol is essential. The Python <span>Requests</span> library serves as an elegant HTTP request library for Python, providing developers with … Read more

URL Encoding of Chinese Data in HTTP POST

URL Encoding of Chinese Data in HTTP POST

Background of the Issue When sending form data using HTTP POST, if the data is sent as a string connected by <span>&</span> (i.e., in <span>application/x-www-form-urlencoded</span> format), there often occurs a garbled text issue when the data contains Chinese characters. This is because Chinese characters are non-ASCII characters and need to be properly encoded to be … Read more