Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method for analyzing HTTP chunked code data

A technology for encoding data and data, applied in the field of parsing HTTP chunked encoded data, it can solve the problems of high memory usage and high processing delay, and achieve the effects of reducing memory usage, processing delay, and memory copying

Active Publication Date: 2014-07-16
ZHENGZHOU SEANET TECH CO LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to overcome the existing HTTP chunked encoding off-line parsing method, which has the defects of large memory usage and high processing delay, thereby providing a method capable of quickly parsing HTTP chunked encoding

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
  • Method for analyzing HTTP chunked code data
  • Method for analyzing HTTP chunked code data
  • Method for analyzing HTTP chunked code data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] Before describing the present invention in detail, a unified description will be given to the related concepts involved in the present invention.

[0035] chunk-size field: It is the same as the chunk-size field described in RFC2616, and also includes carriage return and line feed characters (CRLF) before and after this field.

[0036] chunk-data field: the same as the chunk-data field described in RFC2616.

[0037] The present invention will be further described now in conjunction with accompanying drawing.

[0038] The method of the present invention can realize the fast parsing of HTTP chunked encoded data, refer to figure 1 , the method of the present invention comprises the following steps:

[0039] Step 1), locate the starting position of any chunk in the received HTTP message;

[0040] Step 2), predicting the length of the chunk-size field in the chunk according to the current parsing status; wherein, the parsing status refers to the degree of completion of th...

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 invention relates to a method for analyzing HTTP chunked code data. The method for analyzing the HTTP chunked code data comprises the steps that the starting position of any chunk in a received HTTP message is located; according to a current analysis state, the length of a chunk-size field in the chunk is predicated; according to the predicated length obtained in the last step, chunk-size data with the corresponding length are read and cached, all the current cached chunk-size data are analyzed, and according to an analysis result, whether the whole chunk-size field is read or not is judged, if yes, the next step is executed, and if not, based on the analysis state of all the current cached chunk-size data, the step of length predication is executed again; according to the value of the whole chunk-size field, data in chunk-data are read.

Description

technical field [0001] The invention relates to the field of network communication, in particular to a method for analyzing HTTP chunked coded data. Background technique [0002] The message format of the HTTP protocol includes a message header and a message body. The message header part defines some attribute fields, which provide important information to the receiver of the message. Among them, the Content-Length attribute field indicates the length of the message body, which is beneficial to the programming realization of the data receiving process. However, for some dynamically generated data, the message generator may not be able to know the total length of the message body immediately, so the value of the Content-Length field cannot be calculated in time. Using chunked encoding can avoid this problem. Chunked is a transmission encoding method of the HTTP / 1.1 protocol. This transmission encoding method divides the data to be transmitted into multiple parts, and the m...

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
IPC IPC(8): H04L29/06H04L1/00
Inventor 陈君李明哲李军陈晓
Owner ZHENGZHOU SEANET TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More