CN104980471A - Network request packet report method, device and system - Google Patents

Network request packet report method, device and system Download PDF

Info

Publication number
CN104980471A
CN104980471A CN201410142903.3A CN201410142903A CN104980471A CN 104980471 A CN104980471 A CN 104980471A CN 201410142903 A CN201410142903 A CN 201410142903A CN 104980471 A CN104980471 A CN 104980471A
Authority
CN
China
Prior art keywords
network
mobile terminal
network request
address
agent
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
CN201410142903.3A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410142903.3A priority Critical patent/CN104980471A/en
Publication of CN104980471A publication Critical patent/CN104980471A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a network request packet report method. The method comprises the steps of establishing a network connection with a mobile terminal; after the mobile terminal sends a first network request packet through the network connection according to a preset proxy address, receiving the first network request packet, wherein the first network request packet comprises an address of a target resource server and a request main body; according to a preset address of a processing server, reporting the first network request packet to the processing server; and generating, according to the first network request packet, a second network request packet comprising the request main body, and sending the second network request packet to the target resource server according to the address of the target resource server. Through adoption of the network request packet report method, the network request packet on the mobile terminal is indirectly reported to the processing server through proxy, and the processing server performs safe scanning according to the reported network request packet. The invention also provides a network request packet report device and system.

Description

Network request wraps reporting method, device and system
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of network request and wrap reporting method, device and system.
Background technology
There is a kind of traditional HTTP request at present and wrap reporting method, in order to test webpage function, a kind of Agent can be run on computers, tester initiates HTTP(Hypertext transfer protocol by the web browser that computer runs, HTTP) request bag, by Agent, HTTP request bag is sent to the server at request bag resource place, this Agent is reported to processing server after capturing this HTTP request bag simultaneously, carries out security sweep by security server to HTTP request bag.
But inventor finds that traditional HTTP request wraps reporting method, Agent only can run on common computer, the HTTP request on mobile terminal so just cannot be realized to wrap offer processing server.
Summary of the invention
Based on this, be necessary, for the problem that the HTTP request handbag on mobile terminal cannot be realized to report processing server in conventional art, to provide a kind of network request to wrap reporting method, device and system.
A kind of network request wraps reporting method, and described method comprises:
Set up network with mobile terminal to be connected;
After described mobile terminal have sent first network request bag according to the agent address preset by described network connection, receive described first network request bag; Described first network request handbag draws together address and the request text of target resource server;
According to the address of processing server of presetting described first network request wrapped and offer processing server;
Generate the second network request bag comprising described request text according to described first network request bag, and send described second network request bag according to the address of described target resource server to described target resource server.
A kind of network request wraps reporting device, and described network request is wrapped reporting device and comprised:
Network connection establishment module, is connected for setting up network with mobile terminal;
First network request bag receiver module, for after described mobile terminal have sent first network request bag according to the agent address preset by described network connection, receives described first network request bag; Described first network request handbag draws together address and the request text of target resource server;
Reporting module, offers processing server for described first network request being wrapped according to the address of processing server of presetting;
Second network request bag sending module, for generating the second network request bag comprising described request text according to described first network request bag, and send described second network request bag according to the address of described target resource server to described target resource server.
Above-mentioned network request wraps reporting method and device, set up after network is connected with mobile terminal, the first network request bag that mobile terminal receive sends, report this first network request bag, generate second network request bag according to first network request bag simultaneously, then second network request bag is sent to target resource server.So just achieve and the network request bag on mobile terminal is reported processing server indirectly by agency, and then processing server can carry out security sweep according to the network request bag reported, the network request bag of mobile terminal is sent to target resource server simultaneously, ensures that network request that mobile terminal sends can normal access destination Resource Server.
A kind of network request wraps reporting method, and described method comprises:
Mobile terminal and Agent Computer are set up network and are connected;
It is the address of described Agent Computer that described mobile terminal revises the agent address that described network connects;
Described mobile terminal sends network request bag according to described agent address to described Agent Computer; Described network request bag carries the address of target resource server;
Described Agent Computer receives described network request bag by Agent, described network request is wrapped offer processing server according to the address of the processing server preset, and according to the address of described target resource server, described network request bag is sent to target resource server.
A kind of network request wraps reporting system, and described system comprises mobile terminal and Agent Computer;
Described mobile terminal is used for setting up network with Agent Computer and is connected;
The agent address that described mobile terminal also connects for revising described network is the address of described Agent Computer;
Described mobile terminal is also for sending network request bag according to described agent address to described Agent Computer; Described network request bag carries the address of target resource server;
Described Agent Computer is used for receiving described network request bag by Agent, described network request is wrapped offer processing server according to the address of the processing server preset, and according to the address of described target resource server, described network request bag is sent to target resource server.
Above-mentioned network request wraps reporting method and system, mobile terminal and Agent Computer are set up after network is connected, the agent address that amendment network connects, the network request bag that mobile terminal is sent can be obtained by the Agent on Agent Computer, thus network request can be wrapped and offers processing server by Agent on Agent Computer on the one hand, on the other hand network request bag is sent to target resource server.So just achieve the network request bag on mobile terminal to be acted on behalf of by Agent Computer and indirectly report processing server, and then processing server can carry out security sweep according to the network request bag reported, the network request bag of mobile terminal is sent to target resource server simultaneously, ensures that network request that mobile terminal sends can normal access destination Resource Server.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that in an embodiment, network request wraps reporting method;
Fig. 2 is the structure chart that in an embodiment, network request wraps reporting system;
Fig. 3 is the structured flowchart that in an embodiment, network request wraps reporting device;
Fig. 4 is the structured flowchart that in another embodiment, network request wraps reporting device;
Fig. 5 is the structured flowchart that in another embodiment, network request wraps reporting device;
Fig. 6 is the schematic flow sheet that in another embodiment, network request wraps reporting method;
Fig. 7 is the structural representation that in an embodiment, network request wraps reporting system;
Fig. 8 is the module map of a computer system that can realize the embodiment of the present invention in an embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Unless context separately has the description of specific distinct, the element in the present invention and assembly, the form that quantity both can be single exists, and form that also can be multiple exists, and the present invention does not limit this.Although the step in the present invention arranges with label, and be not used in and limit the precedence of step, the order of step or the execution of certain step need based on other steps unless expressly stated, otherwise the relative rank of step is adjustable.
As shown in Figure 1, in one embodiment, provide a kind of network request and wrap reporting method, the present embodiment is applied to a kind of network request in this way and wraps in reporting system and illustrate.This network request wraps the structure chart of reporting system as shown in Figure 2, comprises mobile terminal and Agent Computer, and Agent Computer can be connected with processing server.The method comprises the following steps:
Step 102, sets up network with mobile terminal and is connected.
Agent Computer is a kind of terminal being different from mobile terminal, is the computer that can run Agent, for providing agency service for mobile terminal.Wherein Agent Computer includes but not limited to personal computer, mainframe computer, supercomputer or computer cluster etc.Mobile terminal includes but not limited to smart mobile phone, panel computer, personal digital assistant and E-book reader etc.
The network that Agent Computer can be set up based on the communications cable with mobile terminal is connected, and also can set up wireless network and connect, make can communicate between Agent Computer and mobile terminal.It can be connect based on the wireless network of bluetooth, 2.4G radio network technique that wireless network connects.Agent Computer and mobile terminal are set up wireless network and are connected, convenient when tester is tested, and improve operation ease.
In one embodiment, step 102 comprises: the connection request that mobile terminal receive sends, and the connection request sent in response to mobile terminal and set up network with mobile terminal and be connected.
In the present embodiment, Agent Computer and mobile terminal are set up network and are connected, connection request is initiated by mobile terminal, thus after receiving by Agent Computer the connection request that mobile terminal sends, to establish with mobile terminal in response to this connection request and be connected, make can communicate between Agent Computer and mobile terminal.Initiate connection request by mobile terminal and set up network connection, make any tester that mobile terminal can be used to be connected with Agent Computer, improve operation ease.
In one embodiment, step 102 comprises: send connection request to mobile terminal, makes mobile terminal in response to the connection request sent and set up network to connect.
In the present embodiment, Agent Computer and mobile terminal are set up network and are connected, connection request is initiated by Agent Computer, thus received the connection request of Agent Computer transmission by mobile terminal after, to establish with Agent Computer in response to this connection request and be connected, can communicate between Agent Computer and mobile terminal.Initiate connection request by Agent Computer and set up network connection, fail safe is higher, and malicious user malice can be avoided to access Agent Computer.
Step 104, after mobile terminal have sent first network request bag according to the agent address preset by network connection, receives this first network request bag; First network request handbag draws together address and the request text of target resource server.
Mobile terminal can arrange the address that agent address is Agent Computer setting up when network is connected with Agent Computer, and agent address can be IP(Internet Protocol, Internet protocol) address.Network request bag is the packet for acquisition request Internet resources, such as HTTP request bag, and the description of first, second network request bag is for distinguishing different network request bags.Network request handbag draws together address and the request text of target resource server, and wherein the address of target resource server is for identifying target resource server position in a network, and request text representation is to the particular content of target resource server request.
Step 106, to wrap first network request according to the address of processing server of presetting and offers processing server.
Agent Computer pre-sets the address of processing server, thus after getting first network request bag, this first network request can be wrapped and offer processing server, by processing server, the network request bag reported be processed, thus carry out security sweep.
In one embodiment, first network request handbag draws together user ID or mobile terminal identification.User ID can be such as the account of the user using mobile terminal, mobile terminal identification can be such as the MAC(Media Access Control of mobile terminal, media access control layer) address or IMEI(InternationalMobile Equipment Identity, International Mobile Equipment Identity code).Mobile terminal directly can add mobile terminal identification or user ID in first network request bag, such processing server can know the source of network request bag after receiving network request bag, is convenient to solve safety problem according to the source analysis of network request bag after finding safety problem.
Step 108, generates the second network request bag comprising request text according to first network request bag, and sends second network request bag according to the address of target resource server to target resource server.
Particularly, after Agent Computer receives the first networking request bag, resolve address and request text that this first networking request bag obtains target resource server, then generate the second network request bag comprising request text.Agent Computer sends second network request bag according to the address of target resource server to target resource server again, and such Agent Computer achieves the agency to the network request bag that mobile terminal sends.
Above-mentioned network request wraps reporting method, Agent Computer and mobile terminal are set up after network is connected, the first network request bag that mobile terminal receive sends, report this first network request bag, generate second network request bag according to first network request bag simultaneously, then second network request bag is sent to target resource server.So just achieve the network request bag on mobile terminal to be acted on behalf of by Agent Computer and indirectly report processing server, and then processing server can carry out security sweep according to the network request bag reported, the network request bag of mobile terminal is sent to target resource server simultaneously, ensures that network request that mobile terminal sends can normal access destination Resource Server.
In one embodiment, this network request is wrapped reporting method and is also comprised step: create WiFi(mono-kind connects multiple terminal technology by radio wave) focus.Step 102 comprises: the WiFi connection request sent by Wi-Fi hotspot in response to mobile terminal, the network set up based on WiFi with mobile terminal is connected.
Particularly, after Agent Computer creates Wi-Fi hotspot by its wireless network card, broadcasts radio waves centered by Agent Computer.After mobile terminal in effective broadcasting area detects the radio wave that Agent Computer is broadcasted, the demand of user is answered to send WiFi connection request to Agent Computer, the WiFi connection request that Agent Computer is sent by Wi-Fi hotspot in response to mobile terminal, thus be connected with the network that mobile terminal is set up based on WiFi.
Agent Computer can also be verified the WiFi connection request that mobile terminal sends, particularly, Agent Computer is after receiving the WiFi connection request that mobile terminal sent by Wi-Fi hotspot, the information requiring input account information is returned to mobile terminal, mobile terminal can obtain password or the checking such as the identifying code authority of user's input, and sends this checking authority to Agent Computer.Verify according to this checking authority after Agent Computer receives this account information, such as judge whether the password that user inputs or identifying code mate with preset password or default identifying code, are verified rear foundation and are connected with the WiFi of mobile terminal.
In the present embodiment, the Wi-Fi hotspot that mobile terminal is set up by Agent Computer is connected with the network that Agent Computer is set up based on WiFi, and WiFi connected mode is a kind of wireless network connected mode efficiently, make tester can facilitate when carrying out webpage functional test like this, efficiently by the Wi-Fi hotspot report network request bag of Agent Computer.
In one embodiment, after mobile terminal have sent first network request bag according to the agent address preset by network connection, receive the step of first network request bag, comprise: after mobile terminal have sent first network request bag by network connection to designated port according to the agent address preset, by monitoring designated port to receive first network request bag.
Particularly, mobile terminal has been preset agent address and the designated ends slogan of corresponding Agent Computer, mobile terminal sends first network request bag according to agent address and designated ends slogan to the designated port of Agent Computer.Agent Computer can monitor the data by designated port, thus can obtain the first network request bag by this designated port.
Agent Computer can create a socket (socket) in advance, and state an address structure body (sockaddr_in), this address structure body comprises protocol family parameter (sin_family), port numbers parameter (sin_port) and address parameter (sin_addr.s_addr).Wherein its value of protocol family setting parameter is AF_INET, represents and uses TCP/IP protocol suite; Its value of port numbers setting parameter is designated ends slogan, and such as designated ends slogan can be 8888; Its value of address parameter setting is that INADDR_ANY, INADDR_ANY represent arbitrary address.Use bind function address structure body to be tied to the socket of establishment, then use this socket and communication of mobile terminal, Agent Computer monitors the data by designated port, thus can obtain the first network request bag by this designated port.
Illustrate, first create the socket of a ListenSocket by name, then declare an address structure body and code address structure body and ListenSocket bound and annotate as follows:
Struct sockaddr_in saddr; (declaring an address structure body is saddr)
Saddr.sin_family=AF_INET; (the protocol family setting parameter of saddr is AF_INET)
Saddr.sin_port=htons (8888); (the port numbers setting parameter of saddr is that the main frame numerical value without symbol short is converted to network byte order by 8888, htons function representation)
Saddr.sin_addr.s_addr=htonl (INADDR_ANY); (address parameter setting of saddr is that the main frame numerical value without symbol short is converted to network byte order by INADDR_ANY, htonl function representation)
Bind (ListenSocket, (struct sockaddr*) & saddr, sizeof (saddr)); (saddr is tied to ListenSocket)
In the present embodiment, only just can obtaining first network request bag by monitoring designated port, saving Agent Computer for obtaining the resource of first network request bag.
In one embodiment, this network request is wrapped reporting method and is also comprised step 1) ~ step 2):
Step 1), the Internet resources that receiving target Resource Server returns in response to second network request bag.
Agent Computer draws together request text, the address of target resource server and the address of Agent Computer to the second network request handbag that target resource server sends, and the address of target resource server is provided for second network request bag and can be routed to target resource server by each network node in the Internet; The address of Agent Computer is provided for target resource server and returns the Internet resources corresponding to second network request bag according to the address of Agent Computer to Agent Computer.And then the Internet resources that Agent Computer receiving target Resource Server returns in response to second network request bag.In one embodiment, the Internet resources that target resource server returns can also be reported processing server by Agent Computer, make processing server can carry out security sweep according to these Internet resources.
Step 2), connected by network and send Internet resources to mobile terminal.
When Agent Computer is acted on behalf of the first network request bag of mobile terminal transmission and generates second network request bag, the address of the mobile terminal comprised in first network request bag can be recorded.Agent Computer can send Internet resources according to the address of this record to mobile terminal after receiving the Internet resources that target resource server returns.Such mobile terminal just completes the resource request to target resource server, obtain corresponding Internet resources.
In the present embodiment, the Internet resources that Agent Computer receiving target Resource Server returns, and these Internet resources are sent to mobile terminal, make mobile terminal can realize complete resource request operation, to realize the complete test to webpage function.If the Internet resources that target resource server returns are reported to target resource server, can security sweep more comprehensively be carried out, make test result more comprehensive, accurate.
As shown in Figure 3, in one embodiment, provide a kind of network request and wrap reporting device, this network request is wrapped reporting device and is comprised: network connection establishment module 302, first network request bag receiver module 304, reporting module 306 and second network request bag sending module 308.
Network connection establishment module 302, is connected for setting up network with mobile terminal.
The network that network connection establishment module 302 can be used for setting up based on the communications cable with mobile terminal is connected, and also may be used for setting up wireless network and connects, make network request wrap reporting device and can be used for communicating with mobile terminal.It can be connect based on the wireless network of bluetooth, 2.4G radio network technique that wireless network connects.Network connection establishment module 302 is connected for setting up wireless network with mobile terminal, convenient when tester is tested, and improves operation ease.
First network request bag receiver module 304, for after mobile terminal have sent first network request bag according to the agent address preset by network connection, receives first network request bag; First network request handbag draws together address and the request text of target resource server.
First network request bag receiver module 304 is used in and arranges agent address when setting up network connection is the address that reporting device is wrapped in map network request, and agent address can be IP(Internet Protocol, Internet protocol) address.Network request bag is the packet for acquisition request Internet resources, such as HTTP request bag, and the description of first, second network request bag is for distinguishing different network request bags.Network request handbag draws together address and the request text of target resource server, and wherein the address of target resource server is for identifying target resource server position in a network, and request text representation is to the particular content of target resource server request.
Reporting module 306, offers processing server for first network request being wrapped according to the address of processing server of presetting.
Reporting module 306 is for pre-setting the address of processing server, thus after being used in and getting first network request bag, this first network request wrapped and offer processing server, processing server is used for processing the network request bag reported, thus carries out security sweep.
In one embodiment, first network request handbag draws together user ID or mobile terminal identification.User ID can be such as the account of the user using mobile terminal, and mobile terminal identification can be such as MAC Address or the IMEI of mobile terminal.Mobile terminal can be used for directly in first network request bag, adding mobile terminal identification or user ID, such processing server can know the source of network request bag after receiving network request bag, is convenient to solve safety problem according to the source analysis of network request bag after finding safety problem.
Second network request bag sending module 308, for generating the second network request bag comprising request text according to first network request bag, and sends second network request bag according to the address of target resource server to target resource server.
Particularly, second network request bag sending module 308, for after receiving the first networking request bag, is resolved address and request text that this first networking request bag obtains target resource server, is then generated the second network request bag comprising request text.Second network request bag sending module 308 sends second network request bag for the address again according to target resource server to target resource server, achieves the agency to the network request bag that mobile terminal sends like this.
Above-mentioned network request wraps reporting device, for setting up after network is connected with mobile terminal, the first network request bag that mobile terminal receive sends, report this first network request bag, generate second network request bag according to first network request bag simultaneously, then second network request bag is sent to target resource server.So just achieve and the network request bag on mobile terminal is wrapped reporting device by above-mentioned network request indirectly report processing server, and then processing server can carry out security sweep according to the network request bag reported, the network request bag of mobile terminal is sent to target resource server simultaneously, ensures that network request that mobile terminal sends can normal access destination Resource Server.
In one embodiment, network connection establishment module 302 is also for the connection request that mobile terminal receive sends, and the connection request sent in response to mobile terminal and set up network with mobile terminal and be connected.
In the present embodiment, network connection establishment module 302 is connected for setting up network with mobile terminal, connection request is initiated by mobile terminal, thus network connection establishment module 302 is for after the connection request that receives mobile terminal and send, to establish with mobile terminal in response to this connection request and be connected, make above-mentioned network request wrap reporting device and can be used for communicating with mobile terminal.Initiate connection request by mobile terminal and set up network connection, make any tester that mobile terminal and network request can be used to wrap reporting device and be connected, improve operation ease.
In one embodiment, network connection establishment module 302, also for sending connection request to mobile terminal, makes mobile terminal in response to the connection request sent and sets up network to connect.
In the present embodiment, network connection establishment module 302 is for initiating connection request, thus after receiving connection request by mobile terminal, wrap reporting device in response to this connection request and network request and establish and be connected, network request is wrapped reporting device and be can be used for communicating with mobile terminal.Wrap reporting device initiation connection request by network request and set up network connection, fail safe is higher, and malicious user malice access network request can be avoided to wrap reporting device.
As shown in Figure 4, in one embodiment, this network request is wrapped reporting device and is also comprised: focus creation module 301, for creating Wi-Fi hotspot.The WiFi connection request of network connection establishment module 302 also for being sent by Wi-Fi hotspot in response to mobile terminal, the network set up based on WiFi with mobile terminal is connected.
Particularly, focus creation module 301 is for creating broadcasts radio waves after Wi-Fi hotspot by wireless network card.Mobile terminal in effective broadcasting area for broadcast detected radio wave after, answer the demand of user to wrap reporting device to network request and send WiFi connection request, the WiFi connection request of network connection establishment module 302 for being sent by Wi-Fi hotspot in response to mobile terminal, thus be connected with the network that mobile terminal is set up based on WiFi.
The WiFi connection request that network connection establishment module 302 can also be used for mobile terminal sends is verified, particularly, network connection establishment module 302 is for after receiving the WiFi connection request that mobile terminal sent by Wi-Fi hotspot, the information requiring input account information is returned to mobile terminal, mobile terminal can obtain password or the checking such as the identifying code authority of user's input, and wraps reporting device to network request and send this checking authority.Network connection establishment module 302 is verified according to this checking authority after receiving this account information, whether the password that such as network connection establishment module 302 can be used for judging that user inputs or identifying code mate with preset password or default identifying code, are verified rear foundation and are connected with the WiFi of mobile terminal.
In the present embodiment, mobile terminal is wrapped by network request Wi-Fi hotspot and network request that reporting device sets up and is wrapped the network that reporting device sets up based on WiFi and be connected, and WiFi connected mode is a kind of wireless network connected mode efficiently, makes tester can facilitate when carrying out webpage functional test like this, being wrapped the Wi-Fi hotspot report network request bag of reporting device efficiently by network request.
In one embodiment, first network request bag receiver module 304 also for when mobile terminal according to preset agent address and by network connect have sent first network request bag to designated port after, by monitor designated port to receive first network request bag.
Particularly, mobile terminal is used for presetting agent address and the designated ends slogan that reporting device is wrapped in map network request, and the designated port that mobile terminal is used for wrapping reporting device according to agent address and designated ends slogan to network request sends first network request bag.First network request bag receiver module 304 can be used for monitoring the data by designated port, thus can obtain the first network request bag by this designated port.
Network request is wrapped reporting device and be can be used for creating a socket (socket) in advance, and state an address structure body (sockaddr_in), this address structure body comprises protocol family parameter (sin_family), port numbers parameter (sin_port) and address parameter (sin_addr.s_addr).Wherein its value of protocol family setting parameter is AF_INET, represents and uses TCP/IP protocol suite; Its value of port numbers setting parameter is designated ends slogan, and such as designated ends slogan can be 8888; Its value of address parameter setting is that INADDR_ANY, INADDR_ANY represent arbitrary address.Network request is wrapped reporting device, for using bind function, address structure body is tied to the socket of establishment, then network request wraps reporting device for using this socket and communication of mobile terminal, first network request bag receiver module 304 for monitoring the data by designated port, thus can obtain the first network request bag by this designated port.
In the present embodiment, only just can obtain first network request bag by monitoring designated port, saving network request and wrapping reporting device for obtaining the resource of first network request bag.
As shown in Figure 5, in one embodiment, this network request is wrapped reporting device and is also comprised:
Internet resources receiver module 305, for the Internet resources that receiving target Resource Server returns in response to second network request bag.
Second network request bag sending module 308 draws together the address of asking the address of text, target resource server and network request to wrap reporting device for the second network request handbag sent to target resource server, the address of target resource server is provided for second network request bag and can be routed to target resource server by each network node in the Internet; The address that network request wraps reporting device is provided for target resource server wraps reporting device address according to network request and wraps reporting device to network request and return the Internet resources corresponding to second network request bag.And then the Internet resources that Internet resources receiver module 305 returns in response to second network request bag for receiving target Resource Server.In one embodiment, the Internet resources that reporting module 306 can also be used for target resource server returns report processing server, and processing server may be used for carrying out security sweep according to these Internet resources.
Internet resources sending module 307, sends Internet resources for being connected by network to mobile terminal.
Second network request bag sending module 308 is for generating the second network request bag comprising request text during according to first network request bag, can be used for the address of recording the mobile terminal comprised in first network request bag.Internet resources receiver module 305 is for after the Internet resources that receive target resource server and return, and Internet resources sending module 307 can be used for sending Internet resources according to the address of this record to mobile terminal.Such mobile terminal just completes the resource request to target resource server, obtain corresponding Internet resources.
In the present embodiment, network request wraps the Internet resources that reporting device returns for receiving target Resource Server, and these Internet resources are sent to mobile terminal, make mobile terminal can realize complete resource request operation, to realize the complete test to webpage function.If the Internet resources that target resource server returns are reported to target resource server, can security sweep more comprehensively be carried out, make test result more comprehensive, accurate.
As shown in Figure 6, in one embodiment, provide a kind of network request and wrap reporting method, the method comprises the following steps:
Step 602, mobile terminal and Agent Computer are set up network and are connected.
Agent Computer is a kind of terminal being different from mobile terminal, is the computer that can run Agent, for providing agency service for mobile terminal.Wherein Agent Computer includes but not limited to personal computer, mainframe computer, supercomputer or computer cluster etc.Mobile terminal includes but not limited to smart mobile phone, panel computer, personal digital assistant and E-book reader etc.
The network that Agent Computer can be set up based on the communications cable with mobile terminal is connected, and also can set up wireless network and connect, make can communicate between Agent Computer and mobile terminal.It can be connect based on the wireless network of bluetooth, 2.4G radio network technique that wireless network connects.Agent Computer and mobile terminal are set up wireless network and are connected, convenient when tester is tested, and improve operation ease.
Step 604, the agent address that mobile terminal amendment network connects is the address of Agent Computer.
Mobile terminal is being set up after network is connected with Agent Computer, and user revises this network by mobile terminal and connects, to set agent address that this network the connects address as Agent Computer.The network request bag that such setting makes mobile terminal connect transmission by this network can be obtained by the Agent on Agent Computer.If do not set agent address, the Agent on Agent Computer is difficult to the network request bag that acquisition mobile terminal sends.Wherein agent address can be IP address.
Step 606, mobile terminal sends network request bag according to agent address to Agent Computer; Network request bag carries the address of target resource server.
Particularly, mobile terminal, according to the address of the Agent Computer as agent address, sends network request bag to Agent Computer.Network request bag is the packet for acquisition request Internet resources, such as HTTP request bag.Network request bag carries address and the request text of target resource server, and wherein the address of target resource server is for identifying target resource server position in a network, and request text representation is to the particular content of target resource server request.
Step 608, Agent Computer receives network request bag by Agent, network request is wrapped offer processing server according to the address of the processing server preset, and according to the address of target resource server, network request bag is sent to target resource server.
Agent Computer has prestored the address of processing server, thus after getting network request bag, can be wrapped by this network request and offer processing server, is processed, thus carry out security sweep by processing server to the network request bag reported.On the other hand, the address of the target resource server of Agent Computer again entrained by network request bag, to target resource server address corresponding to target resource server send this network request bag.
In one embodiment, Agent Computer can re-group package network request bag, specifically the address of the target resource server entrained by network request bag is replaced with the address of processing server, the network request bag this re-grouped package again sends, by the automatic selecting paths of route to report to processing server.
Above-mentioned network request wraps reporting method, mobile terminal and Agent Computer are set up after network is connected, the agent address that amendment network connects, the network request bag that mobile terminal is sent can be obtained by the Agent on Agent Computer, thus network request can be wrapped and offers processing server by Agent on Agent Computer on the one hand, on the other hand network request bag is sent to target resource server.So just achieve the network request bag on mobile terminal to be acted on behalf of by Agent Computer and indirectly report processing server, and then processing server can carry out security sweep according to the network request bag reported, the network request bag of mobile terminal is sent to target resource server simultaneously, ensures that network request that mobile terminal sends can normal access destination Resource Server.
In one embodiment, step 602 comprises: mobile terminal sends connection request to Agent Computer, the connection request that Agent Computer is sent in response to mobile terminal and set up network with mobile terminal and be connected.
In the present embodiment, Agent Computer and mobile terminal are set up network and are connected, connection request is initiated by mobile terminal, thus after receiving by Agent Computer the connection request that mobile terminal sends, to establish with mobile terminal in response to this connection request and be connected, make can communicate between Agent Computer and mobile terminal.Initiate connection request by mobile terminal and set up network connection, make any tester that mobile terminal can be used to be connected with Agent Computer, improve operation ease.
In one embodiment, step 602 comprises: the connection request that mobile terminal Receiving Agent computer sends, and sets up network be connected in response to the connection request of Agent Computer transmission with Agent Computer.
In the present embodiment, Agent Computer and mobile terminal are set up network and are connected, connection request is initiated by Agent Computer, thus received the connection request of Agent Computer transmission by mobile terminal after, to establish with Agent Computer in response to this connection request and be connected, can communicate between Agent Computer and mobile terminal.Initiate connection request by Agent Computer and set up network connection, fail safe is higher, and malicious user malice can be avoided to access Agent Computer.
In one embodiment, this network request is wrapped reporting method and is also comprised step: Agent Computer creates Wi-Fi hotspot; Then step 602 specifically comprises: mobile terminal sends WiFi connection request by Wi-Fi hotspot to Agent Computer, the WiFi connection request that Agent Computer is sent in response to mobile terminal and being connected with the network that mobile terminal is set up based on WiFi.
Particularly, after Agent Computer creates Wi-Fi hotspot by its wireless network card, broadcasts radio waves centered by Agent Computer.After mobile terminal in effective broadcasting area detects the radio wave that Agent Computer is broadcasted, the demand of user is answered to send WiFi connection request to Agent Computer, the WiFi connection request that Agent Computer is sent by Wi-Fi hotspot in response to mobile terminal, thus be connected with the network that mobile terminal is set up based on WiFi.
Agent Computer can also be verified the WiFi connection request that mobile terminal sends, particularly, Agent Computer is after receiving the WiFi connection request that mobile terminal sent by Wi-Fi hotspot, the information requiring input account information is returned to mobile terminal, mobile terminal can obtain password or the checking such as the identifying code authority of user's input, and sends this checking authority to Agent Computer.Verify according to this checking authority after Agent Computer receives this account information, such as judge whether the password that user inputs or identifying code mate with preset password or default identifying code, are verified rear foundation and are connected with the WiFi of mobile terminal.
In the present embodiment, the Wi-Fi hotspot that mobile terminal is set up by Agent Computer is connected with the network that Agent Computer is set up based on WiFi, and WiFi connected mode is a kind of wireless network connected mode efficiently, make tester can facilitate when carrying out webpage functional test like this, efficiently by the Wi-Fi hotspot report network request bag of Agent Computer.
In one embodiment, this network request is wrapped reporting method and is also comprised: the proxy port corresponding to agent address that mobile terminal amendment network connects is designated port; The step that then Agent Computer receives network request bag by Agent comprises: Agent Computer monitors designated port to receive network request bag by Agent.
Particularly, mobile terminal is connected by amendment network, the agent address setting network connection is the address of Agent Computer, and the agent side slogan set corresponding to this agent address is designated ends slogan, mobile terminal sends network request bag according to agent address and designated ends slogan to the designated port of Agent Computer.Agent Computer can monitor the data by designated port, thus can obtain the network request bag by this designated port.
Agent Computer can create a socket (socket) in advance, and state an address structure body (sockaddr_in), this address structure body comprises protocol family parameter (sin_family), port numbers parameter (sin_port) and address parameter (sin_addr.s_addr).Wherein its value of protocol family setting parameter is AF_INET, represents and uses TCP/IP protocol suite; Its value of port numbers setting parameter is designated ends slogan, and such as designated ends slogan can be 8888; Its value of address parameter setting is that INADDR_ANY, INADDR_ANY represent arbitrary address.Use bind function address structure body to be tied to the socket of establishment, then use this socket and communication of mobile terminal, Agent Computer monitors the data by designated port, thus can obtain the network request bag by this designated port.
In the present embodiment, only just can obtaining network request bag by monitoring designated port, saving Agent Computer for obtaining the resource of network request bag.
In one embodiment, this network request is wrapped reporting method and is also comprised: the Internet resources that Agent Computer receiving target Resource Server returns in response to network request bag, and is connected by network and send Internet resources to mobile terminal.
Agent Computer carries request text, the address of target resource server and the address of Agent Computer to the network request bag that target resource server sends, and the address of target resource server is provided for network request bag and can be routed to target resource server by each network node in the Internet; The address of Agent Computer is provided for target resource server and returns the Internet resources corresponding to network request bag according to the address of Agent Computer to Agent Computer.And then the Internet resources that Agent Computer receiving target Resource Server returns in response to network request bag.In one embodiment, the Internet resources that target resource server returns can also be reported processing server by Agent Computer, make processing server can carry out security sweep according to these Internet resources.
When Agent Computer sends network request bag by Agent to target resource server, the address of the mobile terminal entrained by network request bag can be recorded.Agent Computer can send Internet resources according to the address of this record to mobile terminal after receiving the Internet resources that target resource server returns.Such mobile terminal just completes the resource request to target resource server, obtain corresponding Internet resources.
In the present embodiment, the Internet resources that Agent Computer receiving target Resource Server returns, and these Internet resources are sent to mobile terminal, make mobile terminal can realize complete resource request operation, to realize the complete test to webpage function.If the Internet resources that target resource server returns are reported to target resource server, can security sweep more comprehensively be carried out, make test result more comprehensive, accurate.
In one embodiment, provide a kind of network request and wrap reporting system, as shown in Figure 7, this system comprises mobile terminal 702 and Agent Computer 704 to the structure composition of this system.
Mobile terminal 702 is connected for setting up network with Agent Computer 704.
The network that mobile terminal 702 can be used for setting up based on the communications cable with Agent Computer 704 is connected, and also can set up wireless network and connect; The network that Agent Computer 704 can be used for setting up based on the communications cable with mobile terminal 702 is connected, and also can set up wireless network and connect, to make can communicate between Agent Computer 704 and mobile terminal 702.It can be connect based on the wireless network of bluetooth, 2.4G radio network technique that wireless network connects.Agent Computer 704 is set up wireless network with mobile terminal 702 and is connected, convenient when tester is tested, and improves operation ease.
The agent address that mobile terminal 702 also connects for revising network is the address of Agent Computer 704.
Mobile terminal 702, for setting up after network is connected with Agent Computer 704, connects by revising this network, to set agent address that this network the connects address as Agent Computer 704.The network request bag that such setting makes mobile terminal 702 connect transmission by this network can be obtained by the Agent on Agent Computer 704.If do not set agent address, the Agent on Agent Computer 704 is difficult to the network request bag that acquisition mobile terminal 702 sends.Wherein agent address can be IP address.
Mobile terminal 702 is also for sending network request bag according to agent address to Agent Computer 704; Network request bag carries the address of target resource server.
Particularly, mobile terminal 702, for the address according to the Agent Computer 704 as agent address, sends network request bag to Agent Computer 704.Network request bag is the packet for acquisition request Internet resources, such as HTTP request bag.Network request bag carries address and the request text of target resource server, and wherein the address of target resource server is for identifying target resource server position in a network, and request text representation is to the particular content of target resource server request.
Agent Computer 704 is for receiving network request bag by Agent, network request is wrapped offer processing server according to the address of the processing server preset, and according to the address of target resource server, network request bag is sent to target resource server.
Agent Computer 704 is for prestoring the address of processing server, thus after being used in and getting network request bag, this network request is wrapped and offers processing server, by processing server, the network request bag reported is processed, thus carry out security sweep.On the other hand, Agent Computer 704 for the address of the target resource server again entrained by network request bag, to target resource server address corresponding to target resource server send this network request bag.
In one embodiment, Agent Computer 704 can be used for re-grouping package network request bag, specifically can be used for the address address of the target resource server entrained by network request bag being replaced with processing server, the network request bag this re-grouped package again sends, by the automatic selecting paths of route to report to processing server.
Above-mentioned network request wraps reporting system, mobile terminal 702 and Agent Computer 704 are set up after network is connected, the agent address that amendment network connects, the network request bag that mobile terminal 702 is sent can be obtained by the Agent on Agent Computer 704, thus network request can be wrapped and offers processing server by Agent on Agent Computer 704 on the one hand, on the other hand network request bag is sent to target resource server.So just achieve the network request bag on mobile terminal 702 to be acted on behalf of by Agent Computer 704 and indirectly report processing server, and then processing server can carry out security sweep according to the network request bag reported, the network request bag of mobile terminal 702 is sent to target resource server simultaneously, ensures that network request that mobile terminal 702 sends can normal access destination Resource Server.
In one embodiment, mobile terminal 702 also for sending connection request to Agent Computer 704, the connection request that Agent Computer 704 is sent in response to mobile terminal 702 and set up network with mobile terminal 702 and be connected.
In the present embodiment, Agent Computer 704 is connected for setting up network with mobile terminal 702, connection request is initiated by mobile terminal 702, thus after receiving by Agent Computer 704 connection request that mobile terminal 702 sends, to establish with mobile terminal 702 in response to this connection request and be connected, make can communicate between Agent Computer 704 and mobile terminal 702.Mobile terminal 702 sets up network connection for initiating connection request, makes any tester that mobile terminal 702 can be used to be connected with Agent Computer 704, improves operation ease.
In one embodiment, mobile terminal 702, also for the connection request that Receiving Agent computer 704 sends, is set up network in response to the connection request of Agent Computer 704 transmission with Agent Computer 704 and is connected.
In the present embodiment, Agent Computer 704 is connected for setting up network with mobile terminal 702, Agent Computer 704 is for initiating connection request, thus after receiving by mobile terminal 702 connection request that Agent Computer 704 sends, to establish with Agent Computer 704 in response to this connection request and be connected, can communicate between Agent Computer 704 and mobile terminal 702.Agent Computer 704 sets up network connection for initiating connection request, and fail safe is higher, can avoid malicious user malice access Agent Computer 704.
In one embodiment, Agent Computer 704 is also for creating Wi-Fi hotspot.And mobile terminal 702 is also for sending WiFi connection request by Wi-Fi hotspot to Agent Computer 704, the WiFi connection request that Agent Computer 704 is sent in response to mobile terminal 702 and being connected with the network that mobile terminal 702 is set up based on WiFi.
Particularly, Agent Computer 704 for being created after Wi-Fi hotspot by its wireless network card, broadcasts radio waves centered by Agent Computer 704.After mobile terminal 702 in effective broadcasting area detects the radio wave that Agent Computer 704 is broadcasted, the demand of user is answered to send WiFi connection request to Agent Computer 704, the WiFi connection request of Agent Computer 704 for being sent by Wi-Fi hotspot in response to mobile terminal 702, thus be connected with the network that mobile terminal 702 is set up based on WiFi.
The WiFi connection request that Agent Computer 704 can also be used for mobile terminal 702 sends is verified, particularly, Agent Computer 704 is for after receiving the WiFi connection request that mobile terminal 702 sent by Wi-Fi hotspot, the information requiring input account information is returned to mobile terminal 702, mobile terminal 702 can be used for the password or the checking such as the identifying code authority that obtain user's input, and sends this checking authority to Agent Computer 704.Agent Computer 704 is verified according to this checking authority after receiving this account information, such as judges whether the password that user inputs or identifying code mate with preset password or default identifying code, are verified rear foundation and are connected with the WiFi of mobile terminal 702.
In the present embodiment, mobile terminal 702 is connected with the network that Agent Computer 704 is set up based on WiFi for the Wi-Fi hotspot set up by Agent Computer 704, and WiFi connected mode is a kind of wireless network connected mode efficiently, make tester can facilitate when carrying out webpage functional test like this, efficiently by the Wi-Fi hotspot report network request bag of Agent Computer 704.
In one embodiment, mobile terminal 702 also for revise network connect agent address corresponding to proxy port be designated port; And Agent Computer 704 is also for monitoring designated port to receive network request bag by Agent.
Particularly, mobile terminal 702 is for connecting by amendment network, the address that the agent address connected with setting network is Agent Computer 704, and the agent side slogan set corresponding to this agent address is designated ends slogan, mobile terminal 702 is for sending network request bag according to agent address and designated ends slogan to the designated port of Agent Computer 704.Agent Computer 704 can be used for monitoring the data by designated port, thus can obtain the network request bag by this designated port.
Agent Computer 704 can be used for creating a socket (socket) in advance, and state an address structure body (sockaddr_in), this address structure body comprises protocol family parameter (sin_family), port numbers parameter (sin_port) and address parameter (sin_addr.s_addr).Wherein its value of protocol family setting parameter is AF_INET, represents and uses TCP/IP protocol suite; Its value of port numbers setting parameter is designated ends slogan, and such as designated ends slogan can be 8888; Its value of address parameter setting is that INADDR_ANY, INADDR_ANY represent arbitrary address.Address structure body is tied to the socket of establishment for using bind function by Agent Computer 704, then this socket is used to communicate with mobile terminal 702, Agent Computer 704 for monitoring the data by designated port, thus can obtain the network request bag by this designated port.
In the present embodiment, only just can obtaining network request bag by monitoring designated port, saving Agent Computer 704 for obtaining the resource of network request bag.
In one embodiment, Agent Computer 704 also for the Internet resources that receiving target Resource Server returns in response to network request bag, and is connected by network and sends Internet resources to mobile terminal 702.
Agent Computer 704 carries request text, the address of target resource server and the address of Agent Computer 704 for the network request bag sent to target resource server, and the address of target resource server is provided for network request bag and can be routed to target resource server by each network node in the Internet; The address of Agent Computer 704 is provided for target resource server and returns the Internet resources corresponding to network request bag according to the address of Agent Computer 704 to Agent Computer 704.And then the Internet resources that Agent Computer 704 returns in response to network request bag for receiving target Resource Server.In one embodiment, the Internet resources that Agent Computer 704 can also be used for target resource server returns report processing server, make processing server can carry out security sweep according to these Internet resources.
When Agent Computer 704 is for sending network request bag by Agent to target resource server, the address of the mobile terminal 702 entrained by record network request bag.After Agent Computer 704 is used in and receives Internet resources that target resource server returns, the address according to this record sends Internet resources to mobile terminal 702.Such mobile terminal 702 just completes the resource request to target resource server, obtain corresponding Internet resources.
In the present embodiment, the Internet resources that Agent Computer 704 returns for receiving target Resource Server, and these Internet resources are sent to mobile terminal 702, make mobile terminal 702 can realize complete resource request operation, to realize the complete test to webpage function.If the Internet resources that target resource server returns are reported to target resource server, can security sweep more comprehensively be carried out, make test result more comprehensive, accurate.
Fig. 8 is the module map of a computer system 1000 that can realize the embodiment of the present invention, and this computer system 1000 can be used for realizing above-mentioned network request and wraps the institute of reporting method in steps.This computer system 1000 is an example being applicable to computer environment of the present invention, can not think to propose any restriction to the scope of application of the present invention.Computer system 1000 can not be interpreted as the combination needing the one or more parts depending on or have in illustrated exemplary computer system 1000.
Computer system 1000 shown in Fig. 8 is the examples being suitable for computer system of the present invention.Other framework with different sub-systems configuration also can use.The similar devices such as the desktop computer known by masses, notebook computer are such as had to go for some embodiments of the present invention.But be not limited to above cited equipment.
As shown in Figure 8, computer system 1000 comprises processor 1010, memory 1020 and system bus 1022.The various system components comprising memory 1020 and processor 1010 are connected on system bus 1022.Processor 1010 is the hardware being used for being performed by arithmetic sum logical operation basic in computer system computer program instructions.Memory 1020 be one for storing the physical equipment of calculation procedure or data (such as, program state information) temporarily or permanently.System bus 1020 can be any one in the bus structures of following several types, comprises memory bus or storage control, peripheral bus and local bus.Processor 1010 and memory 1020 can carry out data communication by system bus 1022.Wherein memory 1020 comprises read-only memory (ROM) or flash memory (all not shown in figure), and random-access memory (ram), and RAM typically refers to the main storage being loaded with operating system and application program.
Computer system 1000 also comprises display interface 1030(such as, Graphics Processing Unit), display unit 1040(such as, liquid crystal display), audio interface 1050(such as, sound card) and audio frequency apparatus 1060(such as, loud speaker).Display unit 1040 and audio frequency apparatus 1060 are the media devices for experiencing content of multimedia.
Computer system 1000 generally comprises a memory device 1070.Memory device 1070 can be selected from multiple computer-readable medium, and computer-readable medium refers to any available medium can accessed by computer system 1000, that comprise movement and fixing two media.Such as, computer-readable medium includes but not limited to, flash memory (miniature SD card), CD-ROM, digital versatile disc (DVD) or other optical disc storage, cassette, tape, disk storage or other magnetic storage apparatus, or can be used for storing information needed and other medium any can accessed by computer system 1000.
Computer system 1000 also comprises input unit 1080 and input interface 1090(such as, I/O controller).User can pass through input unit 1080, and as the touch panel equipment in keyboard, mouse, display unit 1040, input instruction and information are in computer system 1000.Input unit 1080 is normally connected on system bus 1022 by input interface 1090, but also can be connected by other interface or bus structures, as USB (USB).
Computer system 1000 can be carried out logic with one or more mobile terminal in a network environment and is connected.Computer system 1000 is connected with mobile terminal by Local Area Network interface 1100 or mobile comm unit 1110.Local Area Network refers in finite region, such as family, school, computer laboratory or use the office building of the network media, the computer network of interconnected composition.WiFi and twisted-pair feeder wiring Ethernet are two kinds of technology of the most frequently used structure local area network (LAN).WiFi is a kind of technology that can make computer system 1000 swapping data or be connected to wireless network by radio wave.Mobile comm unit 1110 can be answered by radio communication diagram while movement and call in a wide geographic area.Except call, mobile comm unit 1110 is also supported in the 2G providing mobile data service, carries out internet access in 3G or 4G cellular communication system.
It should be pointed out that other computer system comprising the subsystem more more or less than computer system 1000 also can be applicable to invention.Such as, computer system 1000 can comprise can in short distance the bluetooth unit of swap data.
As described in detail above, being applicable to computer system 1000 of the present invention and can performing the assigned operation that network request wraps reporting method.The form of the software instruction that computer system 1000 is operated in computer-readable medium by processor 1010 performs these operations.These software instructions can be read into memory 1020 from memory device 1070 or by lan interfaces 1100 from another equipment.The software instruction be stored in memory 1020 makes processor 1010 perform above-mentioned network request and wraps reporting method.In addition, also the present invention can be realized equally by hardware circuit or hardware circuit in conjunction with software instruction.Therefore, the combination that the present invention is not limited to any specific hardware circuit and software is realized.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (20)

1. network request wraps a reporting method, and described method comprises:
Set up network with mobile terminal to be connected;
After described mobile terminal have sent first network request bag according to the agent address preset by described network connection, receive described first network request bag; Described first network request handbag draws together address and the request text of target resource server;
According to the address of processing server of presetting described first network request wrapped and offer processing server;
Generate the second network request bag comprising described request text according to described first network request bag, and send described second network request bag according to the address of described target resource server to described target resource server.
2. method according to claim 1, is characterized in that, describedly sets up network with mobile terminal and is connected, and comprising:
The connection request that mobile terminal receive sends, and the connection request sent in response to described mobile terminal and set up network with described mobile terminal and be connected; Or,
Send connection request to mobile terminal, make described mobile terminal in response to the connection request of described transmission and set up network to connect.
3. method according to claim 1, is characterized in that, described method also comprises:
Create Wi-Fi hotspot;
Describedly set up network with mobile terminal and be connected, comprising:
In response to the WiFi connection request that mobile terminal is sent by described Wi-Fi hotspot, the network set up based on WiFi with described mobile terminal is connected.
4. method according to claim 1, is characterized in that, described after described mobile terminal have sent first network request bag according to the agent address preset by described network connection, receives described first network request bag, comprising:
After described mobile terminal have sent first network request bag by described network connection to designated port according to the agent address preset, by monitoring described designated port to receive described first network request bag.
5. method according to claim 1, is characterized in that, described method also comprises:
Receive the Internet resources that described target resource server returns in response to described second network request bag;
Connected by described network and send described Internet resources to described mobile terminal.
6. network request wraps a reporting device, it is characterized in that, described network request is wrapped reporting device and comprised:
Network connection establishment module, is connected for setting up network with mobile terminal;
First network request bag receiver module, for after described mobile terminal have sent first network request bag according to the agent address preset by described network connection, receives described first network request bag; Described first network request handbag draws together address and the request text of target resource server;
Reporting module, offers processing server for described first network request being wrapped according to the address of processing server of presetting;
Second network request bag sending module, for generating the second network request bag comprising described request text according to described first network request bag, and send described second network request bag according to the address of described target resource server to described target resource server.
7. device according to claim 6, is characterized in that, described network connection establishment module is also for the connection request that mobile terminal receive sends, and the connection request sent in response to described mobile terminal and set up network with described mobile terminal and be connected; Or,
Described network connection establishment module, also for sending connection request to mobile terminal, makes described mobile terminal in response to the connection request of described transmission and sets up network to connect.
8. device according to claim 6, is characterized in that, described network request is wrapped reporting device and also comprised:
Focus creation module, for creating Wi-Fi hotspot;
The WiFi connection request of described network connection establishment module also for being sent by described Wi-Fi hotspot in response to mobile terminal, the network set up based on WiFi with described mobile terminal is connected.
9. device according to claim 6, it is characterized in that, described first network request bag receiver module also for after being connected by described network according to the agent address preset when described mobile terminal and have sent first network request bag to designated port, by monitoring described designated port to receive described first network request bag.
10. device according to claim 6, is characterized in that, described network request is wrapped reporting device and also comprised:
Internet resources receiver module, for receiving the Internet resources that described target resource server returns in response to described second network request bag;
Internet resources sending module, sends described Internet resources for being connected by described network to described mobile terminal.
11. 1 kinds of network requests wrap reporting method, and described method comprises:
Mobile terminal and Agent Computer are set up network and are connected;
It is the address of described Agent Computer that described mobile terminal revises the agent address that described network connects;
Described mobile terminal sends network request bag according to described agent address to described Agent Computer; Described network request bag carries the address of target resource server;
Described Agent Computer receives described network request bag by Agent, described network request is wrapped offer processing server according to the address of the processing server preset, and according to the address of described target resource server, described network request bag is sent to target resource server.
12. methods according to claim 11, is characterized in that, described mobile terminal and Agent Computer are set up network and be connected, and comprising:
Mobile terminal sends connection request to Agent Computer, the connection request that described Agent Computer is sent in response to described mobile terminal and set up network with described mobile terminal and be connected; Or,
The connection request that mobile terminal Receiving Agent computer sends, the connection request sent in response to described Agent Computer and set up network with described Agent Computer and be connected.
13. methods according to claim 11, is characterized in that, described method also comprises:
Agent Computer creates Wi-Fi hotspot;
Described mobile terminal and Agent Computer are set up network and are connected, and comprising:
Mobile terminal sends WiFi connection request by described Wi-Fi hotspot to described Agent Computer, the WiFi connection request that described Agent Computer is sent in response to described mobile terminal and being connected with the network that described mobile terminal is set up based on WiFi.
14. methods according to claim 11, is characterized in that, described method also comprises:
The proxy port corresponding to agent address that described mobile terminal revises the connection of described network is designated port;
Described Agent Computer receives described network request bag by Agent, comprising: described Agent Computer monitors described designated port to receive described network request bag by Agent.
15. methods according to claim 11, is characterized in that, described method also comprises:
Described Agent Computer receives the Internet resources that described target resource server returns in response to described network request bag, and is connected by described network and send described Internet resources to described mobile terminal.
16. 1 kinds of network requests wrap reporting system, it is characterized in that, described system comprises mobile terminal and Agent Computer;
Described mobile terminal is used for setting up network with Agent Computer and is connected;
The agent address that described mobile terminal also connects for revising described network is the address of described Agent Computer;
Described mobile terminal is also for sending network request bag according to described agent address to described Agent Computer; Described network request bag carries the address of target resource server;
Described Agent Computer is used for receiving described network request bag by Agent, described network request is wrapped offer processing server according to the address of the processing server preset, and according to the address of described target resource server, described network request bag is sent to target resource server.
17. systems according to claim 16, it is characterized in that, described mobile terminal also for sending connection request to Agent Computer, the connection request that described Agent Computer is sent in response to described mobile terminal and set up network with described mobile terminal and be connected; Or,
Described mobile terminal also for the connection request that Receiving Agent computer sends, the connection request sent in response to described Agent Computer and set up network with described Agent Computer and be connected.
18. systems according to claim 16, is characterized in that, described Agent Computer is also for creating Wi-Fi hotspot;
Described mobile terminal also for sending WiFi connection request by described Wi-Fi hotspot to described Agent Computer, the WiFi connection request that described Agent Computer is sent in response to described mobile terminal and being connected with the network that described mobile terminal is set up based on WiFi.
19. systems according to claim 16, is characterized in that, described mobile terminal also for revise described network connect agent address corresponding to proxy port be designated port;
Described Agent Computer is also for monitoring described designated port to receive described network request bag by Agent.
20. systems according to claim 16, it is characterized in that, described Agent Computer also for receiving the Internet resources that described target resource server returns in response to described network request bag, and is connected by described network and sends described Internet resources to described mobile terminal.
CN201410142903.3A 2014-04-10 2014-04-10 Network request packet report method, device and system Pending CN104980471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410142903.3A CN104980471A (en) 2014-04-10 2014-04-10 Network request packet report method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410142903.3A CN104980471A (en) 2014-04-10 2014-04-10 Network request packet report method, device and system

Publications (1)

Publication Number Publication Date
CN104980471A true CN104980471A (en) 2015-10-14

Family

ID=54276571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410142903.3A Pending CN104980471A (en) 2014-04-10 2014-04-10 Network request packet report method, device and system

Country Status (1)

Country Link
CN (1) CN104980471A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107959929A (en) * 2017-11-08 2018-04-24 无线生活(杭州)信息科技有限公司 One kind switching Proxy Method and device
CN110737549A (en) * 2018-07-20 2020-01-31 北京奇虎科技有限公司 Application testing method, device, server and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020176557A1 (en) * 2001-03-26 2002-11-28 Showshore Networks, Inc. System and method for performing signaling-plan-specific call progress analysis
CN1879100A (en) * 2003-11-10 2006-12-13 雅虎公司 Method, apparatus and system for providing a server agent for a mobile device
US20100030891A1 (en) * 2008-07-30 2010-02-04 Electronics And Telecommunications Research Institute Web-based traceback system and method using reverse caching proxy
CN102377616A (en) * 2010-08-14 2012-03-14 尼尔森(美国)有限公司 Systems, methods, and apparatus to monitor mobile internet activity

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020176557A1 (en) * 2001-03-26 2002-11-28 Showshore Networks, Inc. System and method for performing signaling-plan-specific call progress analysis
CN1879100A (en) * 2003-11-10 2006-12-13 雅虎公司 Method, apparatus and system for providing a server agent for a mobile device
US20100030891A1 (en) * 2008-07-30 2010-02-04 Electronics And Telecommunications Research Institute Web-based traceback system and method using reverse caching proxy
CN102377616A (en) * 2010-08-14 2012-03-14 尼尔森(美国)有限公司 Systems, methods, and apparatus to monitor mobile internet activity

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107959929A (en) * 2017-11-08 2018-04-24 无线生活(杭州)信息科技有限公司 One kind switching Proxy Method and device
CN110737549A (en) * 2018-07-20 2020-01-31 北京奇虎科技有限公司 Application testing method, device, server and system

Similar Documents

Publication Publication Date Title
US6662224B1 (en) Methods, systems and computer program products for providing alternative displays for networked devices
US9258344B2 (en) Multi-hop single sign-on (SSO) for identity provider (IdP) roaming/proxy
US9769743B2 (en) Method and apparatus for determining access point service capabilities
US11039299B2 (en) ESIM card activation method, wireless router, and user terminal
CN109088799B (en) Client access method, device, terminal and storage medium
US10945130B2 (en) Method for establishing wireless connection for application of user equipment
CN110248364B (en) IOT equipment network distribution method, device, equipment and medium
US9565161B2 (en) Automatically replacing localhost as hostname in URL with fully qualified domain name or IP address
US20140344437A1 (en) Method and system for implementing a transparent proxy of an ios system
AU2020203111B2 (en) Reducing data use in limited data environment
WO2019010734A1 (en) Method and system for guiding service application traffic
EP2915073A2 (en) Preemptive framework for accessing short urls
CN110716850A (en) Page testing method, device and system and storage medium
EP4117314A1 (en) Connection establishment method and communication device and system
CN102904959A (en) Network accelerating method and gateway
CN109302437B (en) Method and device for redirecting website
CN110224897B (en) Weak network testing method and device of application program, mobile device and storage medium
EP2547168B1 (en) Android system with simulataneous support of multiple pdp contexts
CN107872548A (en) Web page interlinkage method, apparatus and readable storage medium storing program for executing
CN108347460B (en) Resource access method and device
US9635552B2 (en) Wireless communication apparatus, wireless communication method, and computer-readable recording medium
CN107979577B (en) Terminal authentication method and device
CN104980471A (en) Network request packet report method, device and system
JP5931224B2 (en) Data access method and apparatus
CN104182331A (en) Browser performance test method, browser performance test system and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151014

RJ01 Rejection of invention patent application after publication