How to get the get and post parameters in the Express framework
get parameters
Express is a web application development framework based on node platform. It provides a series of powerful features to help you create various web applications. It enables us to create website applications with more concise code.
Before learning how Express gets the get request, let's take a look at the Node's native get r ...
Added by bala_god on Fri, 17 Dec 2021 03:15:25 +0200
HttpClient tools, 2021 Tencent Java advanced interview questions and answers
/**
* Send get request; With request parameters
*
* @param url Request address
* @param params Request parameter set
* @return
* @throws Exception
*/
public static HttpClientResult doGet(String url, Map<String, String> params) throws Exception {
return doGet(url, null, params);
}
/**
* Send get request; With reques ...
Added by krs10_s on Thu, 16 Dec 2021 07:13:17 +0200
Implementation of front and back end separate single sign on based on CAS
preface
SSO (single single on) single sign on is an architecture and an idea.
CAS (Center Authentication Server) center authorization service is an open source protocol and a specific implementation of SSO. Of course, SSO has other implementations, such as the scenario of Cookier with the same domain name.
Auth is an authorization protoc ...
Added by jonzy on Tue, 14 Dec 2021 23:19:57 +0200
[OpenYurt deep analysis, Java programming tutorial video
To implement a reverse proxy for caching data, the first idea is to start from response The data is read from the body, and then returned to the requesting client and the local Cache module respectively. The pseudo code is as follows:
func HandleResponse(rw http.ResponseWriter, resp *http.Response) {
bodyBytes, _ := ioutil.ReadAll(re ...
Added by th3void on Tue, 14 Dec 2021 21:15:32 +0200
linux Server HTTP protocol content, implementation program code
http protocol
1. Introduction to http
http protocol is called hypertext transfer protocol.
Hypertext: not only text, but also pictures, audio, video, etc.Transmission: it is based on TCP/IP. Please transmit with a response mode.Protocol: connectionless and stateless application layer protocol.
2. Working principle
http protocol works on b/ ...
Added by Loafin on Thu, 09 Dec 2021 13:20:48 +0200
nginx agent configuration
Simplest reverse proxy configuration
upstream my_server {
server 10.0.0.2:8080;
keepalive 2000;
}
server {
listen 80;
server_name 10.0.0.1; ...
Added by kanenas.net on Thu, 09 Dec 2021 02:39:47 +0200
Write an HTTP forward proxy
concept
First, let's understand the related concepts of HTTP proxy. Generally speaking, there are two types of HTTP proxy, one is forward proxy and the other is reverse proxy. Although they are all proxies, there are still differences.
The VPN we usually use is the forward proxy. We specify a server, and then connect to the server through the ...
Added by ununium on Tue, 07 Dec 2021 08:06:39 +0200
http cache questions that may be asked during the interview
After several school recruitment interviews, I found that http cache has been used as an interview question. When I first met this question, I was confused, so I summarized the following contents
In any front-end project, it is common to access the server to obtain data. However, if the same data is repeatedly requested more than once, the red ...
Added by adrianl on Sat, 04 Dec 2021 01:34:23 +0200
Android language switching -- Taking English as an example
Recently, I am working on an app for memorizing words as my graduation project. I want to design a function to switch the language from English in the app, and record the effect and steps of this implementation.
Realization effect
Chinese mode
English mode
PS: please don't make complaints about my garbage.
Implementation principl ...
Added by texerasmo on Sat, 27 Nov 2021 05:38:19 +0200
What is a Cookie?
1, What is a Cookie?HTTP Cookie (also known as Web Cookie or browser Cookie) is a small piece of data sent by the server to the user's browser and saved locally. It will be carried and sent to the server the next time the browser sends a request to the same server. Usage scenario:Session state management (such as user login status, shopping car ...
Added by teckn1caLity on Thu, 25 Nov 2021 23:08:55 +0200