Adaptation method, device and computer equipment for http request message header

A technology for requesting messages and message headers, applied in the computer field, can solve problems such as format errors, no corrections, and the server cannot recognize request messages, and achieve the effect of reducing network overhead.

Active Publication Date: 2022-03-18
PING AN TECH (SHENZHEN) CO LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If there is an error in the header of the request message, such as wrong characters or wrong format, the server will not be able to recognize the request message, and then reject the request message
Among them, some errors in the header of the request message can be corrected, but the existing technology does not correct the wrong header of the request message, thereby reducing the technical scheme of sending unnecessary messages

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Adaptation method, device and computer equipment for http request message header
  • Adaptation method, device and computer equipment for http request message header
  • Adaptation method, device and computer equipment for http request message header

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0051] refer to figure 1 , the embodiment of the present application provides a method for adapting an HTTP request header, comprising the following steps:

[0052] S1. Receive an HTTP request message;

[0053] S2. According to the format of the preset HTTP request message, analyze the HTTP request message to obtain the HTTP request message header;

[0054] S3. According to the format of the preset HTTP request header, analyze the HTTP request header, and obtain the header field name and the header field value;

[0055] S4. Determine whether the header field name or the h...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present application discloses an adaptation method, device, computer equipment and storage medium of an HTTP request message header. The method includes: receiving an HTTP request message; parsing the HTTP request message to obtain the HTTP request message header; parsing the HTTP request message header; Request the message header, obtain the header field name and header field value; judge whether the header field name or header field value is correct; if the header field name or header field value is incorrect, calculate the preset replacement list The similarity between the header field name or header field value and the incorrect header field name or incorrect header field value; if the maximum value in the similarity is greater than the preset similarity threshold, the incorrect header The field name or incorrect header field value is replaced with the header field name or header field value with the highest similarity, so as to obtain the adapted HTTP request header. In this way, the incorrectly adapted request packet header is automatically corrected, reducing unnecessary network overhead.

Description

technical field [0001] The present application relates to the field of computers, in particular to an HTTP request header adaptation method, device, computer equipment and storage medium. Background technique [0002] A message is a data unit exchanged and transmitted in the network, and is the data exchanged between various systems, terminals, servers and terminals. The message contains complete data information to be sent, at least including a message header and a message body (that is, a message body). The request message is a message for sending a request to the server. The server's identification of the request message is based on the request message header. If there is an error in the header of the request message, such as wrong characters or wrong format, the server will not be able to recognize the request message and reject the request message. Among them, some errors in the header of the request message can be corrected, but the prior art does not have a technic...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04L67/02H04L69/22H04L69/06
CPCH04L65/40
Inventor 黄小军
Owner PING AN TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products