WebSocket foundation and application series -- grab a WebSocket package
1 Why do I need WebSocket
WebSocket is produced to meet the growing demand of real-time communication based on Web.
In the traditional Web, in order to realize real-time communication, the general way is to send requests continuously by using HTTP protocol, that is, Polling.
However, this method not only wastes bandwidth (HTTP HEAD is relativel ...
Added by dsds1121 on Thu, 10 Mar 2022 15:49:55 +0200
Leetcode problem solving algorithm greedy algorithm (python version)
1. The longest chain that a number pair can form
646. Longest number pair chain (Medium) Method 1: greedy algorithm Sort all pairs according to the size of the second number. The first step is to select the pair with the smallest ending number. Then, each step selects the number that does not conflict with the last selected number pair and ...
Added by zaiber on Thu, 10 Mar 2022 02:07:41 +0200
Resolve the response body(). String() cannot read multiple times
Project scenario:
Recently, the requirement of the project is to obtain a new token if the token fails when requesting the interface, and finally use the new token to request the original requested interface. So here we will use the response Interceptor, which is used in my project EasyHttp , is the encapsulation of okhttp. You can have a look ...
Added by ralphuk100 on Wed, 09 Mar 2022 05:28:36 +0200
python -- regular expression (re module) detailed explanation
When Python needs to match the name of a module, it can be brought into Python through the regular expression.
The approximate matching process of regular expressions is: 1. Compare the characters in the expression and text in turn, 2. If each character can be matched, the matching is successful; Once there are characters that fail to match, t ...
Added by gilreilly on Tue, 08 Mar 2022 07:29:00 +0200
Upgrade log4j2 of springboot to solve the vulnerability
Recently, major vulnerabilities have been revealed in log4j2. The company also urgently requires all projects to check themselves and upgrade the version of log4j to a safe version
At present, we are using springboot version 1.5.9, and the built-in log4j2 is version 2.7. Although mybatis is integrated, the built-in version of log4i is still b ...
Added by twatkins on Tue, 01 Mar 2022 14:10:40 +0200
Kill Session? This cross domain authentication solution is really elegant
User login authentication is a very common business in Web applications. The general process is as follows:
The client sends the user name and password to the serverAfter the server-side verification is passed, save relevant data in the current session, such as login time, login IP, etc.The server returns a session to the client_ ID, which the ...
Added by soulzllc on Tue, 01 Mar 2022 03:29:06 +0200
Spring Cloud Gateway has built-in instructions for the use of various types of predicate (assertion)
SpringCloudAlibaba+Nacos integration Gateway Spring cloud gateway combined with Sentienl to implement gateway current limiting mechanism Spring Cloud Gateway filter factory
Spring Cloud Gateway contains many built-in routing assertion factories. All of these assertions match different attributes of the HTTP request. You can combine multipl ...
Added by BenS on Mon, 28 Feb 2022 04:06:19 +0200
Analyze HTTP requests to reduce the risk of HTTP smuggling attacks and HTTP data receiving asynchronous attacks
The words written in the front
HTTP/1.1 has gone through a long development process from 1991 to 2014:
HTTP/0.9– 1991HTTP/1.0– 1996HTTP/1.1RFC 2068– 1997RFC 2616- 1999RFC 7230- 2014
This means that various servers and clients in the Internet may have many security problems, which will also create opportunities for HTTP smuggling attack (HTTP ...
Added by billmasters on Sat, 26 Feb 2022 08:36:22 +0200
SpringCloudAlibaba+Nacos integrates the Gateway gateway to realize the use of Http timeout, cross domain, metadata and global exception configuration
1. Gateway overview
The so-called API gateway refers to the unified entrance of the system. It encapsulates the internal structure of the application and provides unified services for the client. Some public logic independent of the function of the business itself can be realized here, such as authentication, authentication, monitoring, ro ...
Added by worldofcarp on Sat, 26 Feb 2022 04:07:05 +0200
ddns automatic refresh via HTTP API
Recommended in this article“ Free DDNS ”For free DDNS service at home, if you have wired commercial bandwidth and have no home bandwidth, you don't need to consider DDNS, unless it is business width, which is DHCP public network IP. Such business width is generally used for illegal trading. There are many people, such as business wi ...
Added by nenena on Fri, 25 Feb 2022 05:53:40 +0200