Webpage downloading monitoring method and device
A webpage and monitoring unit technology, applied in the Internet field, can solve problems such as the inability to effectively monitor the downloading of external resources in webpages
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 It shows the implementation process of the network data download monitoring method provided by Embodiment 1 of the present invention, and the process of the method is described in detail as follows:
[0026] In step S101, the XML file of the webpage that the computer needs to access is acquired.
[0027] In this embodiment, a network capture software is set up by existing libcap (packet capture library, an open source network capture library), and a filter is set for the network capture software. Filter conditions include but are not limited to message filter conditions and address filter conditions. Wherein, the message filter condition is set to the Hypertext Transfer Protocol (HyperText Transfer Protocol, HTTP) protocol, which means that all ports or network ports that follow the HTTP protocol network data will be grabbed; the address filter condition is set to the IP of the web server address, to ensure that the webpage captured by the network packet capt...
Embodiment 2
[0035] figure 2 It shows the implementation flow of the network data download monitoring method provided by Embodiment 2 of the present invention, and the method process is described in detail as follows:
[0036] In step S201, the XML file of the webpage that the computer needs to access is acquired.
[0037] In step S202, the address of the external resource in the webpage is extracted from the XML file, and the address is stored in an address list.
[0038] Wherein, for the specific implementation process of steps S201-S202, refer to the description of steps S101-S102 in Embodiment 1, and details are not repeated here.
[0039] In step S203, monitor all data packets sent or received by the computer and related to the preset filtering conditions.
[0040] In this embodiment, the established network packet capture software is used to monitor all data packets sent or received by the computer and related to preset filter conditions. Wherein, the data packets sent by the com...
Embodiment 3
[0046] image 3 It shows the implementation process of the network data download monitoring method provided by Embodiment 3 of the present invention, and the method process is described in detail as follows:
[0047] In step S301, the XML file of the webpage that the computer needs to access is acquired.
[0048] In step S302, the address of the external resource in the webpage is extracted from the XML file, and the address is stored in an address list.
[0049] Wherein, for the specific implementation process of steps S301-S302, refer to the description of steps S101-S102 in Embodiment 1, and details are not repeated here.
[0050] In step S303, all data packets sent or received by the computer related to the preset filter conditions are monitored. For the specific implementation process, please refer to step S203 in the second embodiment, which will not be repeated here.
[0051] In step S304, when no response packet corresponding to the request packet of the external resou...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 