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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com