Nothing Special   »   [go: up one dir, main page]

CN108696526B - Method, device, equipment and storage medium for analyzing network request response data - Google Patents

Method, device, equipment and storage medium for analyzing network request response data Download PDF

Info

Publication number
CN108696526B
CN108696526B CN201810503379.6A CN201810503379A CN108696526B CN 108696526 B CN108696526 B CN 108696526B CN 201810503379 A CN201810503379 A CN 201810503379A CN 108696526 B CN108696526 B CN 108696526B
Authority
CN
China
Prior art keywords
network request
response data
configuration file
analysis
analysis configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810503379.6A
Other languages
Chinese (zh)
Other versions
CN108696526A (en
Inventor
智瑞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810503379.6A priority Critical patent/CN108696526B/en
Publication of CN108696526A publication Critical patent/CN108696526A/en
Application granted granted Critical
Publication of CN108696526B publication Critical patent/CN108696526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0435Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method for analyzing network request response data, which comprises the following steps: receiving a network request sent by an application program; under the condition that the type of the network request is changed, setting an analysis configuration file of response data corresponding to the network request according to the type of the network request; sending the response data to the application. By implementing the scheme, the server can dynamically generate the analysis configuration file of the response data of the network request under the condition that the type of the network request changes, and the application program dynamically updates the analysis function of the response data through the analysis configuration file, so that the updating efficiency of the analysis function of the response data is greatly improved, and the update of the analysis function of the response data through the reissuing of a new version of the application program is effectively avoided.

Description

Method, device, equipment and storage medium for analyzing network request response data
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for analyzing network request response data.
Background
With the rapid development of the internet, when the type of a network request sent by an application program in a terminal to a server changes, a response data analysis function preset in the application program cannot analyze response data corresponding to the network request fed back by the server, so that an error occurs in the application program. Currently, it is often necessary to set up a new response data parsing function in a new application version for correctly parsing response data. However, when a new application version is released, a terminal system provider (for example, an iOS system) is required to perform auditing, and a user can download the new application version only when the auditing is passed, so that the release period of the new application version is too long; meanwhile, a new software version can be updated only by downloading the software version by a user, otherwise, the function of the application program cannot be updated, so that the updating efficiency of a response data analysis function in the application program is low, and the steps are complicated.
Disclosure of Invention
The invention provides a method, a device and equipment for analyzing network request response data and a computer readable storage medium, which are used for solving the problem that the response data of a network request cannot be analyzed correctly when the type of the network request in an application program is changed in the prior art.
The technical scheme adopted by the invention is to provide an analysis method of network request response data, which comprises the following steps:
receiving a network request sent by a terminal;
under the condition that the type of the network request is changed, setting an analysis configuration file of response data corresponding to the network request according to the type of the network request;
and sending the response data to the terminal.
Optionally, after the setting of the parsing configuration file of the response data corresponding to the network request, the method further includes:
setting updating configuration information in the analysis configuration file;
wherein the updating the configuration information comprises: the version information of the analysis configuration file and the storage address information of the analysis configuration file.
Optionally, after the setting of the parsing configuration file of the response data corresponding to the network request, the method further includes:
and encrypting the analysis configuration file, and setting signature information in the encrypted analysis configuration file.
The invention also provides a server, which comprises a processor and a memory;
the processor is used for executing the analysis program of the network request response data stored in the memory so as to realize the steps of the analysis method of the network request response data.
The invention also provides a method for analyzing the network request response data, which comprises the following steps:
sending a network request to a server through a preset network request channel;
when the server is detected to have an analysis configuration file of response data corresponding to the network request, downloading the analysis configuration file;
updating a response data analysis function preset in the network request channel through the analysis configuration file;
and analyzing the response data received by the network request channel through the updated response data analysis function to acquire response information.
Optionally, the generation manner of the network request channel includes:
packaging a network request protocol through a preset native function to generate a network request channel;
and setting the preset response data analysis function in the network request channel so as to analyze the response data received by the network request channel through the preset response data analysis function.
Optionally, before the updating, by the parsing configuration file, the response data parsing function preset in the network request channel, the method further includes:
acquiring the updating configuration information in the analysis configuration file; wherein the updating the configuration information comprises: the version information of the analysis configuration file and the storage address information of the analysis configuration file;
judging whether the version information of the analysis configuration file is matched with the version information of the preset response data analysis function;
and under the condition that the version information of the analysis configuration file is matched with the version information of the preset response data analysis function, storing the analysis configuration file according to the storage address information of the analysis configuration file.
Optionally, before the updating, by the parsing configuration file, the response data parsing function preset in the network request channel, the method further includes:
judging whether the analysis configuration file is legal or not based on the signature information carried by the analysis configuration file;
and under the condition that the analysis configuration file is legal, decrypting the analysis configuration file.
Optionally, after the response data received by the network request channel is analyzed through the updated response data analysis function to obtain response information, the method further includes:
and outputting the response information through a preset Application Programming Interface (API).
The invention also provides a terminal, which comprises a processor and a memory;
the processor is used for executing the analysis program of the network request response data stored in the memory so as to realize the steps of the analysis method of the network request response data.
The invention also provides a device for analyzing the network request response data, which comprises:
the receiving module is used for receiving a network request sent by a terminal;
the setting module is used for setting an analysis configuration file of response data corresponding to the network request according to the type of the network request under the condition that the type of the network request is changed;
and the feedback module is used for sending the response data to the terminal.
Optionally, the apparatus further comprises:
the updating configuration module is used for setting updating configuration information in an analysis configuration file after the analysis configuration file of the response data corresponding to the network request is set;
wherein the updating the configuration information comprises: the version information of the analysis configuration file and the storage address information of the analysis configuration file.
Optionally, the apparatus further comprises:
and the encryption module is used for encrypting the analysis configuration file after the analysis configuration file of the response data corresponding to the network request is set, and setting signature information in the encrypted analysis configuration file.
The present invention also provides an apparatus for analyzing network request response data, comprising:
the sending module is used for sending a network request to the server through a preset network request channel;
the downloading module is used for downloading the analysis configuration file when detecting that the analysis configuration file of the response data corresponding to the network request exists in the server;
the updating module is used for updating a response data analysis function preset in the network request channel through the analysis configuration file;
and the analysis module is used for analyzing the response data received by the network request channel through the updated response data analysis function to acquire response information.
Optionally, the generation manner of the network request channel includes:
packaging a network request protocol through a preset native function to generate a network request channel;
and setting the preset response data analysis function in the network request channel so as to analyze the response data received by the network request channel through the preset response data analysis function.
Optionally, the apparatus further comprises:
an obtaining module, configured to obtain update configuration information in the parsing configuration file before updating, through the parsing configuration file, a response data parsing function preset in the network request channel; wherein the updating the configuration information comprises: the version information of the analysis configuration file and the storage address information of the analysis configuration file;
the judging module is used for judging whether the version information of the analysis configuration file is matched with the version information of the preset response data analysis function;
and the storage module is used for storing the analysis configuration file according to the storage address information of the analysis configuration file under the condition that the version information of the analysis configuration file is matched with the version information of the preset response data analysis function.
Optionally, the apparatus further comprises:
the security module is used for judging whether the analysis configuration file is legal or not based on signature information carried by the analysis configuration file before the analysis configuration file updates a response data analysis function preset in the network request channel;
and the decryption module is used for decrypting the analysis configuration file under the condition that the analysis configuration file is legal.
Optionally, after the response data received by the network request channel is analyzed through the updated response data analysis function to obtain response information, the apparatus further includes:
and the output module is used for analyzing the response data received by the network request channel through the updated response data analysis function and outputting the response information through a preset Application Programming Interface (API) after the response information is acquired.
The present invention also provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the above-described method for parsing network request response data.
By adopting the technical scheme, the invention at least has the following advantages:
according to the method, the device and the equipment for analyzing the network request response data and the computer readable storage medium, the server can dynamically generate the analysis configuration file of the network request response data under the condition that the type of the network request changes, and the application program dynamically updates the analysis function of the response data through the analysis configuration file, so that the updating efficiency of the analysis function of the response data is greatly improved, and the update of the analysis function of the response data through the reissuing of a new version of the application program is effectively avoided.
Drawings
Fig. 1 is a flowchart of a method for parsing network request response data according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for parsing network request response data according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for parsing network request response data according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for parsing network request response data according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for parsing network request response data according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for parsing network request response data according to a sixth embodiment of the present invention;
fig. 7 is a flowchart of a method for parsing network request response data according to a seventh embodiment of the present invention;
fig. 8 is a flowchart of a method for parsing network request response data according to an eighth embodiment of the present invention;
fig. 9 is a flowchart of a method for parsing network request response data according to a ninth embodiment of the present invention;
fig. 10 is a flowchart of a method for parsing network request response data according to a tenth embodiment of the present invention;
fig. 11 is a flowchart of a method for parsing network request response data according to an eleventh embodiment of the present invention;
fig. 12 is a schematic structural diagram of a network request response data parsing apparatus according to a twelfth and thirteenth embodiments of the present invention;
fig. 13 is a schematic structural diagram of an apparatus for parsing network request response data according to a fourteenth embodiment of the present invention;
fig. 14 is a schematic structural diagram of an apparatus for parsing network request response data according to a fifteenth embodiment of the present invention;
fig. 15 is a schematic structural diagram of an apparatus for parsing network request response data according to a sixteenth embodiment of the present invention;
fig. 16 is a schematic diagram of a server according to a seventeenth embodiment of the present invention;
fig. 17 is a schematic diagram illustrating a terminal assembling structure according to an eighteenth embodiment of the present invention.
Detailed Description
A first embodiment of the present invention provides a method for analyzing network request response data, which is applied to a server, and as shown in fig. 1, the method includes the following specific steps:
step S101, receiving a network request sent by a terminal.
In this embodiment, the type of the network request sent by the terminal is not specifically limited.
Step S102, under the condition that the type of the network request is changed, setting an analysis configuration file of response data corresponding to the network request according to the type of the network request; and updating the analysis function of the response data corresponding to the network request by the terminal based on the downloaded analysis configuration file.
Under the condition that the type of the network request is changed, the analysis configuration file of the response data corresponding to the network request is set according to the type of the network request, so that the terminal can update the analysis function of the response data corresponding to the network request through the downloaded analysis configuration file, and the correct analysis of the response data fed back by the terminal for the type of the newly added network request is realized, so that the analysis information of the network request is correctly obtained. The terminal can send different types of network requests to the server and can correctly analyze the response data of the network requests, so that the situation that the terminal needs to contain the application program version of the analysis function of new response data for a user to download and upgrade under the condition that the terminal requests different types of networks is avoided, and the updating efficiency of the analysis function of the response data is greatly improved.
Step S103, sending the response data of the network request to the terminal.
The method for analyzing network request response data according to the first embodiment of the present invention can dynamically generate the analysis configuration file of the response data of the network request by the server when the type of the network request changes, thereby greatly improving the update efficiency of the analysis function of the response data, and effectively avoiding updating the analysis function of the response data by reissuing a new version of the application program.
A second embodiment of the present invention provides a method for analyzing network request response data, which is applied to a server, and as shown in fig. 2, the method includes the following specific steps:
step S201, receiving a network request sent by a terminal.
In this embodiment, the type of the network request sent by the terminal is not specifically limited.
Step S202, under the condition that the type of the network request is changed, setting an analysis configuration file of response data corresponding to the network request according to the type of the network request; and updating the analysis function of the response data corresponding to the network request by the terminal based on the downloaded analysis configuration file.
Under the condition that the type of the network request is changed, the analysis configuration file of the response data corresponding to the network request is set according to the type of the network request, so that the terminal can update the analysis function of the response data corresponding to the network request through the downloaded analysis configuration file, and the correct analysis of the response data fed back by the terminal for the type of the newly added network request is realized, so that the analysis information of the network request is correctly obtained. The terminal can send different types of network requests to the server and can correctly analyze the response data of the network requests, so that the situation that the terminal needs to contain the application program version of the analysis function of new response data for a user to download and upgrade under the condition that the terminal requests different types of networks is avoided, and the updating efficiency of the analysis function of the response data is greatly improved.
Step S203, setting updating configuration information in the analysis configuration file; and the terminal updates the network request channel by analyzing a preset response data analysis function in the configuration file network request channel based on the updating configuration information.
Wherein updating the configuration information comprises: and analyzing the version information of the configuration file and analyzing the storage address information of the configuration file.
Step S204, response data of the network request is sent to the terminal.
The method for analyzing network request response data according to the second embodiment of the present invention can dynamically generate the analysis configuration file of the response data of the network request by the server when the type of the network request changes, thereby greatly improving the update efficiency of the analysis function of the response data, and effectively avoiding updating the analysis function of the response data by reissuing a new version of the application program.
A third embodiment of the present invention provides a method for analyzing network request response data, which is applied to a server, and as shown in fig. 3, the method includes the following specific steps:
step S301, receiving a network request sent by the terminal.
In this embodiment, the type of the network request sent by the terminal is not specifically limited.
Step S302, under the condition that the type of the network request is changed, setting an analysis configuration file of response data corresponding to the network request according to the type of the network request; and updating the analysis function of the response data corresponding to the network request by the terminal based on the downloaded analysis configuration file.
Under the condition that the type of the network request is changed, the analysis configuration file of the response data corresponding to the network request is set according to the type of the network request, so that the terminal can update the analysis function of the response data corresponding to the network request through the downloaded analysis configuration file, and the correct analysis of the response data fed back by the terminal for the type of the newly added network request is realized, so that the analysis information of the network request is correctly obtained. The terminal can send different types of network requests to the server and can correctly analyze the response data of the network requests, so that the situation that the terminal needs to contain the application program version of the analysis function of new response data for a user to download and upgrade under the condition that the terminal requests different types of networks is avoided, and the updating efficiency of the analysis function of the response data is greatly improved.
Step S303, setting updating configuration information in the analysis configuration file; and the terminal updates the network request channel by analyzing a preset response data analysis function in the configuration file network request channel based on the updating configuration information.
Wherein updating the configuration information comprises: and analyzing the version information of the configuration file and analyzing the storage address information of the configuration file.
Step S304, the analysis configuration file is encrypted, and signature information is set in the encrypted analysis configuration file.
In this embodiment, the manner of encrypting the parsing configuration file is not particularly limited.
In this embodiment, the manner of setting the signature information in the encrypted parsing configuration file is not particularly limited.
For example, the parsing configuration file is encrypted by AES (Advanced Encryption Standard), and MD5(Message Digest Algorithm MD5, fifth edition) code signature information is set in the encrypted parsing configuration file.
By encrypting the analysis configuration file and setting signature information in the encrypted analysis configuration file, the security and the integrity of the analysis configuration file are effectively improved, and the risk that the analysis configuration file is maliciously changed is avoided.
Step S305, sending the response data of the network request to the terminal.
The method for analyzing network request response data according to the third embodiment of the present invention can dynamically generate the analysis configuration file of the response data of the network request by the server when the type of the network request changes, thereby greatly improving the update efficiency of the analysis function of the response data, and effectively avoiding updating the analysis function of the response data by reissuing a new version of the application; by encrypting the analysis configuration file and setting signature information in the encrypted analysis configuration file, the security and the integrity of the analysis configuration file are effectively improved, and the risk that the analysis configuration file is maliciously changed is avoided.
In a fourth embodiment of the present invention, an apparatus for parsing network request response data is disposed in a server, and as shown in fig. 4, the apparatus includes the following components:
a receiving module 101, configured to receive a network request sent by a terminal.
In this embodiment, the type of the network request sent by the terminal is not specifically limited.
A setting module 102, configured to set, when the type of the network request changes, an analysis configuration file of response data corresponding to the network request according to the type of the network request; and updating the analysis function of the response data corresponding to the network request by the terminal based on the downloaded analysis configuration file.
Under the condition that the type of the network request is changed, the analysis configuration file of the response data corresponding to the network request is set according to the type of the network request, so that the terminal can update the analysis function of the response data corresponding to the network request through the downloaded analysis configuration file, and the correct analysis of the response data fed back by the terminal for the type of the newly added network request is realized, so that the analysis information of the network request is correctly obtained. The terminal can send different types of network requests to the server and can correctly analyze the response data of the network requests, so that the situation that the terminal needs to contain the application program version of the analysis function of new response data for a user to download and upgrade under the condition that the terminal requests different types of networks is avoided, and the updating efficiency of the analysis function of the response data is greatly improved.
And the feedback module 103 is configured to send response data of the network request to the terminal.
The device for analyzing network request response data according to the fourth embodiment of the present invention can dynamically generate the analysis configuration file of the response data of the network request by the server when the type of the network request changes, thereby greatly improving the update efficiency of the analysis function of the response data, and effectively avoiding updating the analysis function of the response data by reissuing a new version of the application program.
In a fifth embodiment of the present invention, an apparatus for parsing network request response data is disposed in a server, and as shown in fig. 5, the apparatus includes the following components:
a receiving module 101, configured to receive a network request sent by a terminal.
In this embodiment, the type of the network request sent by the terminal is not specifically limited.
A setting module 102, configured to set, when the type of the network request changes, an analysis configuration file of response data corresponding to the network request according to the type of the network request; and updating the analysis function of the response data corresponding to the network request by the terminal based on the downloaded analysis configuration file.
Under the condition that the type of the network request is changed, the analysis configuration file of the response data corresponding to the network request is set according to the type of the network request, so that the terminal can update the analysis function of the response data corresponding to the network request through the downloaded analysis configuration file, and the correct analysis of the response data fed back by the terminal for the type of the newly added network request is realized, so that the analysis information of the network request is correctly obtained. The terminal can send different types of network requests to the server and can correctly analyze the response data of the network requests, so that the situation that the terminal needs to contain the application program version of the analysis function of new response data for a user to download and upgrade under the condition that the terminal requests different types of networks is avoided, and the updating efficiency of the analysis function of the response data is greatly improved.
An update configuration module 104, configured to set update configuration information in the parsing configuration file; and the terminal updates the network request channel by analyzing a preset response data analysis function in the configuration file network request channel based on the updating configuration information.
Wherein updating the configuration information comprises: and analyzing the version information of the configuration file and analyzing the storage address information of the configuration file.
And the feedback module 103 is configured to send response data of the network request to the terminal.
The apparatus for parsing network request response data according to the fifth embodiment of the present invention can dynamically generate, by the server, the parsing configuration file of the response data of the network request when the type of the network request changes, thereby greatly improving the updating efficiency of the parsing function of the response data, and effectively avoiding updating the parsing function of the response data by reissuing a new version of the application program.
In a sixth embodiment of the present invention, an apparatus for analyzing network request response data is arranged in a server, and as shown in fig. 6, the apparatus includes the following components:
a receiving module 101, configured to receive a network request sent by a terminal.
In this embodiment, the type of the network request sent by the terminal is not specifically limited.
A setting module 102, configured to set, when the type of the network request changes, an analysis configuration file of response data corresponding to the network request according to the type of the network request; and updating the analysis function of the response data corresponding to the network request by the terminal based on the downloaded analysis configuration file.
Under the condition that the type of the network request is changed, the analysis configuration file of the response data corresponding to the network request is set according to the type of the network request, so that the terminal can update the analysis function of the response data corresponding to the network request through the downloaded analysis configuration file, and the correct analysis of the response data fed back by the terminal for the type of the newly added network request is realized, so that the analysis information of the network request is correctly obtained. The terminal can send different types of network requests to the server and can correctly analyze the response data of the network requests, so that the situation that the terminal needs to contain the application program version of the analysis function of new response data for a user to download and upgrade under the condition that the terminal requests different types of networks is avoided, and the updating efficiency of the analysis function of the response data is greatly improved.
An update configuration module 104, configured to set update configuration information in the parsing configuration file; and the terminal updates the network request channel by analyzing a preset response data analysis function in the configuration file network request channel based on the updating configuration information.
Wherein updating the configuration information comprises: and analyzing the version information of the configuration file and analyzing the storage address information of the configuration file.
And the encryption module 105 is configured to encrypt the parsing configuration file, and set signature information in the encrypted parsing configuration file.
In this embodiment, the manner of encrypting the parsing configuration file is not particularly limited.
In this embodiment, the manner of setting the signature information in the encrypted parsing configuration file is not particularly limited.
For example, the parsing configuration file is encrypted by AES (Advanced Encryption Standard), and MD5(Message Digest Algorithm MD5, fifth edition) code signature information is set in the encrypted parsing configuration file.
By encrypting the analysis configuration file and setting signature information in the encrypted analysis configuration file, the security and the integrity of the analysis configuration file are effectively improved, and the risk that the analysis configuration file is maliciously changed is avoided.
And the feedback module 103 is configured to send response data of the network request to the terminal.
The device for analyzing network request response data according to the sixth embodiment of the present invention can dynamically generate the analysis configuration file of the response data of the network request by the server when the type of the network request changes, thereby greatly improving the update efficiency of the analysis function of the response data, and effectively avoiding updating the analysis function of the response data by reissuing a new version of the application; by encrypting the analysis configuration file and setting signature information in the encrypted analysis configuration file, the security and the integrity of the analysis configuration file are effectively improved, and the risk that the analysis configuration file is maliciously changed is avoided.
A seventh embodiment of the present invention provides a method for analyzing network request response data, which is applied to a terminal, and as shown in fig. 7, the method includes the following specific steps:
step S701, sending a network request to a server through a preset network request channel.
In this embodiment, the generation manner of the network request channel is not specifically limited, and the network request channel may be generated based on a network request protocol (e.g., a network request protocol such as GET and/or POST).
Step S702, when it is detected that an analysis configuration file of response data corresponding to the network request exists in the server, the analysis configuration file is downloaded.
Optionally, step S702 includes:
and when the server is detected to have the analysis configuration file of the response data corresponding to the network request, downloading the analysis configuration file corresponding to the application program version sending the network request.
Step S703, updating the preset response data parsing function in the network request channel by parsing the configuration file.
Optionally, step S703 includes:
acquiring an update response data analysis function in an analysis configuration file;
and setting the updated response data analysis function as a preset response data analysis function in the network request channel.
Step S704, the response data received by the network request channel is analyzed through the updated response data analysis function, and the response information is obtained.
The method for analyzing network request response data according to the seventh embodiment of the present invention can dynamically generate the analysis configuration file of the response data of the network request by the terminal download server when the type of the network request changes, and dynamically update the analysis function of the response data by using the analysis configuration file, thereby greatly improving the update efficiency of the analysis function of the response data, and effectively avoiding updating the analysis function of the response data by reissuing a new version of the application program.
An eighth embodiment of the present invention provides a method for analyzing network request response data, which is applied to a terminal, and as shown in fig. 8, the method includes the following specific steps:
step S801, sending a network request to a server through a preset network request channel.
The generation method of the network request channel includes but is not limited to:
packaging a network request protocol through a preset native function to generate a network request channel;
and setting a preset response data analysis function in the network request channel so as to analyze the response data received by the network request channel through the preset response data analysis function.
For example: the GET and POST network request protocols are encapsulated through a native function preset by a mobile operating system iOS of apple company to generate a network request channel;
and setting a preset response data analysis function in the network request channel so as to analyze the response data received by the network request channel through the preset response data analysis function.
Step S802, when detecting that the server has the analysis configuration file of the response data corresponding to the network request, downloading the analysis configuration file.
Optionally, step S802 includes:
and when the server is detected to have the analysis configuration file of the response data corresponding to the network request, downloading the analysis configuration file corresponding to the application program version sending the network request.
Step S803, updating the preset response data parsing function in the network request channel by parsing the configuration file.
Optionally, step S803 includes:
acquiring an update response data analysis function in an analysis configuration file;
and setting the updated response data analysis function as a preset response data analysis function in the network request channel.
Step S804, the response data received by the network request channel is analyzed through the updated response data analysis function, and the response information is obtained.
The method for analyzing network request response data according to the eighth embodiment of the present invention can dynamically generate the analysis configuration file of the response data of the network request by the terminal download server when the type of the network request changes, and dynamically update the analysis function of the response data by using the analysis configuration file, thereby greatly improving the update efficiency of the analysis function of the response data, and effectively avoiding updating the analysis function of the response data by reissuing a new version of the application program.
A ninth embodiment of the present invention provides a method for analyzing network request response data, which is applied to a terminal, and as shown in fig. 9, the method includes the following specific steps:
step S901, sending a network request to a server through a preset network request channel.
In this embodiment, the generation manner of the network request channel is not specifically limited, and the network request channel may be generated based on a network request protocol (e.g., a network request protocol such as GET and/or POST).
Step S902, when it is detected that the server has the parsing configuration file of the response data corresponding to the network request, the parsing configuration file is downloaded.
Optionally, step S902 includes:
and when the server is detected to have the analysis configuration file of the response data corresponding to the network request, downloading the analysis configuration file corresponding to the application program version sending the network request.
Step S903, acquiring the updating configuration information in the analysis configuration file; wherein updating the configuration information comprises: analyzing the version information of the configuration file and analyzing the storage address information of the configuration file; judging whether the version information of the analysis configuration file is matched with the version information of a preset response data analysis function or not; and under the condition that the version information of the analysis configuration file is matched with the preset response data analysis function version information, storing the analysis configuration file according to the storage address information of the analysis configuration file.
Step S904, updating the preset response data parsing function in the network request channel through the stored parsing configuration file.
Optionally, step S904 includes:
acquiring an updated response data analysis function in a stored analysis configuration file;
and setting the updated response data analysis function as a preset response data analysis function in the network request channel.
Step S905, analyzing the response data received by the network request channel through the updated response data analysis function, and acquiring response information.
The method for analyzing network request response data according to the ninth embodiment of the present invention can dynamically generate the analysis configuration file of the response data of the network request by the terminal download server when the type of the network request changes, and dynamically update the analysis function of the response data by using the analysis configuration file, thereby greatly improving the update efficiency of the analysis function of the response data, and effectively avoiding updating the analysis function of the response data by reissuing a new version of the application program.
A tenth embodiment of the present invention provides a method for analyzing network request response data, which is applied to a terminal, and as shown in fig. 10, the method includes the following specific steps:
step S1001, a network request is sent to a server through a preset network request channel.
In this embodiment, the generation manner of the network request channel is not specifically limited, and the network request channel may be generated based on a network request protocol (e.g., a network request protocol such as GET and/or POST).
Step S1002, when it is detected that an analysis configuration file of response data corresponding to the network request exists in the server, the analysis configuration file is downloaded.
Optionally, step S1002 includes:
and when the server is detected to have the analysis configuration file of the response data corresponding to the network request, downloading the analysis configuration file corresponding to the application program version sending the network request.
Step S1003, judging whether the analysis configuration file is legal or not based on the signature information carried by the analysis configuration file; and when the analysis configuration file is legal, decrypting the analysis configuration file.
For example: judging whether the analysis configuration file is legal or not based on the MD5 code signature information carried by the analysis configuration file; and when the analysis configuration file is legal, carrying out AES decryption on the analysis configuration file.
Step S1004, updating the preset response data parsing function in the network request channel by parsing the configuration file.
Optionally, step S1004 includes:
acquiring an update response data analysis function in an analysis configuration file;
and setting the updated response data analysis function as a preset response data analysis function in the network request channel.
Step S1005, analyzing the response data received by the network request channel through the updated response data analysis function, and acquiring response information.
The method for analyzing network request response data according to the tenth embodiment of the present invention can dynamically generate an analysis configuration file of response data of a network request by a terminal download server when the type of the network request changes, and dynamically update an analysis function of the response data by using the analysis configuration file, thereby greatly improving the update efficiency of the analysis function of the response data, and effectively avoiding updating the analysis function of the response data by reissuing a new version of an application program; by encrypting the analysis configuration file and setting signature information in the encrypted analysis configuration file, the security and the integrity of the analysis configuration file are effectively improved, and the risk that the analysis configuration file is maliciously changed is avoided.
An eleventh embodiment of the present invention provides a method for analyzing network request response data, which is applied to a terminal, and as shown in fig. 11, the method includes the following specific steps:
step S1101, sending a network request to a server through a preset network request channel.
The generation method of the network request channel includes but is not limited to:
packaging a network request protocol through a preset native function to generate a network request channel;
and setting a preset response data analysis function in the network request channel so as to analyze the response data received by the network request channel through the preset response data analysis function.
For example: the GET and POST network request protocols are encapsulated through a native function preset by a mobile operating system iOS of apple company to generate a network request channel;
and setting a preset response data analysis function in the network request channel so as to analyze the response data received by the network request channel through the preset response data analysis function.
Step S1102, when it is detected that an analysis configuration file of response data corresponding to the network request exists in the server, the analysis configuration file is downloaded.
Optionally, step S1102 includes:
and when the server is detected to have the analysis configuration file of the response data corresponding to the network request, downloading the analysis configuration file corresponding to the application program version sending the network request.
Step S1103, acquiring the updated configuration information in the analysis configuration file; wherein updating the configuration information comprises: analyzing the version information of the configuration file and analyzing the storage address information of the configuration file; judging whether the version information of the analysis configuration file is matched with the version information of a preset response data analysis function or not; and under the condition that the version information of the analysis configuration file is matched with the preset response data analysis function version information, storing the analysis configuration file according to the storage address information of the analysis configuration file.
Step S1104, judging whether the analysis configuration file is legal or not based on the signature information carried by the analysis configuration file; and when the analysis configuration file is legal, decrypting the analysis configuration file.
For example: judging whether the analysis configuration file is legal or not based on the MD5 code signature information carried by the analysis configuration file; and when the analysis configuration file is legal, carrying out AES decryption on the analysis configuration file.
Step S1105, updating the response data parsing function preset in the network request channel by parsing the configuration file.
Optionally, step S1105 includes:
acquiring an update response data analysis function in an analysis configuration file;
and setting the updated response data analysis function as a preset response data analysis function in the network request channel.
Step S1106, parsing the response data received by the network request channel through the updated response data parsing function, and acquiring response information.
Step S1107, outputs the response information through a preset API (Application Programming Interface).
The method for analyzing network request response data according to the eleventh embodiment of the present invention can dynamically generate an analysis configuration file of response data of a network request by a terminal download server when the type of the network request changes, and dynamically update an analysis function of the response data by using the analysis configuration file, thereby greatly improving the update efficiency of the analysis function of the response data, and effectively avoiding updating the analysis function of the response data by reissuing a new version of an application program; by encrypting the analysis configuration file and setting signature information in the encrypted analysis configuration file, the security and the integrity of the analysis configuration file are effectively improved, and the risk that the analysis configuration file is maliciously changed is avoided.
A twelfth embodiment of the present invention provides an apparatus for parsing network request response data, which is disposed at a terminal, and as shown in fig. 12, the apparatus includes the following components:
a sending module 201, configured to send a network request to a server through a preset network request channel.
In this embodiment, the generation manner of the network request channel is not specifically limited, and the network request channel may be generated based on a network request protocol (e.g., a network request protocol such as GET and/or POST).
The downloading module 202 is configured to download the parsing configuration file when it is detected that the parsing configuration file of the response data corresponding to the network request exists in the server.
Optionally, the downloading module 202 is specifically configured to:
and when the server is detected to have the analysis configuration file of the response data corresponding to the network request, downloading the analysis configuration file corresponding to the application program version sending the network request.
And the updating module 203 is configured to update a response data parsing function preset in the network request channel by parsing the configuration file.
Optionally, the updating module 203 is specifically configured to:
acquiring an update response data analysis function in an analysis configuration file;
and setting the updated response data analysis function as a preset response data analysis function in the network request channel.
The parsing module 204 is configured to parse the response data received by the network request channel through the updated response data parsing function, so as to obtain response information.
The apparatus for parsing network request response data according to the twelfth embodiment of the present invention can dynamically generate, by the terminal download server, the parsing configuration file of the response data of the network request when the type of the network request changes, and dynamically update the parsing function of the response data through the parsing configuration file, thereby greatly improving the update efficiency of the parsing function of the response data and effectively avoiding updating the parsing function of the response data by reissuing a new version of an application.
A thirteenth embodiment of the present invention provides an apparatus for parsing network request response data, which is installed in a terminal, as shown in fig. 12, and includes the following components:
a sending module 201, configured to send a network request to a server through a preset network request channel.
The generation method of the network request channel includes but is not limited to:
packaging a network request protocol through a preset native function to generate a network request channel;
and setting a preset response data analysis function in the network request channel so as to analyze the response data received by the network request channel through the preset response data analysis function.
For example: the GET and POST network request protocols are encapsulated through a native function preset by a mobile operating system iOS of apple company to generate a network request channel;
and setting a preset response data analysis function in the network request channel so as to analyze the response data received by the network request channel through the preset response data analysis function.
The downloading module 202 is configured to download the parsing configuration file when it is detected that the parsing configuration file of the response data corresponding to the network request exists in the server.
Optionally, the downloading module 202 is specifically configured to:
and when the server is detected to have the analysis configuration file of the response data corresponding to the network request, downloading the analysis configuration file corresponding to the application program version sending the network request.
And the updating module 203 is configured to update a response data parsing function preset in the network request channel by parsing the configuration file.
Optionally, the updating module 203 is specifically configured to:
acquiring an update response data analysis function in an analysis configuration file;
and setting the updated response data analysis function as a preset response data analysis function in the network request channel.
The parsing module 204 is configured to parse the response data received by the network request channel through the updated response data parsing function, so as to obtain response information.
The parsing device for network request response data according to the thirteenth embodiment of the present invention can dynamically generate, by the terminal download server, the parsing configuration file of the response data of the network request when the type of the network request changes, and dynamically update the parsing function of the response data through the parsing configuration file, thereby greatly improving the updating efficiency of the parsing function of the response data, and effectively avoiding updating the parsing function of the response data through reissuing a new version of an application program.
A fourteenth embodiment of the present invention provides an apparatus for analyzing network request response data, which is disposed at a terminal, and as shown in fig. 13, the apparatus includes the following components:
a sending module 201, configured to send a network request to a server through a preset network request channel.
In this embodiment, the generation manner of the network request channel is not specifically limited, and the network request channel may be generated based on a network request protocol (e.g., a network request protocol such as GET and/or POST).
The downloading module 202 is configured to download the parsing configuration file when it is detected that the parsing configuration file of the response data corresponding to the network request exists in the server.
Optionally, the downloading module 202 is specifically configured to:
and when the server is detected to have the analysis configuration file of the response data corresponding to the network request, downloading the analysis configuration file corresponding to the application program version sending the network request.
An obtaining module 205, configured to obtain the update configuration information in the parsing configuration file; wherein updating the configuration information comprises: and analyzing the version information of the configuration file and analyzing the storage address information of the configuration file.
The determining module 206 is configured to determine whether the version information of the parsing configuration file matches the version information of the preset response data parsing function.
And the storage module 207 is configured to store the analysis configuration file according to the storage address information of the analysis configuration file when the version information of the analysis configuration file matches the version information of the preset response data analysis function.
And the updating module 203 is configured to update the preset response data parsing function in the network request channel through the stored parsing configuration file.
Optionally, the updating module 203 is specifically configured to:
acquiring an updated response data analysis function in a stored analysis configuration file;
and setting the updated response data analysis function as a preset response data analysis function in the network request channel.
The parsing module 204 is configured to parse the response data received by the network request channel through the updated response data parsing function, so as to obtain response information.
The parsing device for network request response data according to the fourteenth embodiment of the present invention can dynamically generate, by the terminal download server, the parsing configuration file of the response data of the network request when the type of the network request changes, and dynamically update the parsing function of the response data through the parsing configuration file, thereby greatly improving the updating efficiency of the parsing function of the response data, and effectively avoiding updating the parsing function of the response data through reissuing a new version of an application program.
A fifteenth embodiment of the present invention provides an apparatus for analyzing network request response data, which is installed in a terminal, and as shown in fig. 14, the apparatus includes the following components:
a sending module 201, configured to send a network request to a server through a preset network request channel.
In this embodiment, the generation manner of the network request channel is not specifically limited, and the network request channel may be generated based on a network request protocol (e.g., a network request protocol such as GET and/or POST).
The downloading module 202 is configured to download the parsing configuration file when it is detected that the parsing configuration file of the response data corresponding to the network request exists in the server.
Optionally, the downloading module 202 is specifically configured to:
and when the server is detected to have the analysis configuration file of the response data corresponding to the network request, downloading the analysis configuration file corresponding to the application program version sending the network request.
And the security module 208 is configured to determine whether the analysis configuration file is legal or not based on the signature information carried by the analysis configuration file.
And the decryption module 209 is configured to decrypt the parsing configuration file when the parsing configuration file is legal.
For example: the security module 208 is configured to determine whether the analysis configuration file is legal or not based on the MD5 code signature information carried by the analysis configuration file;
and the decryption module 209 is configured to perform AES decryption on the parsing configuration file when the parsing configuration file is legal.
And the updating module 203 is configured to update a response data parsing function preset in the network request channel by parsing the configuration file.
Optionally, the updating module 203 is specifically configured to:
acquiring an update response data analysis function in an analysis configuration file;
and setting the updated response data analysis function as a preset response data analysis function in the network request channel.
The parsing module 204 is configured to parse the response data received by the network request channel through the updated response data parsing function, so as to obtain response information.
The parsing device for network request response data according to the fifteenth embodiment of the present invention can dynamically generate, by the terminal download server, an parsing configuration file for response data of a network request when the type of the network request changes, and dynamically update the parsing function of the response data through the parsing configuration file, thereby greatly improving the update efficiency of the parsing function of the response data and effectively avoiding updating the parsing function of the response data by reissuing a new version of an application; by encrypting the analysis configuration file and setting signature information in the encrypted analysis configuration file, the security and the integrity of the analysis configuration file are effectively improved, and the risk that the analysis configuration file is maliciously changed is avoided.
A sixteenth embodiment of the present invention provides an apparatus for analyzing network request response data, which is disposed in a terminal, and as shown in fig. 15, the apparatus includes the following components:
a sending module 201, configured to send a network request to a server through a preset network request channel.
The generation method of the network request channel includes but is not limited to:
packaging a network request protocol through a preset native function to generate a network request channel;
and setting a preset response data analysis function in the network request channel so as to analyze the response data received by the network request channel through the preset response data analysis function.
For example: the GET and POST network request protocols are encapsulated through a native function preset by a mobile operating system iOS of apple company to generate a network request channel;
and setting a preset response data analysis function in the network request channel so as to analyze the response data received by the network request channel through the preset response data analysis function.
The downloading module 202 is configured to download the parsing configuration file when it is detected that the parsing configuration file of the response data corresponding to the network request exists in the server.
Optionally, the downloading module 202 is specifically configured to:
and when the server is detected to have the analysis configuration file of the response data corresponding to the network request, downloading the analysis configuration file corresponding to the application program version sending the network request.
An obtaining module 205, configured to obtain the update configuration information in the parsing configuration file; wherein updating the configuration information comprises: and analyzing the version information of the configuration file and analyzing the storage address information of the configuration file.
The determining module 206 is configured to determine whether the version information of the parsing configuration file matches the version information of the preset response data parsing function.
And the storage module 207 is configured to store the analysis configuration file according to the storage address information of the analysis configuration file when the version information of the analysis configuration file matches the version information of the preset response data analysis function.
And the security module 208 is configured to determine whether the analysis configuration file is legal or not based on the signature information carried by the analysis configuration file.
And the decryption module 209 is configured to decrypt the parsing configuration file when the parsing configuration file is legal.
For example: the security module 208 is configured to determine whether the analysis configuration file is legal or not based on the MD5 code signature information carried by the analysis configuration file;
and the decryption module 209 is configured to perform AES decryption on the parsing configuration file when the parsing configuration file is legal.
And the updating module 203 is configured to update a response data parsing function preset in the network request channel by parsing the configuration file.
Optionally, the updating module 203 is specifically configured to:
acquiring an update response data analysis function in an analysis configuration file;
and setting the updated response data analysis function as a preset response data analysis function in the network request channel.
The parsing module 204 is configured to parse the response data received by the network request channel through the updated response data parsing function, so as to obtain response information.
And an output module 210 for outputting the response information through a preset API.
The parsing device for network request response data according to the sixteenth embodiment of the present invention can dynamically generate, by the terminal download server, the parsing configuration file for response data of the network request when the type of the network request changes, and dynamically update the parsing function of the response data through the parsing configuration file, thereby greatly improving the update efficiency of the parsing function of the response data, and effectively avoiding updating the parsing function of the response data by reissuing a new version of an application; by encrypting the analysis configuration file and setting signature information in the encrypted analysis configuration file, the security and the integrity of the analysis configuration file are effectively improved, and the risk that the analysis configuration file is maliciously changed is avoided.
A seventeenth embodiment of the present invention, a server, as shown in fig. 16, includes the following components:
a processor 501 and a memory 502. In some embodiments of the invention, the processor 501 and the memory 502 may be connected by a bus or other means.
Processor 501 may be a general-purpose Processor such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention. Wherein, the memory 502 is used for storing executable instructions of the processor 501;
a memory 502 for storing program code and transferring the program code to the processor 501. Memory 502 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 502 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 502 may also comprise a combination of memories of the kind described above.
The processor 501 is configured to call the program code management code stored in the memory 502, and perform some or all of the steps in any of the first embodiment to the third embodiment of the present invention.
The server according to the seventeenth embodiment of the present invention can dynamically generate the parsing configuration file of the response data of the network request when the type of the network request changes, thereby greatly improving the updating efficiency of the parsing function of the response data, and effectively avoiding updating the parsing function of the response data by reissuing a new version of the application; by encrypting the analysis configuration file and setting signature information in the encrypted analysis configuration file, the security and the integrity of the analysis configuration file are effectively improved, and the risk that the analysis configuration file is maliciously changed is avoided.
An eighteenth embodiment of the present invention, a terminal, as shown in fig. 17, includes the following components:
a processor 601 and a memory 602. In some embodiments of the invention, the processor 601 and the memory 602 may be connected by a bus or other means.
Processor 601 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention. Wherein, the memory 602 is used for storing executable instructions of the processor 601;
a memory 602 for storing the program code and transferring the program code to the processor 601. The Memory 602 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 602 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 602 may also comprise a combination of memories of the kind described above.
The processor 601 is configured to call the program code management code stored in the memory 602, and perform some or all of the steps in any of the seventh embodiment to the eleventh embodiment of the present invention.
The terminal according to the eighteenth embodiment of the present invention can dynamically generate the parsing configuration file of the response data of the network request by the terminal download server when the type of the network request changes, and dynamically update the parsing function of the response data by using the parsing configuration file, thereby greatly improving the updating efficiency of the parsing function of the response data, and effectively avoiding updating the parsing function of the response data by reissuing a new version of the application program; by encrypting the analysis configuration file and setting signature information in the encrypted analysis configuration file, the security and the integrity of the analysis configuration file are effectively improved, and the risk that the analysis configuration file is maliciously changed is avoided.
A nineteenth embodiment of the present invention is a computer-readable storage medium.
The computer storage media may be RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
The computer readable storage medium stores one or more programs which are executable by one or more processors to implement some or all of the steps in any of the first through third embodiments of the present invention and/or to implement some or all of the steps in any of the seventh through eleventh embodiments of the present invention.
A computer-readable storage medium according to a nineteenth embodiment of the present invention stores one or more programs, where the one or more programs are executable by one or more processors, and can dynamically generate an analysis configuration file of response data of a network request when a type of the network request changes, and an application dynamically updates an analysis function of the response data through the analysis configuration file, so that an update efficiency of the analysis function of the response data is greatly improved, and updating of the analysis function of the response data by reissuing a new version of the application is effectively avoided.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (19)

1. A method for analyzing network request response data is characterized by comprising the following steps:
receiving a network request sent by a terminal;
under the condition that the type of the network request is changed, setting an analysis configuration file of response data corresponding to the network request according to the type of the network request;
when the terminal detects the analysis configuration file, downloading the analysis configuration file, and updating a response data analysis function preset in a network request channel through the analysis configuration file;
and sending the response data to the terminal.
2. The method of claim 1, wherein after the setting up the parsing profile of the response data corresponding to the network request, the method further comprises:
setting updating configuration information in the analysis configuration file;
wherein the updating the configuration information comprises: the version information of the analysis configuration file and the storage address information of the analysis configuration file.
3. The method according to claim 1 or 2, wherein after the setting of the parsing profile of the response data corresponding to the network request, the method further comprises:
and encrypting the analysis configuration file, and setting signature information in the encrypted analysis configuration file.
4. A method for analyzing network request response data is characterized by comprising the following steps:
sending a network request to a server through a preset network request channel;
when the server is detected to have an analysis configuration file of response data corresponding to the network request, downloading the analysis configuration file;
updating a response data analysis function preset in the network request channel through the analysis configuration file;
and analyzing the response data received by the network request channel through the updated response data analysis function to acquire response information.
5. The method of claim 4, wherein the network request channel is generated in a manner that includes:
packaging a network request protocol through a preset native function to generate a network request channel;
and setting the preset response data analysis function in the network request channel so as to analyze the response data received by the network request channel through the preset response data analysis function.
6. The method according to claim 4, wherein before the updating the preset response data parsing function in the network request channel through the parsing configuration file, the method further comprises:
acquiring the updating configuration information in the analysis configuration file; wherein the updating the configuration information comprises: the version information of the analysis configuration file and the storage address information of the analysis configuration file;
judging whether the version information of the analysis configuration file is matched with the version information of the preset response data analysis function;
and under the condition that the version information of the analysis configuration file is matched with the version information of the preset response data analysis function, storing the analysis configuration file according to the storage address information of the analysis configuration file.
7. The method according to claim 4, wherein before the updating the preset response data parsing function in the network request channel through the parsing configuration file, the method further comprises:
judging whether the analysis configuration file is legal or not based on the signature information carried by the analysis configuration file;
and under the condition that the analysis configuration file is legal, decrypting the analysis configuration file.
8. The method according to any one of claims 4 to 7, wherein after the response data received by the network request channel is parsed by the updated response data parsing function to obtain response information, the method further comprises:
and outputting the response information through a preset Application Programming Interface (API).
9. An apparatus for parsing network request response data, comprising:
the receiving module is used for receiving a network request sent by a terminal;
the setting module is used for setting an analysis configuration file of response data corresponding to the network request according to the type of the network request under the condition that the type of the network request is changed;
when the terminal detects the analysis configuration file, downloading the analysis configuration file, and updating a response data analysis function preset in a network request channel through the analysis configuration file;
and the feedback module is used for sending the response data to the terminal.
10. The apparatus of claim 9, further comprising:
the updating configuration module is used for setting updating configuration information in an analysis configuration file after the analysis configuration file of the response data corresponding to the network request is set;
wherein the updating the configuration information comprises: the version information of the analysis configuration file and the storage address information of the analysis configuration file.
11. The apparatus of claim 9 or 10, further comprising:
and the encryption module is used for encrypting the analysis configuration file after the analysis configuration file of the response data corresponding to the network request is set, and setting signature information in the encrypted analysis configuration file.
12. An apparatus for parsing network request response data, comprising:
the sending module is used for sending a network request to the server through a preset network request channel;
the downloading module is used for downloading the analysis configuration file when detecting that the analysis configuration file of the response data corresponding to the network request exists in the server;
the updating module is used for updating a response data analysis function preset in the network request channel through the analysis configuration file;
and the analysis module is used for analyzing the response data received by the network request channel through the updated response data analysis function to acquire response information.
13. The apparatus of claim 12, wherein the network request channel is generated in a manner that includes:
packaging a network request protocol through a preset native function to generate a network request channel;
and setting the preset response data analysis function in the network request channel so as to analyze the response data received by the network request channel through the preset response data analysis function.
14. The apparatus of claim 12, further comprising:
an obtaining module, configured to obtain update configuration information in the parsing configuration file before updating, through the parsing configuration file, a response data parsing function preset in the network request channel; wherein the updating the configuration information comprises: the version information of the analysis configuration file and the storage address information of the analysis configuration file;
the judging module is used for judging whether the version information of the analysis configuration file is matched with the version information of the preset response data analysis function;
and the storage module is used for storing the analysis configuration file according to the storage address information of the analysis configuration file under the condition that the version information of the analysis configuration file is matched with the version information of the preset response data analysis function.
15. The apparatus of claim 12, further comprising:
the security module is used for judging whether the analysis configuration file is legal or not based on signature information carried by the analysis configuration file before the analysis configuration file updates a response data analysis function preset in the network request channel;
and the decryption module is used for decrypting the analysis configuration file under the condition that the analysis configuration file is legal.
16. The apparatus according to any one of claims 12 to 15, wherein after the response data received by the network request channel is parsed by the updated response data parsing function to obtain response information, the apparatus further comprises:
and the output module is used for analyzing the response data received by the network request channel through the updated response data analysis function and outputting the response information through a preset Application Programming Interface (API) after the response information is acquired.
17. A server, comprising a processor and a memory;
the processor is used for executing a resolving program of the network request response data stored in the memory so as to realize the steps of the resolving method of the network request response data according to any one of claims 1-3.
18. A terminal, characterized in that the terminal comprises a processor and a memory;
the processor is used for executing a resolving program of the network request response data stored in the memory so as to realize the steps of the resolving method of the network request response data according to any one of claims 4-8.
19. A computer readable storage medium, storing one or more programs which are executable by one or more processors to perform the steps of the method for parsing network request response data according to any one of claims 1 to 3 and/or to perform the steps of the method for parsing network request response data according to any one of claims 4 to 8.
CN201810503379.6A 2018-05-23 2018-05-23 Method, device, equipment and storage medium for analyzing network request response data Active CN108696526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810503379.6A CN108696526B (en) 2018-05-23 2018-05-23 Method, device, equipment and storage medium for analyzing network request response data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810503379.6A CN108696526B (en) 2018-05-23 2018-05-23 Method, device, equipment and storage medium for analyzing network request response data

Publications (2)

Publication Number Publication Date
CN108696526A CN108696526A (en) 2018-10-23
CN108696526B true CN108696526B (en) 2021-05-14

Family

ID=63846863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810503379.6A Active CN108696526B (en) 2018-05-23 2018-05-23 Method, device, equipment and storage medium for analyzing network request response data

Country Status (1)

Country Link
CN (1) CN108696526B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110263058B (en) * 2019-06-05 2024-08-16 腾讯科技(成都)有限公司 Data processing method and device and electronic equipment
CN111294399B (en) * 2020-02-04 2023-06-23 网宿科技股份有限公司 Data transmission method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036917A (en) * 2011-09-29 2013-04-10 北京神州泰岳软件股份有限公司 Achievement method of client side platform and client side platform
CN106130733A (en) * 2016-06-23 2016-11-16 北京海泰方圆科技股份有限公司 More newly configured methods, devices and systems
CN107423079A (en) * 2017-03-10 2017-12-01 武汉斗鱼网络科技有限公司 A kind of method of synchronous script, the method and apparatus for parsing message
CN108040040A (en) * 2017-11-30 2018-05-15 北京锐安科技有限公司 A kind of automation analysis method and device of application protocol message

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008039036A1 (en) * 2006-09-30 2008-04-03 Samsung Electronics Co., Ltd. Apparatus and method for interfacing in a communication system
US9071524B2 (en) * 2008-03-31 2015-06-30 Lenovo (Singapore) Pte, Ltd. Network bandwidth control for network storage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036917A (en) * 2011-09-29 2013-04-10 北京神州泰岳软件股份有限公司 Achievement method of client side platform and client side platform
CN106130733A (en) * 2016-06-23 2016-11-16 北京海泰方圆科技股份有限公司 More newly configured methods, devices and systems
CN107423079A (en) * 2017-03-10 2017-12-01 武汉斗鱼网络科技有限公司 A kind of method of synchronous script, the method and apparatus for parsing message
CN108040040A (en) * 2017-11-30 2018-05-15 北京锐安科技有限公司 A kind of automation analysis method and device of application protocol message

Also Published As

Publication number Publication date
CN108696526A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
US9253164B2 (en) Distribution of portions of content
CN111143869B (en) Application package processing method and device, electronic equipment and storage medium
CN108880859B (en) Configuration method, device, server, terminal and storage medium of upgrade file
CN104754062B (en) Information popularization method, server and user terminal based on internet
CN108399319B (en) Source code protection method, application server and computer readable storage medium
CN109862099B (en) Upgrade checking method, device, terminal and system
CN104346167A (en) Method and device for generating application channel package
US20180067777A1 (en) Application protection method, server, and terminal
CN108710500A (en) Resource issuing method, update method and device
CN106465076B (en) Method and terminal for controlling short message reading
CN106055375B (en) Application program installation method and device
CN105893093A (en) Application program upgrading method and device
CN107239299B (en) Plug-in upgrading method and device
CN108696526B (en) Method, device, equipment and storage medium for analyzing network request response data
CN112149137B (en) Vulnerability detection method and device, electronic equipment and computer readable storage medium
CN108197469B (en) Method and device for verifying application program, storage medium and electronic equipment
CN108881122B (en) APP information verification method and device
CN108848127B (en) Data transmission method and device, computer equipment and computer readable storage medium
KR102705484B1 (en) System and method for converting application
CN111176685A (en) Upgrading method and device
CN111159712B (en) Detection method, device and storage medium
CN109450857B (en) Encrypted data configuration method, device, server, encryption equipment and storage medium
CN109871227B (en) Software upgrading method and device based on second-order differential increment
CN112416395A (en) Hot repair updating method and device
CN116614653A (en) Multimedia file playing method, device, system, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant