Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for decoding request information

A technology for requesting information and decoding, applied in the field of network applications, can solve the problems of low flexibility, difficult to decode correctly, garbled characters, etc., to achieve the effect of improving flexibility, avoiding garbled characters, and ensuring correctness

Active Publication Date: 2011-12-14
SHENZHEN KINGDEE MIDDLEWARE
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Due to the complexity of the client program where the browser is located, the browser often cannot use the same encoding method to encode the HTTP request information, so there are often multiple encoding methods for the HTTP request information received by the server. In the prior art, the server Only one decoding method is used to decode the received HTTP request information, which is not only inflexible, but also difficult to decode correctly, resulting in garbled characters

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 and device for decoding request information
  • Method and device for decoding request information
  • Method and device for decoding request information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] See figure 1 , The embodiment of the present invention provides a method for decoding request information, and the specific process of the method is as follows:

[0029] Step 101: Receive request information, the request information including request path, query string and form content;

[0030] Step 102: Obtain the encoding method of the request path, decode the request path according to the encoding method of the request path, and obtain the query string and form content respectively according to the decoded request path;

[0031] Step 103: Obtain the encoding method of the query string and the form content respectively, and decode the query string and the form content according to the encoding method of the query string and the form content.

[0032] The method provided by the embodiment of the present invention obtains the request path of the request information, the query string, and the encoding method of each part of the form content, and decodes the request information a...

Embodiment 2

[0034] The embodiment of the present invention provides a method for decoding request information. The method obtains the encoding method of the request information and decodes it according to the encoding method of the request information, so as to correctly decode the request information and avoid generating garbled codes. . For ease of description, the embodiment of the present invention takes the server receiving the Hyper Text Transfer Protocol (HTTP) request information sent by the browser and decoding the HTTP request information as an example to describe the method provided in the embodiment of the present invention in detail. Description. See figure 2 , The method flow is as follows:

[0035] Step 201: Receive HTTP request information sent by the browser;

[0036] With respect to this step, after the browser and the server establish a connection, the server receiving the HTTP request information sent by the browser can be implemented through the prior art, and the embod...

Embodiment 3

[0057] See image 3 An embodiment of the present invention provides a device for decoding request information, the device including:

[0058] The receiving module 301 is used to receive request information, the request information includes request path, query string and form content;

[0059] The first obtaining module 302 is configured to obtain the encoding mode of the request path;

[0060] The first decoding module 303 is configured to decode the request path according to the encoding mode of the request path acquired by the first acquiring module 302;

[0061] The second obtaining module 304 is configured to obtain the query string and form content respectively according to the request path decoded by the first decoding module 303;

[0062] The third acquiring module 305 is configured to respectively acquire the query string and the encoding method of the form content acquired by the second acquiring module 304;

[0063] The second decoding module 306 is configured to decode the que...

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 discloses a method and device for decoding request information, belonging to the field of network application. The method comprises the following steps of: receiving request information; respectively acquiring encoding modes of a request path, an inquiry string and form content of the request information; and decoding the request information according to the acquired encoding modes. The device comprises a receiving module, a first acquisition module, a first decoding module, a second acquisition module, a third acquisition module and a second decoding module. By respectively acquiring the encoding modes of the request path, the inquiry string and the form content of the request information, the request information is decoded according to the acquired encoding modes, therefore different decoding modes can be determined according to different encoding modes, and the decoding flexibility is improved; in addition, because the request information is decoded according to the encoding modes of the request information, the decoding correctness can be ensured, and messy codes are avoided.

Description

Technical field [0001] The present invention relates to the field of network applications, in particular to a method and device for decoding request information. Background technique [0002] In a web application, the browser obtains the web page content required by the user by sending Hyper Text Transfer Protocol (HTTP) request information to the server, and the HTTP request information is sent to the server after the browser is pre-encoded . After the server receives the HTTP request information, it needs to decode it to obtain the content requested by the browser. [0003] In the prior art, the server has preset one or more decoding methods, and when the server receives the HTTP request information, only one preset decoding method is used to decode the received HTTP request information. [0004] In the process of implementing the present invention, the inventor found that the prior art has at least the following problems: [0005] Due to the complexity of the client program where...

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 Applications(China)
IPC IPC(8): H04L29/06
Inventor 吴超
Owner SHENZHEN KINGDEE MIDDLEWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products