day21 network programming
day21 network programming (Part 2)
Course objective: learn the necessary knowledge of network programming development.
Today's summary:
OSI7 layer modelTCP and UDPSticky bagBlocking and non blockingIO multiplexing
1. OSI layer 7 model
The 7-layer OSI model may not be easy to understand, so let's explain it through a case:
Suppose you ...
Posted by aliento on Wed, 19 Jan 2022 10:45:01 +0100
Digging experience | account hijacking using cross site WebSocket hijacking (CSWH)
*The relevant vulnerabilities involved in this paper have been submitted to the manufacturer and repaired. This paper is only limited to technical research and discussion. It is strictly prohibited to use it for illegal purposes, otherwise all the consequences will be borne by itself.
What this article shares is that in a vulnerability test, ...
Posted by FastLaneHosting on Mon, 17 Jan 2022 21:08:46 +0100
Java basic syntax_ 24_ Network programming 02
1.NIO
1.1 NIO channel client [application]
Client implementation steps
Open channelSpecify the IP and port numberWrite dataRelease resources Sample code public class NIOClient {
public static void main(String[] args) throws IOException {
//1. Open the channel
SocketChannel socketChannel = SocketChannel.open();
...
Posted by uNF on Fri, 14 Jan 2022 22:20:30 +0100
Getting started with basics - packet expansion
HTTP&HTTPS
HTTP: HTTP->TCPHTTPS: http - > SSL / TLS (encryption / decryption) - > TCP
1.HTTP
HyperText Transfer Protocol is an application layer protocol for distributed, cooperative and hypermedia information systems. Simply put, it is a method of publishing and receiving HTML pages, which is used to transfer information betwee ...
Posted by delxy on Thu, 13 Jan 2022 15:36:33 +0100
Nginx configuring reverse proxy
What is? Reverse proxy
The reverse proxy server determines which server provides services. The return proxy server does not provide a server. Just request forwarding. The forward proxy is as follows
Reverse proxy is as follows
Nginx The process of implementing reverse proxy
First, install two tomcat servers and put them into the ngin ...
Posted by Chris_Mc_1985 on Thu, 13 Jan 2022 01:37:33 +0100
Column | Obtain https certificate expiration time using the zabbix-agent2 custom plug-in
WeChat Public Number: Operations and Maintenance Development Story, Author: wanger
demand
For those who regularly maintain their website, they often have to deal with https certificates. Typically, an https certificate is valid for one year. Once the certificate expires, the company will lose a lot. Last year NetEase mailbox was a typical c ...
Posted by korngold on Wed, 12 Jan 2022 18:12:52 +0100
Message service imitating Taobao open platform -- server message log processing
overall design
The message log is an important basis for the normal operation and abnormal troubleshooting of the monitoring system. The log is divided into two parts. One part is the disk log, which records the specific contents of all messages received and sent. This part of the log is stored on the disk file in the form of text, which is ma ...
Posted by Alk3m1st on Wed, 12 Jan 2022 00:49:08 +0100
Analysis of token acquisition process of Spring Security Oauth2
preface
This paper mainly studies the token acquisition process of spring security oauth2. There are five ways to obtain tokens, of which the authorization mode is the most complex. Therefore, this paper studies the token acquisition based on the authorization mode. Without much nonsense, let's go to the core source code flow chart first! Tok ...
Posted by mashnote on Mon, 10 Jan 2022 15:45:00 +0100
06 simple HTTP protocol -- HTTP method to inform the server of its intention
2.5 HTTP method to inform the server of intention
In this chapter, we will learn a lot about the methods used in HTTP. First, take a look at the chart
methodexplainSupported HTTP versionsGETGet resources1.0,1.1POSTTransport entity principal1.0,1.1PUTtransfer files1.0,1.1HEADGet message header1.0,1.1DELETEDelete file1.0,1.1OPTIONSAsk for suppo ...
Posted by torsoboy on Thu, 06 Jan 2022 14:42:55 +0100
Cross domain solutions
Cross domain
The principle of cross domain is: the same domain is only when the protocol, domain name and port are the same. Otherwise, it is cross domain. Cross domain means that the browser does not allow the source of the current page to request data from another source
Homology Another concept is homology. Homology refers to the sam ...
Posted by matbennett on Wed, 05 Jan 2022 08:39:36 +0100