CN111131370A - Method, device and system for detecting whether service call is correct - Google Patents

Method, device and system for detecting whether service call is correct Download PDF

Info

Publication number
CN111131370A
CN111131370A CN201811296909.0A CN201811296909A CN111131370A CN 111131370 A CN111131370 A CN 111131370A CN 201811296909 A CN201811296909 A CN 201811296909A CN 111131370 A CN111131370 A CN 111131370A
Authority
CN
China
Prior art keywords
client
target site
network
correct
service
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.)
Granted
Application number
CN201811296909.0A
Other languages
Chinese (zh)
Other versions
CN111131370B (en
Inventor
吴明丹
宋军珂
罗雯雯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811296909.0A priority Critical patent/CN111131370B/en
Publication of CN111131370A publication Critical patent/CN111131370A/en
Application granted granted Critical
Publication of CN111131370B publication Critical patent/CN111131370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements

Abstract

The invention provides a method, a device and a system for detecting whether service calling is correct, wherein the method comprises the following steps: monitoring network request content sent by a client, identifying whether a network identifier in a dotting log corresponds to a target site or not when the network request content is monitored to contain the dotting log, and determining that the client has correct setting on calling information of target service if the network identifier in the dotting log corresponds to the target site. When the plug-in the client identifies that the network request content submitted by the client contains the dotting log, whether the network identifier in the dotting log and the target site have a corresponding relation is determined, so that whether the client sets the target service calling information correctly is determined without being limited by a use scene, the identification accuracy and reliability are high, and the technical problems that in the related technology, whether the setting is correct is determined by determining whether the client receives the user data through the server, the network request content is easily interfered by network factors and self factors, and the accuracy is low are solved.

Description

Method, device and system for detecting whether service call is correct
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for detecting whether a service invocation is correct.
Background
With the development of internet technology, many functions on a website need to be implemented by calling a service of a third-party product, for example, hundred-degree statistics is a product which is specially used for providing traffic-related statistical data for the website, and such products all require a user to correctly set called related information to call the service, so that it is very important to determine whether the calling information setting is correct.
In the related art, there are two main determination methods, one is to determine whether the server side running the service receives the relevant data of the client website to determine whether the setting information is correct, but this method is easily interfered by network factors and the factors of the server itself, which causes the server side to incorrectly identify the server side abnormality as the client side setting error, and the accuracy is low.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first object of the present invention is to provide a method for detecting whether a service invocation is correct, which determines whether a network identifier in a dotting log and a target site have a corresponding relationship when a plug-in a client identifies that a request content includes the dotting log, thereby determining whether a client sets a correct target service invocation information, which is not limited by a scene and an environment, and has a high identification accuracy.
A second object of the present invention is to propose a device for detecting whether a service invocation is correct.
A third object of the invention is to propose a system for detecting whether a service invocation is correct.
A fourth object of the invention is to propose a computer device.
A fifth object of the invention is to propose a non-transitory computer-readable storage medium.
To achieve the above object, an embodiment of a first aspect of the present invention provides a method for detecting whether a service call is correct, where the method is performed by a plug-in a client for accessing a target site, and the method includes:
monitoring network request content sent by the client;
when the network request content is monitored to contain a dotting log, identifying whether a network identifier in the dotting log corresponds to the target site;
if the network identification in the dotting log corresponds to the target site, determining that the client has correct setting for the calling information of the target service; and the target service is used for carrying out data processing according to the dotting log to obtain the access information of the target site.
In order to achieve the above object, a second embodiment of the present invention provides an apparatus for detecting whether a service call is correct, where the apparatus is disposed at a client for accessing a target site, and the apparatus includes:
the monitoring module is used for monitoring the network request content sent by the client;
the identification module is used for identifying whether a network identifier in a dotting log corresponds to the target site or not when the fact that the dotting log is contained in the network request content is monitored;
the processing module is used for determining that the calling information of the client to the target service is correctly set if the network identifier in the dotting log corresponds to the target site; and the target service is used for carrying out data processing according to the dotting log to obtain the access information of the target site.
In order to achieve the above object, an embodiment of a third aspect of the present invention provides a system for detecting whether a service invocation is correct, where the system includes a client for accessing a target site, and a detection server for detecting whether the client invokes a target service correctly;
wherein a plug-in within the client is configured to execute the method for detecting whether a service call is correct according to any one of claims 1 to 3;
and the detection server is used for acquiring a detection result from the client and sending out prompt information whether the target service call is correct or not according to the detection result.
To achieve the above object, a fourth embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the method for detecting whether a service call is correct according to the first aspect.
In order to achieve the above object, a fifth embodiment of the present invention proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method for detecting whether a service call is correct as described in the foregoing first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the method comprises the steps of monitoring network request content sent by a client side, identifying whether a network identifier in a dotting log corresponds to a target site or not when the network request content is monitored to contain the dotting log, and determining whether calling information of the client side to the target service is set correctly if the network identifier in the dotting log corresponds to the target site, wherein the target service is used for carrying out data processing according to the dotting log to obtain access information of the target site, and determining whether the network identifier in the dotting log and the target site have a corresponding relation or not when the plug-in the client side identifies that the network request content submitted by the client side contains the dotting log, so that whether the calling information of the client side to the target service is set correctly or not is determined, and the accuracy and the reliability are high.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart illustrating a method for detecting whether a service call is correct according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a system for detecting whether a service call is correct according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for detecting whether a service call is correct according to an embodiment of the present invention; and
FIG. 4 illustrates a block diagram of an exemplary computer device suitable for use in implementing embodiments of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes a method, an apparatus and a system for detecting whether a service call is correct according to an embodiment of the present invention with reference to the drawings.
Fig. 1 is a flowchart illustrating a method for detecting whether a service call is correct according to an embodiment of the present invention.
As shown in fig. 1, the method comprises the steps of:
step 101, monitoring network request content sent by a client.
The client refers to a user side, and is a program corresponding to the server and capable of providing a service for the client. The client may access the target site to obtain corresponding data, for example, the target site may be a treasure network, a new wave network, or a fox search network, and the obtained data may be, for example, a page of the target site.
The execution subject of the embodiment of the invention is a plug-in the client.
Specifically, a plug-in the client continuously monitors network request content sent by the client, where the network request content refers to a network access request sent by the client to a site requesting access, and as a possible implementation manner, the network access request may be a network access request of a hypertext transfer protocol HTTP.
Step 102, when it is monitored that the network request content includes a dotting log, identifying whether a network identifier in the dotting log corresponds to a target site.
The log is clicked, which operations the user has done in the target website are recorded, for example, the number of clicks of the user at a certain position in a page or the number of times of triggering a certain control in a program is counted.
Because a server side running a target service often runs a plurality of services at the same time, in order for a client side to correctly call the target service for data processing of a target site, a network identifier corresponding to the target service needs to be carried in a dotting log, so that the server side receiving the dotting log can call the target service according to the network identifier carried in the dotting log. The form of the specific network identification may include an IP address, or the same resource locator URL.
Specifically, the plug-in analyzes the network request content sent by the client, identifies whether the network request content contains a dotting log, and identifies the network identifier in the dotting log if the network request content contains the dotting log. The client stores the corresponding relationship between the network identifier and the domain name of the site, where the corresponding relationship may be obtained in advance by the client from a server running the target service and maintained to be updated synchronously. If the network identifier in the dotting log and the domain name of the target site have a corresponding relationship, it is indicated that the network identifier in the dotting log corresponds to the target site, and on the contrary, it is determined that the network identifier in the dotting log does not correspond to the target site.
For example, the domain name of the target site is abc.com, and if the obtained network request content containing the dotting log is analyzed and identified, the network identification https:// hm.baidu.com/hm.gif? And ABC, determining that the network identifier and the target site have a corresponding relationship through inquiry, indicating that the dotting log can be identified by a server running the target service, and calling the target service to perform data processing so as to generate access information of the target site.
And 103, if the network identifier in the dotting log corresponds to the target site, determining that the calling information of the client to the target service is correctly set.
The target service is used for performing data processing according to the dotting log to obtain access information of the target site, such as the number of visitors, average access time length, browsing amount and the like.
Specifically, if the network identifier in the dotting log included in the network request sent by the client corresponds to the target site, it is determined that the client has correct setting for the calling information of the target service, that is, the client can send the dotting log to the site corresponding to the server running the target service, so as to realize the calling of the target service, detect whether the setting of the calling information of the target service at the client is correct or not, and improve the reliability and accuracy of the identification without being limited by the network condition and the use scene.
Optionally, after determining that the calling information of the target service by the client is correctly set, the plug-in of the client may further determine whether a network response returned by the server running the target service is received, where the network response is used to instruct the server running the target service to obtain a network request including a dotting log, so that the server running the target service may perform data processing according to the dotting log to obtain access information of the target site.
In one scenario, for example, a client is a browser, a target site to be accessed is a tabby web, a domain name is taobao.com, a target service to be called is a statistical service provided by a hundred-degree statistical tool, a plug-in at a browser end continuously monitors content of a network request sent by a browser window, analyzes the content of the network request, identifies whether the content of the network request includes a dotting log, and further obtains a network identifier carried by the dotting log if the content of the network request includes the dotting log, where the network identifier includes: https:// hm.baidu.com/hm.gif? taobao. The client side obtains the corresponding relation between the network identifier and the domain name of the site from the server side running the hundred-degree statistic tool in advance, and if the domain name of the target site taobao.com and the network identifier https:// hm.baidu.com/hm.gif? And determining that the network identifier in the dotting log corresponds to the target site to be accessed by using the corresponding relation of the taobao, namely determining that the client side is correctly set for the Baidu statistical call information of the Taobao. Therefore, the server side running the Baidu statistic can receive a network request which is sent by the client side and contains the dotting log of the Taobao, so that the Baidu statistic can analyze and process data in the dotting log of the Taobao to determine access information of the Taobao, such as the total number of visitors, the click rate of the visitors and the like. Whether the network request content contains the dotting log or not and whether the network identification contained in the dotting log is applied to the target site or not are detected through a plug-in the client, so that whether the calling information of the client to the target service is set correctly or not is determined, and the recognition accuracy is high.
In the method for detecting whether a service call is correct or not according to this embodiment, a plug-in is set in a client for accessing a target site, network request content sent by the client is monitored through the plug-in, when it is monitored that the network request content includes a dotting log, whether a network identifier in the dotting log corresponds to the target site or not is identified, and if the network identifier in the dotting log corresponds to the target site, it is determined that the client has correct setting for call information of the target service. The network request submitted by the user at the client is directly identified through the plug-in the client, so that whether the calling information setting of the client to the target service is correct or not is determined, and the accuracy of identifying whether the information setting of the user is correct or not is improved.
In order to implement the foregoing embodiments, this embodiment provides a system for detecting whether a service invocation is correct, and fig. 2 is a schematic structural diagram of a system for detecting whether a service invocation is correct according to an embodiment of the present invention.
As shown in fig. 2, the system includes: a client 21 and a detection server 22.
The client 21 is configured to access a target site, and the client 21 may further include a plug-in 210, where the plug-in 210 is configured to implement the method for detecting whether the service call is correct according to the corresponding embodiment in fig. 1.
And the detection server 22 is configured to obtain a detection result from the client 21, and send a prompt message indicating whether the target service call is correct according to the detection result.
As a possible implementation manner, the detection server 22 is further configured to determine whether the call of the target site page to the target service is correct.
Specifically, the detection server 22 is further configured to obtain, by a web crawler, relevant information of a target site page that conforms to the browser type according to the domain name of the target site and the set browser type, where the browser type is preset by a user when the client performs call information setting of the target service, and indicates whether the target site operates on a computer side or a mobile side, and further, the detection server 22 performs code analysis on the relevant information, and compares the code analysis with page information, which is stored in the detection server 22 and corresponds to the target site, if the information conforms to the information, it is determined that the target service is called correctly by the target site page, otherwise, it is determined that the call is incorrect, and it is achieved that the detection server 22 crawls the target site page by the crawler, performs analysis and comparison, and determines whether the call information setting of the target service is correct.
It should be noted that the detection server 22 detects whether the call information setting of the target site page to the target service is correct, and is only used in a scenario where the crawler tool can obtain the relevant information of the target site page that meets the browser type, when the crawler work cannot obtain the relevant information of the target site page, for example, the client jumps from the current uniform resource locator URL to another new URL that is not http 30x jump, for example, after the user successfully loads the page, jumps to another URL through javascript, at this time, the crawler tool fails, that is, the relevant information of the target site page cannot be obtained, and thus it cannot be determined whether the call of the target site page to the target service is correct, in this case, the method for detecting whether the call of the service is correct corresponding to the embodiment of fig. 1 of the present invention that can be executed by using the plug-in 210 in the client 21, to determine whether the client's call information setting for the target service is correct.
It should be further understood that the detection server 22 in this embodiment and the server for running the target service in the corresponding embodiment of fig. 1 may be the same server or may be separate servers.
In the system for detecting whether a service call is correct according to this embodiment, a plug-in a client for accessing a target site is used to execute the method for detecting whether a service call is correct according to the embodiment shown in fig. 1, so that whether a call information of a target service is set correctly at the client is detected without being limited by a scene, the detection accuracy is high, a detection server is used to obtain a detection result from the client, and prompt information indicating whether a target service call is correct is sent according to the detection result, and in addition, the detection server can also determine whether a target service call by using page related information of the target site obtained by a web crawler according to a domain name of the target site and a browser type preset by a user is correct.
In order to implement the foregoing embodiment, an embodiment of the present invention further provides a device for detecting whether a service invocation is correct, where the device is disposed in a client for accessing a target site.
Fig. 3 is a schematic structural diagram of an apparatus for detecting whether a service invocation is correct according to an embodiment of the present invention, as shown in fig. 3, the apparatus includes: a monitoring module 31, an identification module 32 and a processing module 33.
And the monitoring module 31 is configured to monitor content of the network request sent by the client.
The identifying module 32 is configured to identify whether the network identifier in the dotting log corresponds to the target site when it is monitored that the network request content includes the dotting log.
The processing module 33 is configured to determine that the client has correct call information for the target service if the network identifier in the dotting log corresponds to the target site; and the target service is used for carrying out data processing according to the dotting log to obtain the access information of the target site.
Optionally, as a possible solid line manner of the embodiment of the present invention, the apparatus further includes: and determining a module.
And the determining module is used for determining whether a network response is received, wherein the network response is used for indicating the server side running the target service to acquire the network request containing the dotting log.
As a possible implementation manner, the identification module 32 is specifically configured to:
acquiring a corresponding relation between a network identifier and a domain name of a site from a server side running a target service; and if the network identifier in the dotting log has a corresponding relation with the domain name of the target site, determining that the network identifier in the dotting log corresponds to the target site.
It should be noted that the foregoing explanation of the method embodiment is also applicable to the apparatus of this embodiment, and is not repeated here
In the apparatus for detecting whether a service invocation is correct according to this embodiment, a plug-in is set in a client for accessing a target site, a network request content sent by the client is monitored by the plug-in, when it is monitored that the network request content includes a dotting log, whether a network identifier in the dotting log corresponds to the target site is identified, and if the network identifier in the dotting log corresponds to the target site, it is determined that the invocation information of the target service is correctly set by the client. The method and the device have the advantages that the network request submitted by the user at the client is directly identified through the plug-in the client, whether the calling information setting of the client to the target service is correct or not is detected, the identification efficiency and accuracy of whether the information setting of the user is correct or not are improved, and the technical problems that whether the setting is correct or not is determined through the server side determining whether the user data is received or not, the interference of network factors and self factors is easily caused, and the identification accuracy is low in the related technology are solved.
In order to implement the foregoing embodiments, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the method for detecting whether the service call is correct according to the foregoing method embodiments.
FIG. 4 illustrates a block diagram of an exemplary computer device suitable for use in implementing embodiments of the present application. The computer device 12 shown in fig. 4 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present application.
As shown in FIG. 4, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read Only memory (CD-ROM), a Digital versatile disk Read Only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described herein.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the Internet) via Network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, for example, implementing the methods mentioned in the foregoing embodiments, by executing programs stored in the system memory 28.
In order to implement the foregoing embodiments, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method for detecting whether a service call is correct according to the foregoing method embodiment.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A method for detecting whether a service invocation is correct, wherein the method is performed by a plug-in within a client for accessing a targeted site, the method comprising the steps of:
monitoring network request content sent by the client;
when the network request content is monitored to contain a dotting log, identifying whether a network identifier in the dotting log corresponds to the target site;
if the network identification in the dotting log corresponds to the target site, determining that the client has correct setting for the calling information of the target service; and the target service is used for carrying out data processing according to the dotting log to obtain the access information of the target site.
2. The method of claim 1, wherein after determining that the client's invocation of the target service is correct, further comprising:
and receiving a network response, wherein the network response is used for indicating a server side running the target service to acquire the network request containing the dotting log.
3. The method of claim 1 or 2, wherein the identifying whether the network identification in the dotting log corresponds to the target site comprises:
acquiring a corresponding relation between a network identifier and a domain name of a site from a server side running the target service;
and if the network identifier in the dotting log has a corresponding relation with the domain name of the target site, determining that the network identifier in the dotting log corresponds to the target site.
4. An apparatus for detecting whether a service invocation is correct, wherein the apparatus is arranged at a client for accessing a target site, and the apparatus comprises:
the monitoring module is used for monitoring the network request content sent by the client;
the identification module is used for identifying whether a network identifier in a dotting log corresponds to the target site or not when the fact that the dotting log is contained in the network request content is monitored;
the processing module is used for determining that the calling information of the client to the target service is correctly set if the network identifier in the dotting log corresponds to the target site; and the target service is used for carrying out data processing according to the dotting log to obtain the access information of the target site.
5. The apparatus of claim 4, further comprising:
and the determining module is used for determining whether a network response is received, wherein the network response is used for indicating a server side running the target service to acquire the network request containing the dotting log.
6. The apparatus of claim 4 or 5, wherein the identification module comprises:
an obtaining unit, configured to obtain, from a server that operates the target service, a correspondence between a network identifier and a domain name of a site;
and the identification unit is used for determining that the network identifier in the dotting log corresponds to the target site if the network identifier in the dotting log and the domain name of the target site have a corresponding relationship.
7. A system for detecting whether a service invocation is correct, the system comprising a client for accessing a target site; the system also comprises a detection server for detecting whether the client side correctly calls the target service;
wherein a plug-in within the client is configured to execute the method for detecting whether a service call is correct according to any one of claims 1 to 3;
and the detection server is used for acquiring a detection result from the client and sending out prompt information whether the target service call is correct or not according to the detection result.
8. The system of claim 7,
the detection server is further used for acquiring relevant information of the target site page according to the domain name of the target site and the set browser type through a web crawler; and carrying out code analysis on the related information to determine whether the target site page calls the target service correctly.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a method for detecting whether a service call is correct as claimed in any one of claims 1 to 3 when executing the program.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for detecting whether a service call is correct according to any one of claims 1 to 3.
CN201811296909.0A 2018-11-01 2018-11-01 Method, device and system for detecting whether service call is correct Active CN111131370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811296909.0A CN111131370B (en) 2018-11-01 2018-11-01 Method, device and system for detecting whether service call is correct

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811296909.0A CN111131370B (en) 2018-11-01 2018-11-01 Method, device and system for detecting whether service call is correct

Publications (2)

Publication Number Publication Date
CN111131370A true CN111131370A (en) 2020-05-08
CN111131370B CN111131370B (en) 2022-09-27

Family

ID=70495040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811296909.0A Active CN111131370B (en) 2018-11-01 2018-11-01 Method, device and system for detecting whether service call is correct

Country Status (1)

Country Link
CN (1) CN111131370B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671728A (en) * 2020-12-14 2021-04-16 中科曙光国际信息产业有限公司 Network access request acquisition method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080028444A1 (en) * 2006-07-27 2008-01-31 William Loesch Secure web site authentication using web site characteristics, secure user credentials and private browser
CN102456063A (en) * 2011-03-02 2012-05-16 奇智软件(北京)有限公司 Webpage access error correction method and system
US20170048272A1 (en) * 2014-04-25 2017-02-16 Securebrain Corporation Fraud detection network system and fraud detection method
WO2017177590A1 (en) * 2016-04-14 2017-10-19 上海牙木通讯技术有限公司 Method for associating domain name with website access behavior

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080028444A1 (en) * 2006-07-27 2008-01-31 William Loesch Secure web site authentication using web site characteristics, secure user credentials and private browser
CN102456063A (en) * 2011-03-02 2012-05-16 奇智软件(北京)有限公司 Webpage access error correction method and system
US20170048272A1 (en) * 2014-04-25 2017-02-16 Securebrain Corporation Fraud detection network system and fraud detection method
WO2017177590A1 (en) * 2016-04-14 2017-10-19 上海牙木通讯技术有限公司 Method for associating domain name with website access behavior

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671728A (en) * 2020-12-14 2021-04-16 中科曙光国际信息产业有限公司 Network access request acquisition method and device, computer equipment and storage medium
CN112671728B (en) * 2020-12-14 2023-01-03 中科曙光国际信息产业有限公司 Network access request acquisition method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111131370B (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN110674025B (en) Interactive behavior monitoring method and device and computer equipment
EP3026864A1 (en) Method and device for identifying bot access
US20190372878A1 (en) Web site reachability management for content browsing
CN109710439B (en) Fault processing method and device
CN109889511B (en) Process DNS activity monitoring method, equipment and medium
US20110093954A1 (en) Apparatus and method for remotely diagnosing security vulnerabilities
CN109922079B (en) Service agent method and device based on block chain
JP2010541030A (en) Monitor computer network resources with service level objectives
CN109344046B (en) Data processing method, device, medium and electronic equipment
CN113903389A (en) Slow disk detection method and device and computer readable and writable storage medium
US9507655B2 (en) Tracking asynchronous entry points for an application
CN111131370B (en) Method, device and system for detecting whether service call is correct
CN103618786A (en) Playing error processing method and server
CN111538922B (en) Link jump method, application client, device and storage medium
US10191844B2 (en) Automatic garbage collection thrashing monitoring
CN110784364B (en) Data monitoring method and device, storage medium and terminal
CN114553663B (en) Abnormality detection method, abnormality detection device, abnormality detection equipment and storage medium
CN107483294B (en) Method and device for monitoring network request
CN113923190B (en) Equipment identification jump identification method and device, server and storage medium
CN110889065A (en) Page stay time determining method, device and equipment
CN114385457A (en) Application program data acquisition method, device, equipment and storage medium
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
US9858549B2 (en) Business transaction resource usage tracking
CN107342917B (en) Method and apparatus for detecting network device performance
CN107295088B (en) Dotting information monitoring method and device and client

Legal Events

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