Implementing a Simple HTTP Proxy in Golang

Implementing a Simple HTTP Proxy in Golang

This article details the implementation of an HTTP proxy using Golang. Those who have such needs in practical business can start learning! A proxy is an important function in the network, which serves to proxy network users to obtain network information. Figuratively speaking, it is a transfer station for network information. For clients, the proxy … Read more

Understanding the Differences Between RPC and HTTP Calls

Understanding the Differences Between RPC and HTTP Calls

Author: Floating Life Dream Source: blog.csdn.net/m0_38110132/article/details/81481454 For a long time, I never really understood the difference between RPC (Remote Procedure Call) and HTTP calls. Aren’t they just about writing a service and calling it on the client side? Please allow me a naive smile here~ Naive! This article briefly introduces the two forms of C/S … Read more

Basics of Go Language: net/http Package

Basics of Go Language: net/http Package

Source:jianshu.com/p/8bf41fef20c7 【Introduction】This article introduces the Go language’s standard library net/http. The built-in net/http package in Go is excellent, providing implementations for both HTTP clients and servers. Introduction to net/http The built-in net/http package in Go provides implementations for both HTTP clients and servers. HTTP Protocol The HyperText Transfer Protocol (HTTP) is the most widely used … Read more

Beginner’s Guide to API Testing – Basics of HTTP Protocol

1、URL:Uniform Resource Locator 2、Components of URL: <protocol>://[<user>:<password>]@<host>:<port>/<path>[:<params>]?<query>#<fragment> protocol:The protocol used for access, such as: http, https, ftp host:The hostname, which can be an IP address or a domain name, for example: 192.168.10.12, www.baidu.com. port:The port of the host when accessed. The default port for HTTP protocol is 80 and can be omitted. path:We can locate … Read more

Comprehensive Detection of HTTP, HTTPS, and Encrypted Webshells

1. Introduction Webshells are malicious scripts used by hackers to attack websites. Identifying webshell files or communication traffic can effectively prevent further attacks by hackers. Currently, the detection methods for webshells are mainly divided into three categories: static detection, dynamic detection, and log detection. Static detection analyzes webshell files and extracts their coding rules to … Read more

How to Write a Simple HTTP Server in C++

How to Write a Simple HTTP Server in C++

Click the blue text Follow us Source from the Internet, please delete if infringing This article will not involve many complex concepts and does not write difficult-to-understand template functions. The code is simple and readable. This article is dedicated to everyone who wants to write an HTTP server in C++! Experts and big shots can … Read more

Understanding HTTP Status Codes

Understanding HTTP Status Codes

Click the blue text above to follow us 1xx: Informational This class of status codes indicates a temporary response. The client should be prepared to receive one or more 1xx responses before receiving a regular response. HTTP Status Code Description 100 Continue. 101 Switching Protocols. 2xx: Success This class of status codes indicates that the … Read more

Python Web Scraping: HTTP and HTTPS Protocols

Python Web Scraping: HTTP and HTTPS Protocols

Application Architecture The rapid development of the Internet is driven by commercial economics. Currently, almost all commercial applications are based on the Internet, and they generally use C/S architecture, B/S architecture, or M/S architecture. C/S stands for Client-Server. B/S stands for Browser-Server. M/S stands for Mobile-Server. HTTP Protocol Currently, 90% of network transmissions on the … Read more

Implementing an HTTP Downloader in C

Implementing an HTTP Downloader in C

Click the blue text Follow us Due to changes in the public account push rules, please click “View” and add “Star” to get exciting technical shares at the first time Source from the internet, please delete if infringing This time I would like to share an HTTP downloader implemented in C. For example, when doing … Read more

Common HTTP Error Codes

Common HTTP Error Codes

Common HTTPError Codes Sometimes we encounter a situation where a website cannot be accessed, and it returns some error codes. Some common error codes include: 404, 503. Tips 4xx (Client Error) These status codes indicate that there may be an error with the request, preventing the server from processing it. 400 (Bad Request) The server … Read more