HTTP request operation of ElasticSearch

Mapping operation The mapping in the index library is similar to the table structure in the database. To create a database table, you need to set the field name, type, length, constraint, etc; The same is true for the index library. You need to know what fields are under this type and what constraint information each field has. This is ...

Posted by Gordonator on Thu, 02 Dec 2021 19:00:58 -0800

Part II network programming -- HTTP application programming

We are most familiar with HTTP when learning network programming. Well, let's start with HTTP. First of all, we must understand the basic principles and actions of HTTP. Mastering the working principle of HTTP to a certain extent is very helpful for our following learning.1: Working mode    ① : establish a reliable TCP connection be ...

Posted by rowantrimmer on Tue, 30 Nov 2021 12:44:09 -0800

Understanding of content type of POST submitted data;

Understanding of content type of POST submitted data;     Content type refers to the content encoding type when http/https sends information to the server. contentType is used to indicate the type of data stream sent. The server uses a specific parsing method to obtain the data in the data stream according to the encoding type. In ne ...

Posted by davelr459 on Tue, 30 Nov 2021 03:14:37 -0800

Crawler: introduction to basic parsing library urllib

catalogue 1. Send request     data parameter   timeout parameter Other parameters     Comparison between urlopen and Request Use Request for flexible configuration Advanced Usage Password verification Use of agents Cookie processing In Python 2, there are urllib and urllib libraries to send requests. In ...

Posted by feri_soft on Sat, 27 Nov 2021 23:32:30 -0800

11 v-if better color, ternary operator

scene The template uses conditional judgment to control the style of the page, which is the most common application. Vue provides two basic methods, one is the ternary operator we have talked about, and the other is v-if. Ternary operators control template styles Let's first look at the use of ternary operators to control the style of te ...

Posted by romano2717 on Fri, 26 Nov 2021 01:49:18 -0800

An HTTPS to HTTP Bug. They endured it for 2 years. They forgive me for being unable to accept it. They changed overtime

Today's article tells you a story and process of tracking down bugs. I have always believed that if something goes wrong, there must be demons, and so is the Bug in the program. I hope that through this Bug troubleshooting story, we can not only learn a series of knowledge points, but also learn how to solve problems and how to do things more ...

Posted by evanesq on Tue, 23 Nov 2021 15:30:15 -0800

Implementation of NodeRed base64 coding

  Cause: HTTP API usage of EMQ X Basic authentication (opens new window) Using the HTTP API of EMQ X Basic authentication (opens new window) Method, id and password must be filled in AppID and AppSecret respectively. The default AppID and AppSecret are admin/public. You can modify and add AppID/AppSecret by selecting "management&quot ...

Posted by kwong on Sat, 20 Nov 2021 13:51:31 -0800

In nodejs, HTTP protocol and WS protocol reuse the same port

00. Preface Recently, when I was writing a web page, I needed the back-end websocket service. Because I didn't need too complex functions, the back-end chose to use the nodejs websocket module of nodejs. During the development process, it was found that http service was needed, but nodejs websocket could not implement http service, so it began ...

Posted by dev99 on Sat, 20 Nov 2021 09:40:02 -0800

Use of Android retro fit

Use of Android retro fit 1, Overview 1. What is retrofit Retrofit is a popular network request framework. It can be understood as an enhanced version of okhttp. Okhttp is encapsulated at the bottom. To be exact, retrofit is the encapsulation of a RESTful http network request framework. Because the network request is essentially completed ...

Posted by kporter.porter on Sat, 20 Nov 2021 07:48:38 -0800

C# implement WebSocket server: (02) message frame analysis and code implementation

Earlier, we introduced the handshake of WebSocket: C # implements WebSocket server: (01) handshake After the handshake is completed, both the client and the server can send and receive messages. WebSocket messages are sent and received in frames. 0. WebSocket frame Frame type Op There are six common frame types: valuetypeexplain0x00Continua ...

Posted by suttercain on Sat, 20 Nov 2021 02:07:45 -0800