CN118250341A - Form request processing method, device, equipment and storage medium - Google Patents

Form request processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN118250341A
CN118250341A CN202410667345.6A CN202410667345A CN118250341A CN 118250341 A CN118250341 A CN 118250341A CN 202410667345 A CN202410667345 A CN 202410667345A CN 118250341 A CN118250341 A CN 118250341A
Authority
CN
China
Prior art keywords
request
target
mode
message
processing
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.)
Pending
Application number
CN202410667345.6A
Other languages
Chinese (zh)
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.)
Hangzhou New China And Big Polytron Technologies Inc
Hangzhou Zhengyun Data Technology Co ltd
Original Assignee
Hangzhou New China And Big Polytron Technologies Inc
Hangzhou Zhengyun Data 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 Hangzhou New China And Big Polytron Technologies Inc, Hangzhou Zhengyun Data Technology Co ltd filed Critical Hangzhou New China And Big Polytron Technologies Inc
Priority to CN202410667345.6A priority Critical patent/CN118250341A/en
Publication of CN118250341A publication Critical patent/CN118250341A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a form request processing method, a form request processing device, form request processing equipment and a storage medium. The method is applied to the client and comprises the following steps: acquiring an initial form processing request; if the request type of the initial form request is the submitted request type and the request mode parameter under the preset storage space is determined to be null, performing network request behavior prying operation according to the preset prying task arrangement mode, and determining a target request access mode of the initial form processing request; if the request type of the initial form request is the acquisition request type, determining a request direct access mode as a target request access mode of the initial form request; generating a target form processing request according to a message grouping mode corresponding to the target request access mode; and sending the target form processing request to the server side so that the server side can determine a target request processing mode according to the target form processing request and generate a corresponding service call request based on the target request processing mode.

Description

Form request processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a form request processing method, apparatus, device, and storage medium.
Background
In a government environment, network security restrictions may be placed on exposing application services to the internet in order to ensure security of government related systems. For service management, a large amount of service information such as service forms, rich texts and the like exists, so that after the service system is deployed in a client environment, a large amount of modification and adaptation of the service system are needed, and the service information management can be performed only after the adaptation is successful.
In order to solve the problem that a business system can be quickly adapted to the change of a network environment in a government affair scene, the business form submitting and packaging management is automatically completed, so that the form request processing is automatically carried out under the security scene required by the government affair scene, and the service call is realized, and the problem to be solved is urgent at present.
Disclosure of Invention
The invention provides a form request processing method, a form request processing device, form request processing equipment and a storage medium, so that the safety processing of a form request is realized, and the service call of related service is realized.
According to an aspect of the present invention, there is provided a form request processing method, applied to a client, the method including:
Acquiring an initial form processing request;
If the request type of the initial form request is a submitted request type and the request mode parameter under the preset storage space is determined to be a null value, performing network request behavior sounding operation according to a preset sounding task arrangement mode, and determining a target request access mode of the initial form processing request; and
If the request type of the initial form request is the acquisition request type, determining a request direct access mode as a target request access mode of the initial form request;
Generating a target form processing request according to a message grouping mode corresponding to the target request access mode;
And sending the target form processing request to a server side so that the server side can determine a target request processing mode according to the target form processing request and generate a corresponding service call request based on the target request processing mode.
According to another aspect of the present invention, there is also provided a form request processing method, applied to a server, including:
Acquiring a target form processing request sent by a client;
determining a target request processing mode according to the target form processing request;
generating a corresponding service call request based on the target request processing mode;
the method for determining the target form processing request comprises the following steps: the client acquires an initial form processing request; if the request type of the initial form request is a submitted request type and the request mode parameter under the preset storage space is determined to be a null value, performing network request behavior sounding operation according to a preset sounding task arrangement mode, and determining a target request access mode of the initial form processing request; if the request type of the initial form request is the acquisition request type, determining a request direct access mode as a target request access mode of the initial form request; and generating a target form processing request according to a message grouping mode corresponding to the target request access mode.
According to another aspect of the present invention, there is provided a form request processing apparatus configured to a client, the apparatus including:
The initial request acquisition module is used for acquiring an initial form processing request;
The first access mode determining module is used for performing network request behavior prying operation according to a preset prying task arrangement mode and determining a target request access mode of the initial form processing request if the request type of the initial form request is a submitted request type and the request mode parameter under a preset storage space is determined to be a null value; and
The second access mode determining module is used for determining a request direct access mode as a target request access mode of the initial form request if the request type of the initial form request is an acquisition request type;
The target processing request generation module is used for generating a target form processing request according to a message packet mode corresponding to the target request access mode;
The target processing request sending module is used for sending the target form processing request to a server side so that the server side can determine a target request processing mode according to the target form processing request and generate a corresponding service calling request based on the target request processing mode.
According to another aspect of the present invention, there is provided a form request processing apparatus configured at a server, the apparatus including:
The target processing request acquisition module is used for acquiring a target form processing request sent by the client;
The target processing mode determining module is used for determining a target request processing mode according to the target form processing request;
the service call request generation module is used for generating a corresponding service call request based on the target request processing mode;
the method for determining the target form processing request comprises the following steps: the client acquires an initial form processing request; if the request type of the initial form request is a submitted request type and the request mode parameter under the preset storage space is determined to be a null value, performing network request behavior sounding operation according to a preset sounding task arrangement mode, and determining a target request access mode of the initial form processing request; if the request type of the initial form request is the acquisition request type, determining a request direct access mode as a target request access mode of the initial form request; and generating a target form processing request according to a message grouping mode corresponding to the target request access mode.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the form request processing method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a form request processing method according to any one of the embodiments of the present invention when executed.
According to the technical scheme, the initial form processing request is acquired, the request type of the initial form request is determined to be the submitted request type, when the request mode parameter under the preset storage space is determined to be a null value, network request behavior sounding operation is carried out according to the preset sounding task arrangement mode, the target request access mode of the initial form processing request is determined, and if the request type of the initial form request is the acquired request type, the request direct access mode is determined to be the target request access mode of the initial form request; generating a target form processing request according to a message grouping mode corresponding to the target request access mode; and sending the target form processing request to a server side so that the server side can determine a target request processing mode according to the target form processing request and generate a corresponding service call request based on the target request processing mode. According to the technical scheme, different target request modes are determined according to the request types, and the target request processing mode is determined according to the prying task under the condition that the request modes cannot be determined according to the different request types, so that the safety processing of the form request is realized, and the service call of related service is realized by considering different processing modes of the form request under the scene of higher safety requirements.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a form request processing method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a form request processing method according to a second embodiment of the present invention;
FIG. 3 is a flow chart of a form request processing method according to a third embodiment of the present invention;
FIG. 4 is a schematic diagram of a form request processing method according to a fourth embodiment of the present invention;
FIG. 5 is a schematic diagram of a form request processing device according to a fifth embodiment of the present invention;
FIG. 6 is a schematic diagram of a form request processing device according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device implementing a form request processing method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a form request processing method provided in an embodiment of the present invention, where the embodiment is applicable to situations where a security requirement for submitting a form to a service system is high, and forms are automatically submitted and safely processed, the method may be performed by a form request processing device, where the form request processing device may be implemented in a form of hardware and/or software, and the form request processing device may be configured in an electronic device, for example, may be configured in a client. As shown in fig. 1, the method is performed by a client, and includes:
s110, acquiring an initial form processing request.
The initial form processing request may be a form processing request submitted by a user associated with the business system. The client may acquire the initial form processing request at the time: the request agent library is constructed in advance, and when a user initiates network requests such as an initial form processing request, the request agent library is introduced to automatically intercept the requests, so that the initial form processing request is obtained.
S120A, if the request type of the initial form request is the submitted request type and the request mode parameter under the preset storage space is determined to be a null value, network request behavior sounding operation is carried out according to the preset sounding task arrangement mode, and the target request access mode of the initial form processing request is determined.
The submitting request type is POST network request; the preset storage space may be preset by a related technician and used for storing a request mode parameter, where the request mode parameter is used for characterizing a request mode, for example, if the request mode parameter is 0, the request mode may be represented as a request direct access mode; if the request mode parameter is 1, the request mode can be represented as a stream message request access mode; if the request mode parameter is 2, it may indicate that the request mode is a packet request access mode.
When the request mode parameter is null, the request access mode for processing the request cannot be determined for the currently acquired initial form processing request, and then the network probing task can be executed. The network probing task may be to snoop or detect a requested action in a network communication. The probing task may include at least one kind, and the order of executing the probing tasks, that is, the probing task arrangement manner may be preset by a related technician. For example, the probing task arrangement mode may be a request direct access mode, a streaming message request access mode, and a packet request access mode.
For example, the request analysis can be performed on the initial form request to obtain request analysis data; and according to the request analysis data, carrying out message recombination based on the packet specification of the corresponding request access mode in the prying task arrangement mode, establishing a network request, transmitting the network request to a server for verification, and determining the target request access mode of the initial form processing request according to the verification result.
S120B, if the request type of the initial form request is the acquisition request type, determining the request direct access mode as the target request access mode of the initial form request.
Wherein the acquisition request type is a GET network request. For example, if the initial form request is identified as a GET network request, the target request access manner is determined to be a request direct access manner.
S130, generating a target form processing request according to a message grouping mode corresponding to the target request access mode.
It should be noted that different target request access modes correspond to different packet modes. For example, the packet grouping method of the request direct access method may be to perform packet reorganization based on the information such as the request address, the request header, and the request body obtained by parsing, and generate the target form processing request based on the reorganized packet. If the target request access mode is a stream message request access mode, message reorganization can be performed based on a preset stream message grouping mode, and a specific grouping mode can be preset and configured and stored in advance by related technicians.
Illustratively, according to the target request access mode of the initial form request, a recombined message is generated based on a message packet mode corresponding to the target request access mode, and a target form processing request is generated based on the recombined message.
S140, sending the target form processing request to the server side so that the server side can determine a target request processing mode according to the target form processing request and generate a corresponding service call request based on the target request processing mode.
Illustratively, the client sends a target form handling request to the server. The server automatically intercepts a form processing request sent by the client according to a pre-configured interceptor. And determining a target request processing mode by carrying out request analysis on the target form processing request. Determining a corresponding message unpacking mode based on a target request processing mode; and unpacking the request message and reorganizing the request message based on the message unpacking mode, so that a corresponding service call request is generated based on the reorganized package, and corresponding service call is performed according to the service call request.
According to the technical scheme, the initial form processing request is acquired, the request type of the initial form request is determined to be the submitted request type, when the request mode parameter under the preset storage space is determined to be a null value, network request behavior sounding operation is carried out according to the preset sounding task arrangement mode, the target request access mode of the initial form processing request is determined, and if the request type of the initial form request is the acquired request type, the request direct access mode is determined to be the target request access mode of the initial form request; generating a target form processing request according to a message grouping mode corresponding to the target request access mode; and sending the target form processing request to a server side so that the server side can determine a target request processing mode according to the target form processing request and generate a corresponding service call request based on the target request processing mode. According to the technical scheme, different target request modes are determined according to the request types, and the target request processing mode is determined according to the prying task under the condition that the request modes cannot be determined according to the different request types, so that the safety processing of the form request is realized, and the service call of related service is realized by considering different processing modes of the form request under the scene of higher safety requirements.
Example two
Fig. 2 is a flowchart of a form request processing method according to a second embodiment of the present invention, where the present embodiment is optimized and improved based on the above technical solutions.
Further, the network request behavior prying operation is carried out according to a preset prying task arrangement mode, the target request access mode of the initial form processing request is determined to be 'thinned', the request analysis is carried out on the initial form processing request, and the request meta-information is obtained; generating a first recombined message based on a first message recombination mode according to the request meta information, and adding a request behavior identifier in a message request header of the first recombined message to obtain a first target message; the request behavior identification comprises formal request behavior representation and request trending behavior identification; generating a first network request according to the first target message, and sending the first network request to the server side so that the server side feeds back a first request response when receiving the first network request and recognizing that the request behavior identifier is a request trending behavior identifier; and if the first request response sent by the server is received within the preset time period, determining that the target request access mode of the initial form processing request is a request direct access mode. "to refine the penetration of the direct access to the request.
Generating a first network request according to a first target message, and sending the first network request to a server side, so that the server side can feedback a first request response when receiving the first network request and recognizing that a request behavior identifier is a request trending behavior identifier, and then adding the step of generating a second re-packet based on a second packet re-packet mode according to request meta-information if the first request response sent by the server side is not received within a preset time period; binary transcoding is carried out on the second recombined message, and a request behavior identifier is added in a message request head of the transcoded second recombined message to obtain a second target message; generating a second network request according to the second target message, and sending the second network request to the server side so that the server side feeds back a second request response when receiving the second network request and recognizing that the request behavior identifier is a request trending behavior identifier; if a second request response sent by the server is received within a preset time period, determining that the target request access mode of the initial form processing request is a streaming message request access mode. "to perfect the penetration of the request access mode of the streaming message".
The method comprises the steps of generating a second network request according to a second target message, sending the second network request to a server side, and determining a request message identifier according to a request address and request content in request meta-information after the server side receives the second network request and feeds back a second request response when recognizing that a request behavior identifier is a request trending behavior identifier; generating a third recombinant message based on a third message recombination mode according to the request message identification and the request meta information; adding a request behavior identifier in a message request header of a third recombined message to obtain a third target message; generating a third network request according to the third target message, and sending the third network request to the server side so that the server side feeds back a third request response when receiving the third network request and recognizing that the request behavior identifier is a request trending behavior identifier; if a third request response sent by the server is received within a preset time period, determining that the target request access mode of the initial form processing request is a message subpackage request access mode. To perfect the penetration of the request access mode of the packet.
In the embodiments of the present invention, the descriptions of other embodiments may be referred to in the portions not described in detail. As shown in fig. 2, the method comprises the following specific steps:
s1, acquiring an initial form processing request.
S2A, if the request type of the initial form request is the submitted request type and the request mode parameter under the preset storage space is determined to be a null value, carrying out request analysis on the initial form processing request to obtain request meta-information.
The request meta information may include a request address, a request header, a request body, and contents of the request body, etc. The request parsing method for the initial form processing request may be an existing request parsing method, which is not limited in this embodiment.
S20, generating a first recombined message based on a first message recombination mode according to the request meta information, and adding a request behavior identifier in a message request head of the first recombined message to obtain a first target message; the request behavior identification includes a formal request behavior representation and a request probe behavior identification.
The first message reorganization mode may be a message reorganization mode corresponding to the request direct access mode. For example, the first reassembled message may be generated according to the request address, the request header, the content of the request body, and the like.
It should be noted that, in order to facilitate the server to accurately determine the type of the request after receiving the request, it determines whether the request is a probe request or a formal request. In the process of generating the message, a request behavior identifier is added in a message request header and is used for identifying the behavior of the request. Wherein the request behavior identification includes a formal request behavior representation and a request probe behavior identification. For example, by adding a parameter PACKAGETYPE to the request header (header), when PACKAGETYPE has a value of "CT", this may be denoted as a request for a trending action; when PACKAGETYPE has a value of "SC", this may be expressed as a request for formal behavior.
Illustratively, a first target message with a request behavior representation is generated according to the parsed request meta-information.
S21, generating a first network request according to the first target message, and sending the first network request to the server side, so that the server side feeds back a first request response when receiving the first network request and recognizing that the request behavior identifier is a request trending behavior identifier.
Illustratively, the client generates a first network request from the first target message. And sending the first network request to the server. If the server receives the first network request and recognizes that the request behavior is represented as the request peering behavior identifier, a first request response with a request range state of 200 is generated, which indicates that the client request is successful.
S22A, if a first request response sent by the server is received within a preset time period, determining that a target request access mode of an initial form processing request is a request direct access mode.
If the client receives a first request response with a request range state of 200 sent by the server in a preset time period, determining a target request access mode of an initial form processing request as a request direct access mode. The preset time period may be preset by a related technician according to an actual experience value or an experimental value.
S22B, if the first request response sent by the server is not received within the preset time period, generating a second retransmission message based on the second message retransmission mode according to the request meta-information.
For example, if the client does not receive the first request response with the request range state of 200 sent by the server within the preset time period, a second retransmission message is generated based on the second message reassembly mode according to the request meta information. The second message reorganization mode may be a message reorganization mode corresponding to the streaming message request access mode. The content format included in the second packet reassembly method may be shown in table 1.
TABLE 1
Message length URL Request mode Request body content End symbol
The URL (Uniform Resource Locator ) may be obtained by parsing the initial form handling request. The ending symbol may be preset by a related technician according to actual requirements, for example, the ending symbol may be "/".
S220, binary transcoding is carried out on the second recombined message, and a request behavior identifier is added in a message request head of the transcoded second recombined message, so that a second target message is obtained.
Illustratively, based on a binary transcoding method, binary transcoding is performed on the second re-assembled message, so as to obtain a transcoded second re-assembled message. And adding a request behavior identifier in a message request header of the transcoded second recombined message, and adding a Package-flow identifier in the request header to enable a server to acquire a target request access mode after decoding the request. The Package-flow may represent an identifier corresponding to the streaming message request access mode.
S221, generating a second network request according to the second target message, and sending the second network request to the server side, so that the server side feeds back a second request response when receiving the second network request and recognizing that the request behavior identifier is the request trending behavior identifier.
The client generates a second network request according to the second target message. And sending the second network request to the server. If the server receives the second network request and recognizes that the request behavior is represented as the request peering behavior identifier, a second request response with the request range state of 200 is generated, which indicates that the client request is successful.
S222A, if a second request response sent by the server is received within a preset time period, determining that a target request access mode of the initial form processing request is a streaming message request access mode.
If the client receives a second request response with the request range state of 200 sent by the server in a preset time period, determining a target request access mode of the initial form processing request as a streaming message request access mode. The preset time period may be preset by a related technician according to an actual experience value or an experimental value.
S222B, if a second request response sent by the server is not received within a preset time period, determining a request message identifier according to a request address and request content in the request meta-information.
For example, if the client does not receive the second request response with the request range state of 200 sent by the server within the preset time period, the request address and the request content in the request meta information determine the request message identifier. Specifically, hash calculation can be performed on the request address and the request content, and the hash value obtained by calculation is determined as the request message identifier.
S2220, according to the request message identifier and the request meta information, generates a third recombinant message based on the third message recombination mode.
The third packet reassembly mode may be a packet reassembly mode corresponding to the packet request access mode. The content format included in the third packet reassembly method may be shown in table 2.
TABLE 2
Message identification Packet sequence number Total length of message The length of the message URL Request mode Request body content End symbol
S2221, adding a request behavior identification in a message request header of the third recombined message to obtain a third target message.
And adding a request behavior identifier in a message request header of the third group of messages, and meanwhile, adding a Package-part identifier in the request header so that a server can acquire a target request access mode after decoding the request. The Package-part may represent an identifier corresponding to the packet access request manner.
S2222, according to the third target message, generating a third network request, and sending the third network request to the server, so that the server feeds back a third request response when receiving the third network request and recognizing that the request behavior identifier is the request trending behavior identifier.
Illustratively, the client generates a third network request according to the third target message. And sending the third network request to the server. If the server receives the third network request and recognizes that the request behavior is represented as the request peering behavior identifier, a second request response with the request range state of 200 is generated, which indicates that the client request is successful.
S2223, if a third request response sent by the server is received within a preset time period, determining that the target request access mode of the initial form processing request is a packet request access mode.
In an alternative embodiment, after generating a third network request according to the third target packet and sending the third network request to the server, the server feeds back a third request response when receiving the third network request and identifying that the request behavior identifier is the request trending behavior identifier, including: if a third request response sent by the server is not received within a preset time period, carrying out message recombination operation on the third recombined message to obtain an equal-division recombined message, and generating a third network sub-request according to the equal-division recombined message; the third network sub-request is sent to the server side, so that the server side feeds back a third sub-request response when receiving the third network sub-request and identifying that the request behavior identifier is the request trending behavior identifier; and if a third sub-request response sent by the server is received within a preset time period, determining the message space information of the equally divided and recombined message.
The message equal-dividing recombination mode can be to divide the third recombined message into equal-dividing messages according to an equal-dividing method, and generate two sub-messages with the same message length, namely equal-dividing recombined messages. And generating a third network sub-request by equally dividing the recombined message and sending the third network sub-request to the server. If the service end responds to the current equal-component recombination message successfully, determining the message space information of the equal-component recombination message. For example, the spatial information of the message may include information such as the packet size and the message length of the aliquoting reassembled message. If the current equal-dividing recombination message is not responded successfully at the server, continuing to divide the message equally until the server responds successfully, and recording the message space information of the equal-dividing recombination message. Meanwhile, the message space information is stored in a preset storage space.
S2B, if the request type of the initial form request is the acquisition request type, determining the request direct access mode as a target request access mode of the initial form request.
In an alternative embodiment, after determining the target request access mode of the initial form processing request, the method further includes: if the target request access mode is a request direct access mode, updating request mode parameters in a preset storage space to preset first parameter values; if the target request access mode is a streaming message request access mode, updating the request mode parameters in the preset storage space into preset second parameter values; and if the target request access mode is the packet request access mode, updating the request mode parameters in the preset storage space to preset third parameter values.
The first parameter value, the second parameter value and the third parameter value may be preset by a related technician, and are specifically used for characterizing different request access modes. For example, the first parameter value may be set to "0" for characterizing the target request access mode as a request direct access mode; the second parameter value may be set to "1" to characterize that the target request access mode is a streaming message request access mode; the second parameter value may be set to "2" to characterize the target request access mode as a packet request access mode.
In a specific request access embodiment, if the request type of the initial form request is a submitted request type and the request mode parameter under the preset storage space is determined to be a first parameter value, determining that the request direct access mode is determined to be a target request access mode of the initial form request; if the request type of the initial form request is the submitted request type and the request mode parameter under the preset storage space is determined to be a second parameter value, determining that the streaming message request access mode is determined to be the target request access mode of the initial form request; and if the request type of the initial form request is the submitted request type and the request mode parameter under the preset storage space is determined to be a third parameter value, determining that the packet request access mode is determined to be the target request access mode of the initial form request.
S3, generating a target form processing request according to a message grouping mode corresponding to the target request access mode.
S4, sending the target form processing request to the server side so that the server side can determine a target request processing mode according to the target form processing request and generate a corresponding service call request based on the target request processing mode.
According to the technical scheme, request analysis is carried out on an initial form processing request to obtain request meta-information; generating a first recombined message based on a first message recombination mode according to the request meta information, and adding a request behavior identifier in a message request header of the first recombined message to obtain a first target message; generating a first network request according to a first target message, and sending the first network request to a server side so that the server side feeds back a first request response when receiving the first network request and recognizing that a request behavior identifier is a request trending behavior identifier; if a first request response sent by the server side is received within a preset time period, determining that a target request access mode of the initial form processing request is a request direct access mode. According to the technical scheme, the accurate determination of the request access mode of the initial form processing request under the condition of determining the unknown access mode is performed by the network probe mode based on the request probe task; in the determining process, the accurate positioning of the target request access mode is realized by combining the response results of the server under different network probing tasks.
Example III
Fig. 3 is a flowchart of a form request processing method provided in the third embodiment of the present invention, where the present embodiment is applicable to situations where the security requirement for submitting a form to a service system is high, and forms are automatically submitted and safely processed, the method may be performed by a form request processing device, where the form request processing device may be implemented in a form of hardware and/or software, and the form request processing device may be configured in an electronic device, for example, may be configured in a server. As shown in fig. 3, the method is performed by a client, and includes:
S310, acquiring a target form processing request sent by the client.
S320, determining a target request processing mode according to the target form processing request.
S330, generating a corresponding service call request based on the target request processing mode.
The method for determining the target form processing request comprises the following steps: the client acquires an initial form processing request; if the request type of the initial form request is the submitted request type and the request mode parameter under the preset storage space is determined to be null, performing network request behavior prying operation according to the preset prying task arrangement mode, and determining a target request access mode of the initial form processing request; if the request type of the initial form request is the acquisition request type, determining a request direct access mode as a target request access mode of the initial form request; and generating a target form processing request according to a message grouping mode corresponding to the target request access mode.
The submitting request type is POST network request; the GET request type is a GET network request. For example, if the initial form request is identified as a GET network request, the target request access manner is determined to be a request direct access manner. The preset storage space may be preset by a related technician and used for storing a request mode parameter, where the request mode parameter is used for characterizing a request mode, for example, if the request mode parameter is 0, the request mode may be represented as a request direct access mode; if the request mode parameter is1, the request mode can be represented as a stream message request access mode; if the request mode parameter is 2, it may indicate that the request mode is a packet request access mode.
If the request type of the initial form request is a submitted request type and the request mode parameter under the preset storage space is determined to be a null value, request analysis can be performed on the initial form processing request to obtain request meta-information; generating a first recombined message based on a first message recombination mode according to the request meta information, and adding a request behavior identifier in a message request header of the first recombined message to obtain a first target message; the request behavior identification comprises formal request behavior representation and request trending behavior identification; generating a first network request according to a first target message, and sending the first network request to a server side so that the server side feeds back a first request response when receiving the first network request and recognizing that a request behavior identifier is a request trending behavior identifier; if a first request response sent by the server side is received within a preset time period, determining that a target request access mode of the initial form processing request is a request direct access mode.
If the first request response sent by the server is not received within a preset time period, generating a second retransmission message based on a second message retransmission mode according to the request meta-information; binary transcoding is carried out on the second recombined message, and a request behavior identifier is added in a message request head of the transcoded second recombined message to obtain a second target message; generating a second network request according to the second target message, and sending the second network request to the server side so that the server side feeds back a second request response when receiving the second network request and recognizing that the request behavior identifier is a request trending behavior identifier; if a second request response sent by the server is received within a preset time period, determining that the target request access mode of the initial form processing request is a streaming message request access mode.
If a second request response sent by the server is not received within a preset time period, determining a request message identifier according to a request address and request content in the request meta-information; generating a third recombinant message based on a third message recombination mode according to the request message identification and the request meta information; adding a request behavior identifier in a message request header of a third recombined message to obtain a third target message; generating a third network request according to the third target message, and sending the third network request to the server side so that the server side feeds back a third request response when receiving the third network request and recognizing that the request behavior identifier is a request trending behavior identifier; if a third request response sent by the server is received within a preset time period, determining that the target request access mode of the initial form processing request is a message subpackage request access mode.
If a third request response sent by the server is not received within a preset time period, carrying out message recombination operation on the third recombined message to obtain an equal-division recombined message, and generating a third network sub-request according to the equal-division recombined message; the third network sub-request is sent to the server side, so that the server side feeds back a third sub-request response when receiving the third network sub-request and identifying that the request behavior identifier is the request trending behavior identifier; and if a third sub-request response sent by the server is received within a preset time period, determining the message space information of the equally divided and recombined message.
If the target request access mode is a request direct access mode, updating request mode parameters in a preset storage space to preset first parameter values; if the target request access mode is a streaming message request access mode, updating the request mode parameters in the preset storage space into preset second parameter values; and if the target request access mode is the packet request access mode, updating the request mode parameters in the preset storage space to preset third parameter values.
If the request type of the initial form request is the submitted request type and the request mode parameter under the preset storage space is determined to be a first parameter value, determining that the request direct access mode is determined to be a target request access mode of the initial form request; if the request type of the initial form request is the submitted request type and the request mode parameter under the preset storage space is determined to be a second parameter value, determining that the streaming message request access mode is determined to be the target request access mode of the initial form request; and if the request type of the initial form request is the submitted request type and the request mode parameter under the preset storage space is determined to be a third parameter value, determining that the packet request access mode is determined to be the target request access mode of the initial form request.
It should be noted that different target request access modes correspond to different packet modes. For example, the packet grouping method of the request direct access method may be to perform packet reorganization based on the information such as the request address, the request header, and the request body obtained by parsing, and generate the target form processing request based on the reorganized packet. If the target request access mode is a stream message request access mode, message reorganization can be performed based on a preset stream message grouping mode, and a specific grouping mode can be preset and configured and stored in advance by related technicians.
Illustratively, according to the target request access mode of the initial form request, a recombined message is generated based on a message packet mode corresponding to the target request access mode, and a target form processing request is generated based on the recombined message. And the client sends the target form processing request to the server. The server automatically intercepts a form processing request sent by the client according to a pre-configured interceptor. And determining a target request processing mode by carrying out request analysis on the target form processing request. Determining a corresponding message unpacking mode based on a target request processing mode; and unpacking the request message and reorganizing the request message based on the message unpacking mode, so that a corresponding service call request is generated based on the reorganized package, and corresponding service call is performed according to the service call request.
According to the technical scheme, the initial form processing request is acquired, the request type of the initial form request is determined to be the submitted request type, when the request mode parameter under the preset storage space is determined to be a null value, network request behavior sounding operation is carried out according to the preset sounding task arrangement mode, the target request access mode of the initial form processing request is determined, and if the request type of the initial form request is the acquired request type, the request direct access mode is determined to be the target request access mode of the initial form request; generating a target form processing request according to a message grouping mode corresponding to the target request access mode; and sending the target form processing request to a server side so that the server side can determine a target request processing mode according to the target form processing request and generate a corresponding service call request based on the target request processing mode. According to the technical scheme, different target request modes are determined according to the request types, and the target request processing mode is determined according to the prying task under the condition that the request modes cannot be determined according to the different request types, so that the safety processing of the form request is realized, and the service call of related service is realized by considering different processing modes of the form request under the scene of higher safety requirements.
Example IV
Fig. 4 is a schematic structural diagram of a form request processing method according to a fourth embodiment of the present invention. The present embodiment provides a preferred example based on the above-described embodiments.
The client intercepts a form request submitted by a user, and if the form request is a GET network request, the client performs request message recombination based on a request direct access mode (direct access mode for short), generates and initiates a target form processing request to the server. If the form request is a POST network request, judging whether a corresponding target request access mode is stored in a preset storage space Localstore; if so, carrying out request message reorganization according to a target request access mode stored in a storage space Localstore, generating and initiating a target form processing request to a server; if not, executing the network spying task.
When the target request access mode cannot be determined based on Localstore, request analysis is carried out on the form request, message recombination is carried out based on a message recombination mode corresponding to the request direct access mode, a first network request is obtained, and the first network request is initiated to the server. If the server side performs a request response with a request scope state of 200 on the first network request, it may be determined that the target request access mode is a request direct access mode (abbreviated as a streaming access mode). If the server side does not respond to the first network request, carrying out message reorganization based on a message reorganization mode corresponding to the stream message request access mode to obtain a second network request, and initiating the second network request to the server side; if the server side performs a request response with a request range state of 200 on the second network request, it can be determined that the target request access mode is a streaming message request access mode. If the server side does not respond to the second network request, carrying out message reorganization based on a message reorganization mode corresponding to the message subpackage request access mode to obtain a third network request, and initiating the third network request to the server side; if the server side performs a request response with a request range state of 200 on the third network request, it can be determined that the target request access mode is a packet request access mode (packet access mode). If the server side does not respond to the third network request, the message equally dividing operation is performed until the server side can successfully respond to the equally divided message.
The server automatically intercepts all requests by adding an interceptor, and directly returns to the success state of 200 by acquiring PACKAGETYPE parameter attributes of the request head if the request head is CT; otherwise, determining a request mode according to the Package attribute of the request header, and completing the interaction of the request.
I) When the Package attribute is empty, the direct access mode is requested by default, and the interceptor does not perform any processing.
Ii) when the Package attribute is flow, acquiring the form request, unpacking the request message of the form request, constructing a new network request, and packing the local area network request group to finish service call.
Iii) When the Package attribute is part, obtaining a message identifier, a serial number, the total size of the message, the current message size and the like by analyzing the content of the request body, creating a message Wen Rongqi according to the message identifier, calculating and accumulating the received message size in a container, and storing the request content; after each network request, calculating whether all the sub-packets are transmitted according to the message identification, and if not, directly returning; if the transmission is completed, the network request is blocked for the last time, the message is ordered according to the sequence number, the original message is restored, the request address and the request mode of the message are put forward, a new network request is constructed for local area network request packet, and the service call is completed.
Example five
Fig. 5 is a schematic structural diagram of a form request processing device according to a fifth embodiment of the present invention. The form request processing device provided by the embodiment of the invention can be suitable for the situations of automatically submitting and safely processing forms under the scene of higher safety requirements on the forms submitted by a service system, and can be realized in the form of hardware and/or software, as shown in fig. 5, and the device can be configured at a client and specifically comprises: an initial request acquisition module 501, a first access manner determination module 502, a second access manner determination module 503, a target processing request generation module 504, and a target processing request transmission module 505. Wherein,
An initial request acquiring module 501, configured to acquire an initial form processing request;
The first access manner determining module 502 is configured to perform a network request behavior sounding operation according to a preset sounding task arrangement manner if the request type of the initial form request is a submitted request type and it is determined that a request manner parameter under a preset storage space is a null value, and determine a target request access manner of the initial form processing request; and
A second access manner determining module 503, configured to determine, if the request type of the initial form request is an acquisition request type, a request direct access manner as a target request access manner of the initial form request;
The target processing request generating module 504 is configured to generate a target form processing request according to a packet grouping manner corresponding to the target request access manner;
The target processing request sending module 505 is configured to send the target form processing request to a server, so that the server determines a target request processing mode according to the target form processing request, and generates a corresponding service call request based on the target request processing mode.
According to the technical scheme, different target request modes are determined according to the request types, and the target request processing mode is determined according to the prying task under the condition that the request modes cannot be determined according to the different request types, so that the safety processing of the form request is realized, and the service call of related service is realized by considering different processing modes of the form request under the scene of higher safety requirements.
Optionally, the first access manner determining module 502 includes:
the request meta-information determining unit is used for carrying out request analysis on the initial form processing request to obtain request meta-information;
the first recombined message generating unit is used for generating a first recombined message based on a first message recombined mode according to the request meta-information, and adding a request behavior identifier into a message request header of the first recombined message to obtain a first target message; the request behavior identification comprises formal request behavior representation and request prying behavior identification;
The first network request generating unit is used for generating a first network request according to the first target message, and sending the first network request to a server, so that the server feeds back a first request response when receiving the first network request and identifying that a request behavior identifier is a request trending behavior identifier;
and the first access mode determining unit is used for determining that the target request access mode of the initial form processing request is a request direct access mode if the first request response sent by the server side is received within a preset time period.
Optionally, the first access manner determining module 502 further includes:
The second re-packet generating unit is configured to generate a first network request according to the first target packet, and send the first network request to a server, so that the server, when receiving the first network request and identifying that the request behavior identifier is a request trending behavior identifier, feeds back a first request response, and if the first request response sent by the server is not received within a preset time period, generates a second re-packet based on a second packet re-combining manner according to the request meta-information;
the message transcoding unit is used for binary transcoding the second recombined message, and adding a request behavior identifier into a message request header of the transcoded second recombined message to obtain a second target message;
The second network request generating unit is used for generating a second network request according to the second target message, and sending the second network request to a server side so that the server side can feed back a second request response when receiving the second network request and recognizing that the request behavior identifier is a request trending behavior identifier;
And the second access mode determining unit is used for determining that the target request access mode of the initial form processing request is a streaming message request access mode if the second request response sent by the server is received within a preset time period.
Optionally, the first access manner determining module 502 further includes:
The message representation generating unit is configured to generate a second network request according to the second target message, and send the second network request to a server, so that the server feeds back a second request response when receiving the second network request and identifying that the request behavior identifier is a request probe behavior identifier, and if the second request response sent by the server is not received within a preset time period, determines a request message identifier according to a request address and a request content in the request meta-information;
A third recombinant message generating unit, configured to generate a third recombinant message based on a third message reassembling manner according to the request message identifier and the request meta information;
a third target message generating unit, configured to add a request behavior identifier to a message request header of the third reassembled message, to obtain a third target message;
The third network request generating unit is used for generating a third network request according to the third target message, and sending the third network request to a server side so that the server side can feed back a third request response when receiving the third network request and recognizing that the request behavior identifier is a request trending behavior identifier;
And the third access mode determining unit is used for determining that the target request access mode of the initial form processing request is a packet request access mode if the third request response sent by the server is received within a preset time period.
Optionally, the first access manner determining module 502 further includes:
a message reorganizing unit, configured to perform a message reorganizing operation on the third reorganizing message if a third request response sent by the server is not received within a preset time period, to obtain an equal-division reorganizing message, and generate a third network sub-request according to the equal-division reorganizing message;
A third network request sending unit, configured to send the third network sub-request to a server, so that the server feeds back a third sub-request response when receiving the third network sub-request and identifying that the request behavior identifier is a request probe behavior identifier;
And the message space information determining unit is used for determining the message space information of the equally divided and recombined message if the third sub-request response sent by the server is received within the preset time period.
Optionally, the apparatus further includes:
The first parameter value determining module is used for updating the request mode parameters in the preset storage space to preset first parameter values if the target request access mode is a request direct access mode after determining the target request access mode of the initial form processing request; and
The second parameter value determining module is used for updating the request mode parameters in the preset storage space to preset second parameter values if the target request access mode is a streaming message request access mode; and
And the third parameter value determining module is used for updating the request mode parameters in the preset storage space to preset third parameter values if the target request access mode is a message subpackage request access mode.
Optionally, the apparatus further includes:
The first mode determining module is used for determining that the request direct access mode is the target request access mode of the initial form request if the request type of the initial form request is the submitted request type and the request mode parameter under the preset storage space is determined to be a first parameter value; and
The second mode determining module is used for determining that the streaming message request access mode is the target request access mode of the initial form request if the request type of the initial form request is the submitted request type and the request mode parameter under the preset storage space is determined to be a second parameter value; and
And the third mode determining module is used for determining that the packet request access mode is determined to be the target request access mode of the initial form request if the request type of the initial form request is the submitted request type and the request mode parameter under the preset storage space is determined to be a third parameter value.
The form request processing device provided by the embodiment of the invention can execute the form request processing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example six
Fig. 6 is a schematic structural diagram of a form request processing device according to a sixth embodiment of the present invention. The form request processing device provided by the embodiment of the invention can be suitable for the situations of automatically submitting and safely processing forms under the scene of higher safety requirements on the forms submitted by a service system, and can be realized in a form of hardware and/or software, as shown in fig. 6, and the device can be configured at a server side and specifically comprises: a target processing request acquisition module 601, a target processing manner determination module 602, and a service call request generation module 603. Wherein,
The target processing request acquisition module is used for acquiring a target form processing request sent by the client;
The target processing mode determining module is used for determining a target request processing mode according to the target form processing request;
the service call request generation module is used for generating a corresponding service call request based on the target request processing mode;
the method for determining the target form processing request comprises the following steps: the client acquires an initial form processing request; if the request type of the initial form request is a submitted request type and the request mode parameter under the preset storage space is determined to be a null value, performing network request behavior sounding operation according to a preset sounding task arrangement mode, and determining a target request access mode of the initial form processing request; if the request type of the initial form request is the acquisition request type, determining a request direct access mode as a target request access mode of the initial form request; and generating a target form processing request according to a message grouping mode corresponding to the target request access mode.
According to the technical scheme, different target request modes are determined according to the request types, and the target request processing mode is determined according to the prying task under the condition that the request modes cannot be determined according to the different request types, so that the safety processing of the form request is realized, and the service call of related service is realized by considering different processing modes of the form request under the scene of higher safety requirements.
Example seven
Fig. 7 shows a schematic diagram of an electronic device 70 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the electronic device 70 includes at least one processor 71, and a memory, such as a Read Only Memory (ROM) 72, a Random Access Memory (RAM) 73, etc., communicatively connected to the at least one processor 71, wherein the memory stores a computer program executable by the at least one processor, and the processor 71 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 72 or the computer program loaded from the storage unit 78 into the Random Access Memory (RAM) 73. In the RAM 73, various programs and data required for the operation of the electronic device 70 may also be stored. The processor 71, the ROM 72 and the RAM 73 are connected to each other via a bus 74. An input/output (I/O) interface 75 is also connected to bus 74.
Various components in the electronic device 70 are connected to the I/O interface 75, including: an input unit 76 such as a keyboard, a mouse, etc.; an output unit 77 such as various types of displays, speakers, and the like; a storage unit 78 such as a magnetic disk, an optical disk, or the like; and a communication unit 79 such as a network card, modem, wireless communication transceiver, etc. The communication unit 79 allows the electronic device 70 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Processor 71 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 71 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 71 performs the various methods and processes described above, such as the form request processing method.
In some embodiments, the form request processing method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 78. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 70 via the ROM 72 and/or the communication unit 79. When the computer program is loaded into RAM 73 and executed by processor 71, one or more steps of the form request processing method described above may be performed. Alternatively, in other embodiments, processor 71 may be configured to perform the form request processing method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (12)

1. The form request processing method is characterized by being applied to a client and comprising the following steps of:
Acquiring an initial form processing request;
If the request type of the initial form request is a submitted request type and the request mode parameter under the preset storage space is determined to be a null value, performing network request behavior sounding operation according to a preset sounding task arrangement mode, and determining a target request access mode of the initial form processing request; and
If the request type of the initial form request is the acquisition request type, determining a request direct access mode as a target request access mode of the initial form request;
Generating a target form processing request according to a message grouping mode corresponding to the target request access mode;
And sending the target form processing request to a server side so that the server side can determine a target request processing mode according to the target form processing request and generate a corresponding service call request based on the target request processing mode.
2. The method of claim 1, wherein the performing network request behavior probing operation according to a preset probing task arrangement mode, and determining a target request access mode of the initial form processing request, comprises:
carrying out request analysis on the initial form processing request to obtain request meta-information;
generating a first recombined message based on a first message recombination mode according to the request meta information, and adding a request behavior identifier in a message request head of the first recombined message to obtain a first target message; the request behavior identification comprises formal request behavior representation and request prying behavior identification;
Generating a first network request according to the first target message, and sending the first network request to a server, so that the server feeds back a first request response when receiving the first network request and recognizing that a request behavior identifier is a request trending behavior identifier;
And if the first request response sent by the server is received within the preset time period, determining that the target request access mode of the initial form processing request is a request direct access mode.
3. The method according to claim 2, wherein after generating a first network request according to the first target packet and sending the first network request to a server, the server feeding back a first request response after receiving the first network request and identifying that a request behavior identifier is a request probing behavior identifier, the method comprises:
If the first request response sent by the server is not received within a preset time period, generating a second retransmission message based on a second message retransmission mode according to the request meta-information;
binary transcoding is carried out on the second recombined message, and a request behavior identifier is added in a message request head of the transcoded second recombined message to obtain a second target message;
Generating a second network request according to the second target message, and sending the second network request to a server, so that the server feeds back a second request response when receiving the second network request and recognizing that the request behavior identifier is a request trending behavior identifier;
And if the second request response sent by the server is received within the preset time period, determining that the target request access mode of the initial form processing request is a streaming message request access mode.
4. The method of claim 3, wherein after generating a second network request according to the second target packet and sending the second network request to a server, the server feeding back a second request response when receiving the second network request and identifying that the request behavior identifier is a request probe behavior identifier, the method comprises:
if a second request response sent by the server is not received within a preset time period, determining a request message identifier according to a request address and request content in the request meta-information;
Generating a third recombinant message based on a third message recombination mode according to the request message identifier and the request meta information;
Adding a request behavior identifier in a message request header of the third recombined message to obtain a third target message;
Generating a third network request according to the third target message, and sending the third network request to a server, so that the server feeds back a third request response when receiving the third network request and recognizing that the request behavior identifier is a request trending behavior identifier;
and if a third request response sent by the server is received within a preset time period, determining that the target request access mode of the initial form processing request is a packet request access mode.
5. The method according to claim 4, wherein after generating a third network request according to the third target packet and sending the third network request to a server, the server feeds back a third request response when receiving the third network request and identifying that the request behavior identifier is a request probe behavior identifier, the method comprises:
If a third request response sent by the server is not received within a preset time period, carrying out message recombination operation on the third recombined message to obtain an equal-fraction recombined message, and generating a third network sub-request according to the equal-fraction recombined message;
The third network sub-request is sent to a server side, so that the server side feeds back a third sub-request response when receiving the third network sub-request and recognizing that the request behavior identifier is a request trending behavior identifier;
and if the third sub-request response sent by the server is received within the preset time period, determining the message space information of the equally divided and recombined message.
6. The method of claim 1, further comprising, after determining the target request access pattern of the initial form handling request:
If the target request access mode is a request direct access mode, updating the request mode parameters in the preset storage space to preset first parameter values; and
If the target request access mode is a streaming message request access mode, updating the request mode parameters in the preset storage space to preset second parameter values; and
And if the target request access mode is a message packet request access mode, updating the request mode parameters in the preset storage space to preset third parameter values.
7. The method of claim 6, wherein the method further comprises:
If the request type of the initial form request is a submitted request type and the request mode parameter under the preset storage space is determined to be a first parameter value, determining that the request direct access mode is determined to be a target request access mode of the initial form request; and
If the request type of the initial form request is a submitted request type and the request mode parameter under the preset storage space is determined to be a second parameter value, determining that the streaming message request access mode is determined to be a target request access mode of the initial form request; and
If the request type of the initial form request is the submitted request type and the request mode parameter in the preset storage space is determined to be a third parameter value, determining that the packet request access mode is determined to be the target request access mode of the initial form request.
8. The form request processing method is characterized by being applied to a server and comprising the following steps:
Acquiring a target form processing request sent by a client;
determining a target request processing mode according to the target form processing request;
generating a corresponding service call request based on the target request processing mode;
the method for determining the target form processing request comprises the following steps: the client acquires an initial form processing request; if the request type of the initial form request is a submitted request type and the request mode parameter under the preset storage space is determined to be a null value, performing network request behavior sounding operation according to a preset sounding task arrangement mode, and determining a target request access mode of the initial form processing request; if the request type of the initial form request is the acquisition request type, determining a request direct access mode as a target request access mode of the initial form request; and generating a target form processing request according to a message grouping mode corresponding to the target request access mode.
9. A form request processing apparatus, configured in a client, comprising:
The initial request acquisition module is used for acquiring an initial form processing request;
The first access mode determining module is used for performing network request behavior prying operation according to a preset prying task arrangement mode and determining a target request access mode of the initial form processing request if the request type of the initial form request is a submitted request type and the request mode parameter under a preset storage space is determined to be a null value; and
The second access mode determining module is used for determining a request direct access mode as a target request access mode of the initial form request if the request type of the initial form request is an acquisition request type;
The target processing request generation module is used for generating a target form processing request according to a message packet mode corresponding to the target request access mode;
The target processing request sending module is used for sending the target form processing request to a server side so that the server side can determine a target request processing mode according to the target form processing request and generate a corresponding service calling request based on the target request processing mode.
10. A form request processing apparatus, configured at a server, comprising:
The target processing request acquisition module is used for acquiring a target form processing request sent by the client;
The target processing mode determining module is used for determining a target request processing mode according to the target form processing request;
the service call request generation module is used for generating a corresponding service call request based on the target request processing mode;
the method for determining the target form processing request comprises the following steps: the client acquires an initial form processing request; if the request type of the initial form request is a submitted request type and the request mode parameter under the preset storage space is determined to be a null value, performing network request behavior sounding operation according to a preset sounding task arrangement mode, and determining a target request access mode of the initial form processing request; if the request type of the initial form request is the acquisition request type, determining a request direct access mode as a target request access mode of the initial form request; and generating a target form processing request according to a message grouping mode corresponding to the target request access mode.
11. An electronic device, the electronic device comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the form request processing method of any one of claims 1-7 and/or claim 8.
12. A computer readable storage medium storing computer instructions for causing a processor to implement the form request processing method of any one of claims 1-7 and/or claim 8 when executed.
CN202410667345.6A 2024-05-28 2024-05-28 Form request processing method, device, equipment and storage medium Pending CN118250341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410667345.6A CN118250341A (en) 2024-05-28 2024-05-28 Form request processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410667345.6A CN118250341A (en) 2024-05-28 2024-05-28 Form request processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118250341A true CN118250341A (en) 2024-06-25

Family

ID=91556897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410667345.6A Pending CN118250341A (en) 2024-05-28 2024-05-28 Form request processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118250341A (en)

Similar Documents

Publication Publication Date Title
CN108833950B (en) Barrage message issuing method, server, system and storage medium
WO2019019645A1 (en) Method and apparatus for executing information pushing task, and computer device and storage medium
CN107688733B (en) Service interface calling method, device, user terminal and readable storage medium
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN109636460B (en) Service processing method, device, equipment and storage medium
CN116614495A (en) Data uploading method, device, equipment, storage medium and program product
CN114374686B (en) File processing method, device and equipment based on browser
CN118250341A (en) Form request processing method, device, equipment and storage medium
CN110636114B (en) Customer service access method, access system, service system and cloud platform
CN114268799A (en) Streaming media transmission method and device, electronic equipment and medium
CN107704557B (en) Processing method and device for operating mutually exclusive data, computer equipment and storage medium
CN114449031B (en) Information acquisition method, device, equipment and storage medium
CN114448703B (en) Request processing method, request processing device, electronic equipment and storage medium
CN112671822B (en) Service request processing method, device, storage medium, server and system
CN115080205B (en) Task execution method, device, electronic equipment and readable storage medium
CN117670236A (en) Mobile-terminal-based to-be-handled flow approval method, device, equipment and medium
CN116185240A (en) Information interaction method and device
CN117556116A (en) Method and device for processing request information, electronic equipment and storage medium
CN117499873A (en) Short message processing method, device, electronic equipment and storage medium
CN116506426A (en) File uploading method, device, equipment and storage medium
CN117041191A (en) Task execution method and device in instant messaging and electronic equipment
CN117278563A (en) Message processing method, device, distributed system, electronic equipment and storage medium
CN118018533A (en) Streaming media data transmission method, device, equipment and medium
CN116781572A (en) Service availability detection method, device, equipment and storage medium
CN116339745A (en) Method, device, equipment and storage medium for analyzing communication data between equipment

Legal Events

Date Code Title Description
PB01 Publication