CN108616835B - Method, device and system for acquiring network resources based on browser and storage medium - Google Patents
Method, device and system for acquiring network resources based on browser and storage medium Download PDFInfo
- Publication number
- CN108616835B CN108616835B CN201810387123.3A CN201810387123A CN108616835B CN 108616835 B CN108616835 B CN 108616835B CN 201810387123 A CN201810387123 A CN 201810387123A CN 108616835 B CN108616835 B CN 108616835B
- Authority
- CN
- China
- Prior art keywords
- resource
- access request
- traffic
- server
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/24—Accounting or billing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/183—Processing at user equipment or user record carrier
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
- H04W8/205—Transfer to or from user equipment or user record carrier
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a method, a device and a system for acquiring network resources based on a browser and a storage medium, and belongs to the field of internet information processing. The method comprises the following steps: when a mobile terminal provided with a user identity identification (SIM) card acquires a resource access request triggered by a browser, if the SIM card is detected to have transacted a traffic-free service and a network resource requested by the resource access request is not in a first traffic-free set, sending the resource access request to a traffic-free proxy server, wherein the resource access request is used for indicating the traffic-free proxy server to acquire the network resource from a corresponding resource server; and receiving the network resource sent by the traffic-free proxy server. The network resource acquisition method provided by the application can realize the traffic-free tariff acquisition of the network resource through the traffic-free proxy server, and reduce the cost of network resource acquisition, namely reduce the network traffic tariff of the user.
Description
Technical Field
The present application relates to the field of internet information processing, and in particular, to a method, an apparatus, a system, and a storage medium for acquiring a network resource based on a browser.
Background
With the rapid development of internet technology, various types of applications are layered endlessly, and the network traffic charges of users are higher and higher.
In the related art, in order to reduce the network traffic charge of a user, many application developers start to cooperate with an operator to jointly launch a traffic-free service, and a mobile terminal handling the traffic-free service does not need to consume the network traffic charge when using an application program specified by the application developer.
For a browser application program, at present, only flow is avoided when a webpage specified by an application developer is accessed, but for acquisition operations for resources which are not specified by the application developer, such as file downloading, online video watching, online game playing and the like, network flow charges of a mobile terminal still need to be consumed, so that the network flow charges of a user cannot be effectively reduced.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a system and a storage medium for acquiring network resources based on a browser, which can solve the problem of higher network flow charge in the related technology. The technical scheme is as follows:
on one hand, a network resource obtaining method based on a browser is provided, which is applied to a mobile terminal provided with the browser and a Subscriber Identity Module (SIM) card, and the method comprises the following steps:
when a resource access request triggered by the browser is acquired, detecting whether the SIM card handles a traffic free tariff service or not;
if the SIM card handles the traffic-free tariff service, detecting whether the network resource requested by the resource access request is in a first flow-free set;
when the network resource requested by the resource access request is not in the first flow-exempt set, sending the resource access request to a flow-exempt proxy server, wherein the resource access request is used for indicating the flow-exempt proxy server to acquire the network resource from a corresponding resource server;
receiving the network resource sent by the traffic-free proxy server;
wherein the network resources include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource.
In another aspect, a method for acquiring network resources based on a browser is provided, which is applied to a traffic-free proxy server, and the method includes:
receiving a resource access request sent by a mobile terminal, wherein the mobile terminal is provided with a Subscriber Identity Module (SIM) card, the resource access request is a request triggered by the browser, and the resource access request is a request sent by the mobile terminal after the SIM card is determined to have transacted a traffic-free tariff service and a network resource requested by the resource access request is not in a first flow-free set;
acquiring the network resource requested by the resource access request from a corresponding resource server;
sending the network resource to the mobile terminal;
wherein the network resources include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource.
In another aspect, a network resource obtaining apparatus based on a browser is provided, and is applied to a mobile terminal installed with a browser and a subscriber identity module SIM card, and the apparatus includes:
the first detection module is used for detecting whether the SIM card handles the traffic fee free service or not when the resource access request triggered by the browser is obtained;
a second detection module, configured to detect whether a network resource requested by the resource access request is in a first flow-free set when the SIM card handles a flow-free tariff service;
a sending module, configured to send the resource access request to the traffic-exempt proxy server when a network resource requested by the resource access request is not in a first traffic-exempt set, where the resource access request is used to instruct the traffic-exempt proxy server to obtain the network resource from a corresponding resource server;
a receiving module, configured to receive the network resource sent by the traffic-free proxy server;
wherein the network resources include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource.
In another aspect, an apparatus for acquiring a network resource based on a browser is provided, where the apparatus is applied to a traffic-free proxy server, and the apparatus includes:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a resource access request sent by a mobile terminal, the mobile terminal is provided with a browser and a Subscriber Identity Module (SIM) card, the resource access request is a request triggered by the browser, and the resource access request is a request sent by the mobile terminal after the SIM card is determined to handle a traffic-free tariff service and a network resource requested by the resource access request is not in a first flow-free set;
the acquisition module is used for acquiring the network resource requested by the resource access request from the corresponding resource server;
the sending module is used for sending the network resource to the mobile terminal;
wherein the network resources include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource.
In yet another aspect, a computer device is provided, where the terminal includes a processor and a memory, where the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the method for acquiring network resources based on a browser according to the above aspect.
In yet another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by a processor to implement the browser-based network resource acquisition method according to the above aspect.
In another aspect, a resource acquisition system is provided, which includes: the system comprises a mobile terminal and a flow-free proxy server;
the mobile terminal comprises the browser-based network resource acquisition device in the above aspect, or the mobile terminal is the computer device in the above aspect;
the traffic-free proxy server includes the browser-based network resource acquisition device described in the above aspect, or the traffic-free proxy server is the computer device described in the above aspect.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
the embodiment of the invention provides a method, a device, a system and a storage medium for acquiring network resources based on a browser.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an implementation environment related to a method for acquiring a web resource based on a browser according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for acquiring a network resource based on a browser according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for acquiring a web resource based on a browser according to an embodiment of the present invention;
FIG. 4 is a flowchart of a further method for acquiring a network resource based on a browser according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another implementation environment related to a method for acquiring a web resource based on a browser according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for sending a resource access request by a mobile terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a network resource acquiring apparatus based on a browser according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of another browser-based network resource acquisition apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a sending module according to an embodiment of the present invention;
FIG. 10 is a schematic structural diagram of another browser-based network resource acquiring apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a schematic structural diagram of an implementation environment related to a method for acquiring a network resource based on a browser according to an embodiment of the present invention is shown. The implementation environment may include a mobile terminal 00, a traffic-exempt proxy server 01, and a resource server 02. The mobile terminal 00 may be a smart phone, a car navigator, a multimedia player, or a wearable device. Each server in the traffic-free proxy server 01 and the resource server 02 may be a server, or a server cluster composed of several servers, or a cloud computing service center.
Referring to fig. 1, it can be seen that the connections between the mobile terminal 00 and the traffic-exempt proxy server 01, between the mobile terminal 00 and the resource server 02, and between the traffic-exempt proxy server 01 and the resource server 02 may be established through wired or wireless networks.
The mobile terminal 00 may have a browser and a Subscriber Identity Module (SIM) card installed therein. The SIM card may be a physical card or a virtual electronic card, which is not limited in the embodiments of the present invention. The traffic-free proxy server 01 may be a proxy server co-deployed with the operator for the application developer of the browser. When the browser installed in the mobile terminal 00 detects a resource access operation performed by a user (for example, an operation of inputting a web address in an address bar of the browser or an operation of clicking a link displayed on a browser interface), generation of a resource access request may be triggered. The mobile terminal may send the resource access request to the traffic-exempt proxy server 01 when it is determined that the SIM card installed in the mobile terminal handles the traffic-exempt service proposed by the application developer in cooperation with the operator and the network resource requested by the resource access request is not in the first traffic-exempt set. The traffic-exempt proxy server 01 may obtain the network resource from the resource server 02 based on the resource access request, and send the network resource to the mobile terminal 00.
Because the resources received by the mobile terminal 01 through the flow-free proxy server 01 do not need to consume the network flow rate charge, the cost of resource acquisition is effectively reduced, namely the network flow rate charge of the user is reduced.
Fig. 2 is a flowchart of a method for acquiring network resources based on a browser according to an embodiment of the present invention, where the method may be applied to the mobile terminal 00 shown in fig. 1 and equipped with a browser and a SIM card, and with reference to fig. 2, the method may include:
In the embodiment of the present invention, a browser may be installed in the mobile terminal, and the resource access request may be generated by triggering the browser when detecting a resource access operation performed by a user. For example, an address bar and a plurality of links are displayed in a display interface of the browser, and the resource access operation may be an operation of a user inputting a website in the address bar, or an operation of clicking any link, and the like; or the resource access operation may also be a voice operation, and the like, and the embodiment of the present invention does not limit the type of the resource access operation.
After the mobile terminal obtains the resource access request triggered by the browser, it may first detect whether the SIM card installed in the mobile terminal has handled a traffic-free service, where the traffic-free service is a service released by the application developer and the operator of the browser in cooperation. If the traffic-free service is transacted, the step 102 can be continuously executed; if the traffic-free service is not handled, the network resource can be acquired according to the original resource acquisition mode, for example, the resource access request can be directly sent to the resource server.
The first flow-exempt set may be a set of traffic-exempt tariff network resources that are pre-specified by an application developer of the browser. That is, the network resources included in the first set of exempt streams may be network resources provided by a resource server specified by an application developer of the browser.
In the embodiment of the present invention, the resource access request may carry a resource identifier, where the resource identifier may be an identifier of a resource server where a network resource requested by the resource access request is located. For example, the resource identification may be a domain name or an Internet Protocol (IP) address of the resource server. Accordingly, the mobile terminal may determine whether the network resource requested by the resource access request is in the first flow-exempt set by detecting whether the resource identifier in the resource access request is an identifier of a resource server specified by an application developer. When the mobile terminal detects that the resource identifier is not the identifier of the resource server specified by the application developer, it may be determined that the network resource is not in the first flow-free set, and then step 103 may be executed; when the mobile terminal detects that the resource identifier is the identifier of the resource server specified by the application developer, the mobile terminal can determine that the network resource is in the first flow-free set, and further can directly send the resource access request to the resource server.
And 103, when the network resource requested by the resource access request is not in the first flow-exempt set, sending the resource access request to a flow-exempt proxy server.
When the network resource is not in the first flow-exempt set, the resource access request sent by the mobile terminal to the flow-exempt proxy server may be used to instruct the flow-exempt proxy server to acquire the network resource from the corresponding resource server.
And 104, receiving the network resource sent by the traffic-free proxy server.
The network resources may include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource.
In summary, the embodiment of the present invention provides a method for acquiring network resources based on a browser, where a mobile terminal determines that an installed SIM card handles a traffic exemption tariff service, and when a network resource requested by a resource access request triggered by the browser is not in a first traffic exemption set, the mobile terminal may send the resource access request to a traffic exemption proxy server and receive the network resource acquired by the traffic exemption proxy server from the resource server, thereby implementing traffic exemption tariff acquisition of the network resource, and effectively reducing the cost of resource acquisition, i.e., reducing the network traffic tariff of a user.
Fig. 3 is a flowchart of another browser-based network resource obtaining method according to an embodiment of the present invention, where the method may be applied to the traffic-free proxy server 01 shown in fig. 1, and referring to fig. 3, the method may include:
The mobile terminal is provided with a browser and an SIM card, the resource access request is a request triggered by the browser, and the resource access request is a request sent by the mobile terminal after the SIM card is determined to handle the traffic-exempt charging service and the network resource requested by the resource access request is not in the first flow-exempt set.
The traffic-free proxy server can determine a corresponding resource server according to the resource access request, establish communication connection with the corresponding resource server, and acquire the network resource requested by the resource access request.
Wherein the network resource may include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource.
In summary, the embodiments of the present invention provide a network resource obtaining method based on a browser, where a traffic-free proxy server may receive a resource access request sent by a mobile terminal, obtain a network resource requested by the resource access request from a corresponding resource server, and forward the network resource to the mobile terminal, so that the mobile terminal may achieve traffic-free tariff obtaining of the network resource, and effectively reduce the cost of resource obtaining, that is, reduce the network traffic tariff of a user.
Fig. 4 is a flowchart of another method for acquiring a network resource based on a browser according to an embodiment of the present invention, where the method may be applied in the implementation environment shown in fig. 1, and with reference to fig. 4, the method may include:
step 301, the mobile terminal obtains a resource access request triggered by the browser.
The resource access request may be generated by a browser installed in the mobile terminal triggered when a resource access operation performed by a user is detected. For example, an address bar and several links are displayed in the display interface of the browser, and the resource access operation may be an operation of a user inputting a web address in the address bar, an operation of clicking any link, or a voice operation for instructing to access a specified resource.
In this embodiment of the present invention, the network resource requested by the resource access request may include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource. The file resources can comprise pictures, documents, compressed files, application program installation packages, multimedia files and the like; the streaming media resources may include audio resources, video resources, and the like.
For example, assuming that a user clicks an online viewing link of the movie XX on a display interface of a browser, the mobile terminal may obtain a resource access request of the streaming media resource movie XX; if the user clicks the download link of the movie XX on the display interface of the browser, the mobile terminal can obtain the resource access request of the file resource movie XX.
Step 302, the mobile terminal detects whether the installed SIM card handles the traffic free tariff service.
After the mobile terminal obtains the resource access request, it may first detect whether the SIM card installed in the mobile terminal has already handled the traffic-free service, and if the traffic-free service has been handled, may continue to execute step 303; if the traffic-free service is not handled, the current operation may be ended, and the network resource may be acquired according to the original resource acquisition mode, for example, the resource access request may be directly sent to the resource server.
For example, the mobile terminal may query the operator server for the services handled by the SIM card, and then detect whether the SIM card handles the traffic exempt charging services.
Step 303, the mobile terminal detects whether the network resource requested by the resource access request is in the first flow-exempt set.
The resource access request may carry a resource identifier, where the resource identifier may be an identifier of a resource server where the requested network resource is located, and the mobile terminal may determine whether the network resource requested by the resource access request is in the first flow-free set by detecting whether the identifier of the resource server is an identifier of a resource server specified by an application developer of the browser. If the network resource is in the first flow-exempt set, step 304 may be performed; if the network resource is not in the first flow-exempt set, step 306 may be performed. The identifier of the resource server specified by the application developer can be issued to the mobile terminal by the browser server in advance.
In the embodiment of the present invention, the resource access request may be a URL of a resource to be acquired, where the URL carries an identifier of a resource server, and the identifier of the resource server may be a domain name or an IP address of the resource server. Correspondingly, the mobile terminal may determine whether the network resource requested by the URL is in the first flow-exempt set by detecting whether the identifier of the resource server carried in the URL is the identifier of the resource server specified by the application developer.
For example, assume that the domain name of the resource server specified by the application developer is: com, the resource access request of the streaming media resource movie XX acquired by the mobile terminal is URL: com/XX, the mobile terminal may determine that the domain name of the resource server carried in the URL is the domain name specified by the application developer, and thus may determine that the streaming media resource requested by the URL: movie XX is in the first streamless set and step 304 may be performed; if the mobile terminal obtains the resource access request: com/XX, the mobile terminal may perform step 306 because the domain name bb.com of the resource server carried in the resource access request is not the domain name specified by the application developer.
In the implementation of the invention, the mobile terminal can automatically detect whether the resource requested by the resource access request triggered by the browser is in the first flow-free set, and can send the resource access request to the flow-free proxy server or the resource server according to the detection result, thereby not only realizing the flow-free charge acquisition when the browser acquires the network resource of the first flow-free set, but also realizing the flow-free charge acquisition when the browser acquires the network resource of the second flow-free set (namely, not the first flow-free set).
In the directional traffic monthly subscription service in the related art, the mobile terminal directly acquires resources from the resource server after acquiring the resource access request. In the process of acquiring the resources, network access equipment of an operator monitors and counts network traffic between the mobile terminal and each resource server, and judges whether the network traffic between the mobile terminal and the specified resource server exceeds an upper limit value of a traffic packet. The directional flow monthly subscription service in the related technology can only realize flow-free charge acquisition of the designated network resource, but the non-designated network resource cannot realize the flow-free charge acquisition, so that the resource acquisition cost is higher and the application flexibility is poorer.
Step 304, the mobile terminal sends a resource access request to the resource server corresponding to the network resource.
If the mobile terminal determines that the network resource requested by the resource access request is in the first flow-free set, the resource access request may be sent to the corresponding resource server directly according to the identifier of the resource server (e.g., a domain name or an IP address of the resource server) carried in the resource access request.
For example, if the resource access request acquired by the mobile terminal is: com/XX, the resource access request may be sent directly to the aa.com domain name video server.
Step 305, the resource server sends the network resource requested by the resource access request to the mobile terminal.
After receiving the resource access request, the resource server can acquire the network resource requested by the resource access request and send the network resource to the mobile terminal.
Com, receives a resource access request: com/XX, the streaming media resource of movie XX may be sent to the mobile terminal.
Step 306, the mobile terminal determines a corresponding flow-free proxy server according to the type of the network resource requested by the resource access request and the protocol type of the resource access request.
When the mobile terminal determines that the network resource requested by the resource access request is not in the first flow-exempt set, the resource access request may be sent to a traffic-exempt proxy server. In the embodiment of the present invention, an application developer and an operator may deploy multiple types of traffic-free proxy servers for different types of network resources and different types of communication protocols, so that the mobile terminal may also determine a corresponding traffic-free proxy server according to the type of the network resource requested by the resource access request and the protocol type of the resource access request.
Optionally, as shown in fig. 5, the traffic-free proxy server deployed by the application developer and the operator may include at least: at least one of the web server 011, the download server 012, the half-duplex tunnel server 013, and the duplex tunnel server 014. Accordingly, the process of the mobile terminal determining the corresponding traffic-free proxy server may include at least one of the following steps:
step 3061, if the network resource is a web page resource and the Protocol type of the resource access request is a hypertext Transfer Protocol (HTTP), it may be determined that the corresponding traffic-free proxy server is a web page server.
Step 3062, if the network resource is a file resource or a streaming media resource and the protocol type of the resource access request is HTTP, it may be determined that the corresponding traffic-free proxy server is a download server.
The data transmission channel between the download server and the mobile terminal supports a streaming method, which is to compress network resources into a plurality of compressed packets with small capacity and continuously transmit each compressed packet to the mobile terminal in real time, and may also be referred to as a streaming loopback packet. In addition, the download server can dynamically adjust the speed of sending the resource to the mobile terminal according to the network state of the mobile terminal.
The HTTP may be a first generation HTTP (HTTP 1.0) or a next generation HTTP (HTTP 2.0), which is not limited in the embodiment of the present invention.
Step 3063, if the Protocol type of the resource access request is an encrypted hypertext Transfer Protocol over Secure Socket Layer (HTTPS), determining that the corresponding flow-free proxy server is a half-duplex tunnel server.
HTTPS may also be referred to as a secure version of HTTP, among others. The network resource requested based on the HTTPS is generally a file resource or a streaming media resource, etc. The data transmission channel between the half-duplex tunnel server and the mobile terminal is a tunnel channel, and the tunnel channel only forwards (i.e. transparently transmits) the data packet of the resource sent by the resource server, but does not analyze the data packet, so long as the data packet is ensured to be ordered. For some resource obtaining scenarios with higher requirements on data security performance, for example, when the mobile terminal obtains resources (for example, an authentication code or a transaction bill) from a bank server, the half-duplex tunnel server is adopted as a proxy server, so that the security during resource transmission can be effectively ensured.
Compared with the mode that the protocol type of the resource access request is converted into HTTP from HTTPS and then the webpage server or the download server is used as the proxy server, the method and the device have the advantages that the half-duplex tunnel server is directly used as the proxy server, so that the safety is high, and potential safety hazards do not exist.
Step 3064, if the protocol type of the resource access request is a full-duplex communication protocol, determining that the corresponding flow-free proxy server is a duplex tunnel server.
The full duplex communication protocol may include: a WebSocket protocol, or a WebSockets protocol (i.e., a secure version of the WebSocket protocol), for implementing full duplex communication between a browser and a server. The network resource requested based on the full-duplex communication protocol is generally a web application, such as a web game or a chat applet.
Similar to the half-duplex tunnel server, the data transmission channel between the duplex tunnel server and the mobile terminal is also a tunnel channel, and the duplex tunnel server only forwards the data packet of the resource sent by the resource server, but does not parse the data packet.
In an example, it is assumed that the resource access request acquired by the mobile terminal is: com/XX, and the protocol type of the resource access request is HTTPS, because the type of the network resource requested by the resource access request is a streaming media resource, the mobile terminal may determine that the corresponding traffic-free proxy server is a download server.
It should be noted that the methods shown in the steps 3061 to 3064 may be deleted or combined according to actual situations, and this is not limited in the embodiment of the present invention.
In the embodiment of the invention, because the types of the transmission protocols on which the different types of network resources are based are different, the different types of network resources are acquired and forwarded by the different types of flow-free proxy servers, so that the different types of network resources can be effectively forwarded, the types of the network resources which can be acquired are enriched, and the effectiveness of the network resources is improved.
Step 307, the mobile terminal sends the resource access request to the corresponding traffic-exempt proxy server.
The resource access request is used for indicating the flow-free proxy server to acquire resources from the corresponding resource server. In the embodiment of the invention, when the mobile terminal determines that the network resource requested by the resource access request is not in the first flow-free set, the mobile terminal can acquire the network resource through the flow-free proxy server; when the network resource is in the first flow-free set, the network resource can be directly obtained from the corresponding resource server, so that the load of the flow-free proxy server can be reduced, the number of the flow-free proxy servers required to be deployed by small application developers and operators can be effectively reduced, and the deployment cost of the flow-free proxy server is reduced.
Further, in order to ensure the security and reliability of obtaining the network resource flow-free charge, the mobile terminal which does not handle the flow-free service is prevented from accessing the flow-free proxy server and obtaining the network resource, before sending the resource access request to the flow-free proxy server, the mobile terminal may also obtain the verification key first, for example, the mobile terminal may receive the verification key issued by the key server; correspondingly, when the mobile terminal sends the resource access request to the traffic-free proxy server, the obtained verification key may be added to the resource access request, and then the resource access request carrying the verification key may be sent to the traffic-free proxy server.
Since the authentication password is also stored in the traffic-free proxy server in advance, after the traffic-free proxy server receives the resource access request, the resource access request can be authenticated and then forwarded to the resource server based on the authentication key. By carrying the verification key in the resource access request, the security and the reliability of obtaining the network resource flow-free charge can be effectively improved.
Optionally, if the traffic-free proxy server is a half-duplex tunnel server or a duplex tunnel server, as shown in fig. 6, the process of the mobile terminal sending the resource access request to the corresponding traffic-free proxy server may include:
step 3071, the mobile terminal sends a connection request to the traffic-free proxy server.
After determining that the corresponding flow-exempt proxy server is the tunnel server, the mobile terminal may first send a connection (connect) request to the flow-exempt proxy server, where the connection request is used to instruct the flow-exempt proxy server to establish a communication connection with the corresponding resource server.
Step 3072, the flow-free proxy server establishes a communication connection with the corresponding resource server according to the connection request.
The connection request may carry an identifier of a resource server where the network resource requested by the resource access request is located, for example, a domain name or an IP address of the resource server. The traffic-free proxy server may establish a communication connection with the corresponding resource server according to the identifier of the resource server, where the communication connection may be a Transmission Control Protocol (TCP) connection.
Step 3073, the traffic-exempt proxy server sends a connection response to the mobile terminal when the establishment of the communication connection is completed.
The connection response may be used to indicate that a communication connection between the traffic-exempt proxy server and the resource server has been established.
Step 3074, the mobile terminal sends the resource access request to the traffic-exempt proxy server.
The mobile terminal can send the resource access request to the traffic-free proxy server after receiving the connection response, and the traffic-free proxy server can establish communication connection with the resource server successfully at the moment, so that the resource access request sent by the mobile terminal can be guaranteed to be effectively forwarded to the resource server.
Step 308, the traffic-free proxy server obtains the network resource requested by the resource access request from the corresponding resource server.
After receiving the resource access request sent by the mobile terminal, the traffic-free proxy server may obtain the network resource from the corresponding resource server based on the identifier of the resource server carried in the resource access request, that is, capture the data packet of the network resource.
For example, if the resource access request received by the traffic-exempt proxy server is: and c, obtaining the streaming media resource of the power supply XX from the resource server with the domain name bb.com by the traffic-free proxy server.
Further, as described above, in order to improve the security and reliability of obtaining the network resource traffic-free tariff, the traffic-free proxy server may store in advance an authentication key, where the authentication key is the same as the authentication key sent by the key server to the mobile terminal. For example, the authentication key stored in the traffic-exempt proxy server may also be issued by the key server. After receiving the resource access request sent by the mobile terminal, the traffic-free proxy server may also detect whether the resource access request carries the verification key. When the resource access request carries the verification key, the traffic-free proxy server acquires the network resource requested by the resource access request from the corresponding resource server; when the resource access request does not carry the authentication key, or the carried authentication key is different from the authentication key stored in the traffic-exempt proxy server in advance, the traffic-exempt proxy server may not forward the resource access request to the resource server, that is, the step 308 is not executed any more.
Step 309, the traffic-free proxy server sends the network resource to the mobile terminal.
And after the traffic-free proxy server acquires the network resource from the resource server, the network resource can be issued to the mobile terminal. Because the flow-free proxy server is a proxy server deployed by both an application developer and an operator of the browser, network resources acquired and sent to the mobile terminal through the flow-free proxy server do not need to consume network flow charges, and the cost for acquiring the resources can be effectively reduced.
In the embodiment of the present invention, the network resource requested by the resource access request may include any one of a web resource, a file resource, a streaming media resource, and a web page version application resource, so that after handling the traffic-free service, the user may access a web page (e.g., a shopping web page or a social web page) via a browser installed in the mobile terminal, download a file (e.g., an application installation package or a multimedia file), watch a video online, listen to audio online (e.g., music or a radio station), or run a web page version applet (e.g., a chat program or a game program), and the like, thereby effectively improving user experience. In addition, the resource access request may also be a submit (POST) request, that is, the mobile terminal may also upload resources to the resource server, and the process of uploading resources is similar to the process of acquiring network resources, and is not described here again.
Optionally, if the traffic-free proxy server is a download server, when the network resource requested by the resource access request is a streaming media resource, or when the network resource is a file resource and the size of the file resource is greater than a preset threshold (e.g., 1 megabit (M) or 2M), the download server may send the network resource to the mobile terminal in a streaming transmission manner.
Further, in order to improve the efficiency of network resource transmission, the download server may also detect the network state of the mobile terminal in real time during the process of sending the network resource; and the resource sending speed of the streaming transmission mode can be adjusted according to the network state.
The resource sending speed may be a speed at which the download server sends the compressed packets, and the speed may be measured by the number of the compressed packets sent in a unit time. In the embodiment of the invention, the download server can improve the speed of capturing the network resources from the resource server and improve the speed of sending the network resources to the mobile terminal when detecting that the network state of the mobile terminal is better; correspondingly, when the network state of the mobile terminal is detected to be poor, the download server can reduce the speed of capturing the network resources from the resource server and reduce the speed of sending the network resources to the mobile terminal. The download server can make the resource sending speed adaptive to the network state of the mobile terminal by dynamically adjusting the resource sending speed, thereby improving the efficiency of resource transmission as much as possible.
It should be noted that, in the embodiment of the present invention, the steps executed by the mobile terminal in the method for acquiring network resources based on a browser may all be implemented by a kernel of the browser, where the kernel of the browser is a Rendering Engine (Rendering Engine) of the browser.
It should be further noted that, in the embodiment of the present invention, the mobile terminal needs to perform data interaction with the resource server or the traffic-free proxy server through a network access device (e.g., a base station), where the network access device is a device deployed by an operator. The network access equipment can monitor and count the network traffic between the mobile terminal and each server in real time. And, the network access device may not charge the network traffic between the mobile terminal and the resource server specified by the application developer and the network traffic between the mobile terminal and the traffic-exempt proxy server.
It should be further noted that, the sequence of the steps of the method for acquiring network resources based on a browser provided in the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the situation. For example, step 306 may be deleted according to the circumstances, that is, only one type of traffic-exempt proxy server may be deployed in the implementation environment, and the mobile terminal may directly send the resource access request to the traffic-exempt proxy server after detecting that the network resource requested by the resource access request triggered by the browser is not in the first traffic-exempt set. Any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application is covered by the protection scope of the present application, and thus the detailed description thereof is omitted.
In summary, the embodiment of the present invention provides a method for acquiring network resources based on a browser, where a mobile terminal determines that an installed SIM card handles a traffic exemption tariff service, and when a network resource requested by a resource access request triggered by the browser is not in a first traffic exemption set, the mobile terminal may send the resource access request to a traffic exemption proxy server and receive the network resource acquired by the traffic exemption proxy server from the resource server, thereby implementing traffic exemption tariff acquisition of the network resource, and effectively reducing the cost of resource acquisition, i.e., reducing the network traffic tariff of a user. In addition, because the mobile terminal can also directly acquire the network resource from the resource server when the requested network resource is in the first flow-free set, the number of the flow-free proxy servers required to be deployed can be reduced, and the deployment cost of the flow-free proxy servers is reduced.
Fig. 7 is a schematic structural diagram of a network resource obtaining apparatus based on a browser according to an embodiment of the present invention, where the apparatus may be applied to the mobile terminal 00 shown in fig. 1, and as shown in fig. 7, the apparatus may include:
the first detection module 401 is configured to detect whether a SIM card installed in the mobile terminal has handled a traffic fee exempting service when a resource access request triggered by the browser is obtained.
A second detecting module 402, configured to detect whether the network resource requested by the resource access request is in the first flow-free set when the SIM card handles the flow-free charging service.
A sending module 403, configured to send the resource access request to the traffic-exempt proxy server when the network resource requested by the resource access request is not in the first traffic-exempt set, where the resource access request is used to instruct the traffic-exempt proxy server to obtain the network resource from a corresponding resource server.
A receiving module 404 may be configured to receive the network resource sent by the traffic-exempt proxy server.
Wherein the network resource may include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource.
Optionally, the sending module 403 may be further configured to send the resource access request to a resource server corresponding to the network resource when the network resource requested by the resource access request is in the first set of exempt streams.
The receiving module 404 may be further configured to receive the network resource sent by the resource server.
Optionally, fig. 8 is a schematic structural diagram of another browser-based network resource obtaining apparatus according to an embodiment of the present invention, and as shown in fig. 8, the apparatus may further include:
a key obtaining module 405, configured to obtain the authentication key before the sending module 403 sends the resource access request to the traffic-exempt proxy server.
Correspondingly, the sending module 403 may be configured to send the resource access request carrying the authentication key to the traffic-exempt proxy server.
Optionally, fig. 9 is a schematic structural diagram of a sending module according to an embodiment of the present invention, and as shown in fig. 9, the sending module 403 may include:
the determining submodule 4031 is configured to determine, according to at least one of the type of the network resource requested by the resource access request and the protocol type of the resource access request, a corresponding traffic-exempt proxy server.
The sending submodule 4032 is configured to send the resource access request to the corresponding traffic-exempt proxy server.
Optionally, the determining sub-module 4031 may be configured to:
if the network resource is a webpage resource, the protocol type of the resource access request is a hypertext transfer protocol, and a corresponding flow-free proxy server is determined to be a webpage server;
and/or, if the network resource is a file resource or a streaming media resource, the protocol type of the resource access request is a hypertext transfer protocol, and the corresponding flow-free proxy server is determined to be a download server;
and/or if the protocol type of the resource access request is an encrypted hypertext transfer protocol, determining that the corresponding flow-free proxy server is a half-duplex tunnel server;
and/or if the protocol type of the resource access request is a full-duplex communication protocol, determining that the corresponding flow-free proxy server is a duplex tunnel server.
Optionally, the corresponding traffic-free proxy server is a half-duplex tunnel server or a duplex tunnel server, and the sending sub-module 4032 may be configured to:
sending a connection request to the flow-free proxy server, wherein the connection request is used for indicating the flow-free proxy server to establish communication connection with a corresponding resource server;
receiving a connection response sent by the traffic-exempt proxy server, wherein the connection response is used for indicating that the communication connection is established;
and sending the resource access request to the traffic-free proxy server.
In summary, the embodiment of the present invention provides a network resource obtaining device based on a browser, which can send a resource access request to a traffic-free proxy server and receive a network resource obtained by the traffic-free proxy server from a resource server when it is determined that an SIM card installed in a mobile terminal handles a traffic-free tariff service and the network resource requested by the resource access request triggered by the browser is not in a first traffic-free set, thereby achieving traffic-free tariff obtaining of the resource, effectively reducing the cost of resource obtaining, i.e., reducing the network traffic tariff of a user.
Fig. 10 is a schematic structural diagram of another browser-based network resource obtaining apparatus according to an embodiment of the present invention, where the apparatus may be applied to the traffic-free proxy server 01 shown in fig. 1, and as shown in fig. 10, the apparatus may include:
the receiving module 501 may be configured to receive a resource access request sent by a mobile terminal, where the mobile terminal is installed with a browser and an SIM card, the resource access request may be a request triggered by the browser, and the resource access request is a request sent by the mobile terminal after determining that the SIM card has handled a traffic exempt tariff service and a network resource requested by the resource access request is not in a first exempt stream set.
The obtaining module 502 may be configured to obtain, from a corresponding resource server, a network resource requested by the resource access request.
A sending module 503, configured to send the network resource to the mobile terminal.
Wherein the network resource may include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource.
Optionally, the sending module 503 may be configured to:
detecting whether the resource access request carries an authentication key;
and when the resource access request carries the verification key, acquiring the network resource requested by the resource access request from the corresponding resource server.
Optionally, the traffic-free proxy server is a web server, correspondingly, the network resource is a web resource, and the protocol type of the resource access request is a hypertext transfer protocol;
or, the flow-free proxy server is a download server, correspondingly, the network resource is a file resource or a streaming media resource, and the protocol type of the resource access request is a hypertext transfer protocol;
or, the flow-free proxy server is a half-duplex tunnel server, and correspondingly, the protocol type of the resource access request is an encrypted hypertext transfer protocol;
or, the traffic-free proxy server is a duplex tunnel server, and correspondingly, the protocol type of the resource access request is a full-duplex communication protocol.
Optionally, if the traffic-free proxy server is a half-duplex tunnel server or a duplex tunnel server, the receiving module 501 may be configured to:
receiving a connection request sent by the mobile terminal;
establishing communication connection with a corresponding resource server according to the connection request;
when the establishment of the communication connection is completed, sending a connection response to the mobile terminal;
and receiving a resource access request sent by the mobile terminal.
Optionally, the traffic-free proxy server is a download server, and the sending module 503 may be configured to:
and when the network resource is a streaming media resource or the network resource is a file resource, and the size of the file resource is larger than a preset threshold value, sending the network resource to the mobile terminal by adopting a streaming transmission mode.
Optionally, the sending module 503 may be further configured to:
detecting a network state of the mobile terminal;
the resource transmission rate of the streaming transmission method is adjusted according to the network state.
In summary, the embodiments of the present invention provide a network resource obtaining device based on a browser, where the device may receive a resource access request sent by a mobile terminal, obtain a network resource requested by the resource access request from a corresponding resource server, and forward the network resource to the mobile terminal, so that the mobile terminal may achieve traffic-free cost obtaining of the network resource, and effectively reduce the cost of resource obtaining, that is, reduce the network traffic cost of a user.
Fig. 11 shows a block diagram of a computer device 1100 provided in an exemplary embodiment of the present application. The computer device 1100 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Computer device 1100 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like. Alternatively, the computer device 1100 may also be a server.
Generally, the computer device 1100 includes: a processor 1101 and a memory 1102.
In some embodiments, the computer device 1100 may also optionally include: a peripheral interface 1103 and at least one peripheral. The processor 1101, memory 1102 and peripheral interface 1103 may be connected by a bus or signal lines. Various peripheral devices may be connected to the peripheral interface 1103 by buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1104, touch display screen 1105, camera 1106, audio circuitry 1107, positioning component 1108, and power supply 1109.
The peripheral interface 1103 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, memory 1102, and peripheral interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102 and the peripheral device interface 1103 may be implemented on separate chips or circuit boards, which is not limited by this embodiment.
The Radio Frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1104 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1104 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1104 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1104 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1105 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 also has the ability to capture touch signals on or over the surface of the display screen 1105. The touch signal may be input to the processor 1101 as a control signal for processing. At this point, the display screen 1105 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 1105 may be one, providing the front panel of the computer device 1100; in other embodiments, the display screens 1105 may be at least two, each disposed on a different surface of the computer device 1100 or in a folded design; in still other embodiments, the display 1105 may be a flexible display disposed on a curved surface or on a folded surface of the computer device 1100. Even further, the display screen 1105 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display screen 1105 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The audio circuitry 1107 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1101 for processing or inputting the electric signals to the radio frequency circuit 1104 to achieve voice communication. The microphones may be multiple and placed at different locations on the computer device 1100 for stereo sound acquisition or noise reduction purposes. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1101 or the radio frequency circuit 1104 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1107 may also include a headphone jack.
The Location component 1108 is used to locate the current geographic Location of the computer device 1100 for navigation or LBS (Location Based Service). The Positioning component 1108 may be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union galileo System.
The power supply 1109 is used to provide power to the various components within the computer device 1100. The power supply 1109 may be alternating current, direct current, disposable or rechargeable. When the power supply 1109 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the computer device 1100 also includes one or more sensors 1110. The one or more sensors 1110 include, but are not limited to: acceleration sensor 1111, gyro sensor 1112, pressure sensor 1113, fingerprint sensor 1114, optical sensor 1115, and proximity sensor 1116.
The acceleration sensor 1111 can detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the computer apparatus 1100. For example, the acceleration sensor 1111 may be configured to detect components of the gravitational acceleration in three coordinate axes. The processor 1101 may control the touch display screen 1105 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1112 may detect a body direction and a rotation angle of the computer device 1100, and the gyro sensor 1112 may cooperate with the acceleration sensor 1111 to acquire a 3D motion of the user on the computer device 1100. From the data collected by gyroscope sensor 1112, processor 1101 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensors 1113 may be disposed on the side bezel of the computer device 1100 and/or on the lower layer of the touch display screen 1105. When the pressure sensor 1113 is disposed on the side frame of the computer device 1100, the holding signal of the user to the computer device 1100 can be detected, and the processor 1101 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1113. When the pressure sensor 1113 is disposed at the lower layer of the touch display screen 1105, the processor 1101 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 1105. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1114 is configured to collect a fingerprint of the user, and the processor 1101 identifies the user according to the fingerprint collected by the fingerprint sensor 1114, or the fingerprint sensor 1114 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the user is authorized by the processor 1101 to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 1114 may be disposed on the front, back, or side of the computer device 1100. When a physical key or vendor Logo is provided on the computer device 1100, the fingerprint sensor 1114 may be integrated with the physical key or vendor Logo.
Optical sensor 1115 is used to collect ambient light intensity. In one embodiment, the processor 1101 may control the display brightness of the touch display screen 1105 based on the ambient light intensity collected by the optical sensor 1115. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1105 is turned down. In another embodiment, processor 1101 may also dynamically adjust the shooting parameters of camera assembly 1106 based on the ambient light intensity collected by optical sensor 1115.
The proximity sensor 1116, also referred to as a distance sensor, is typically disposed on a front panel of the computer device 1100. The proximity sensor 1116 is used to capture the distance between the user and the front of the computer device 1100. In one embodiment, the touch display screen 1105 is controlled by the processor 1101 to switch from a bright screen state to a dark screen state when the proximity sensor 1116 detects that the distance between the user and the front face of the computer device 1100 is gradually decreasing; when the proximity sensor 1116 detects that the distance between the user and the front face of the computer device 1100 becomes progressively larger, the touch display screen 1105 is controlled by the processor 1101 to switch from a breath-screen state to a light-screen state.
Those skilled in the art will appreciate that the configuration illustrated in FIG. 11 does not constitute a limitation of the computer device 1100, and may include more or fewer components than those illustrated, or may combine certain components, or may employ a different arrangement of components.
The embodiment of the present invention further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the method for acquiring a network resource based on a browser provided in the foregoing method embodiment.
An embodiment of the present invention further provides a system for acquiring network resources based on a browser, and referring to fig. 1, the system may include: mobile terminal 00 and traffic exempt proxy server 01.
The mobile terminal 00 may include a browser-based network resource acquiring apparatus as shown in fig. 7 or fig. 8, and the apparatus may include a sending module shown in fig. 9; or the mobile terminal may be a computer device as shown in fig. 11.
The traffic-free proxy server 01 may include a browser-based network resource acquisition device as shown in fig. 10, or the traffic-free proxy server may be a computer device as shown in fig. 11.
Optionally, as shown in fig. 1, the resource obtaining system provided in the embodiment of the present invention may further include a resource server 02.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (16)
1. A network resource obtaining method based on a browser is characterized in that the method is applied to a mobile terminal provided with the browser and a Subscriber Identity Module (SIM) card, and comprises the following steps:
when a resource access request triggered by the browser is acquired, detecting whether the SIM card handles a traffic free tariff service or not;
if the SIM card handles the traffic-free tariff service, detecting whether the network resource requested by the resource access request is in a first flow-free set;
when the network resource requested by the resource access request is not in the first flow-exempt set, sending the resource access request to the flow-exempt proxy server, wherein the resource access request is used for indicating the flow-exempt proxy server to acquire the network resource from a corresponding resource server;
receiving the network resource sent by the traffic-free proxy server;
wherein the network resources include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource.
2. The method of claim 1, wherein after the detecting whether the network resource requested by the resource access request is in a first set of exempt streams, the method further comprises:
when the network resource requested by the resource access request is in the first flow-exempt set, sending the resource access request to a resource server corresponding to the network resource;
and receiving the network resource sent by the resource server.
3. The method of claim 1, wherein prior to said sending the resource access request to a traffic-exempt proxy server, the method further comprises:
obtaining a verification key;
the sending the resource access request to the traffic-exempt proxy server includes:
and sending the resource access request carrying the verification key to a traffic-exempt proxy server.
4. The method according to any one of claims 1 to 3, wherein said sending the resource access request to a traffic-exempt proxy server comprises:
determining a corresponding flow-free proxy server according to at least one of the type of the network resource requested by the resource access request and the protocol type of the resource access request;
and sending the resource access request to the corresponding traffic-free proxy server.
5. The method of claim 4, wherein determining the corresponding traffic-free proxy server according to at least one of a type of the network resource requested by the resource access request and a protocol type of the resource access request comprises:
if the network resource is a webpage resource, the protocol type of the resource access request is a hypertext transfer protocol, and the corresponding flow-free proxy server is determined to be a webpage server;
and/or, if the network resource is a file resource or a streaming media resource, the protocol type of the resource access request is a hypertext transfer protocol, and the corresponding flow-free proxy server is determined to be a download server;
and/or if the protocol type of the resource access request is an encrypted hypertext transfer protocol, determining that the corresponding flow-free proxy server is a half-duplex tunnel server;
and/or if the protocol type of the resource access request is a full-duplex communication protocol, determining that the corresponding flow-free proxy server is a duplex tunnel server.
6. The method of claim 5, wherein the corresponding traffic-exempt proxy server is a half-duplex tunnel server or a duplex tunnel server, and wherein sending the resource access request to the traffic-exempt proxy server comprises:
sending a connection request to the traffic-free proxy server, wherein the connection request is used for indicating the traffic-free proxy server to establish communication connection with a corresponding resource server;
receiving a connection response sent by the traffic-exempt proxy server, wherein the connection response is used for indicating that the communication connection is established;
and sending the resource access request to the traffic-free proxy server.
7. A network resource obtaining method based on a browser is applied to a flow-free proxy server, and the method comprises the following steps:
receiving a resource access request sent by a mobile terminal, wherein the mobile terminal is provided with a browser and a Subscriber Identity Module (SIM) card, the resource access request is a request triggered by the browser, and the resource access request is a request sent by the mobile terminal after the SIM card is determined to have transacted a traffic-free tariff service, and a network resource requested by the resource access request is not in a first flow-free set;
acquiring the network resource requested by the resource access request from a corresponding resource server;
sending the network resource to the mobile terminal;
wherein the network resources include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource.
8. The method of claim 7, wherein the obtaining the network resource requested by the resource access request from the corresponding resource server comprises:
detecting whether the resource access request carries an authentication key;
and when the resource access request carries the verification key, acquiring the network resource requested by the resource access request from the corresponding resource server.
9. The method according to claim 7 or 8, wherein the traffic-free proxy server is a half-duplex tunnel server or a duplex tunnel server, and the receiving a resource access request sent by a mobile terminal comprises:
receiving a connection request sent by the mobile terminal;
establishing communication connection with a corresponding resource server according to the connection request;
when the establishment of the communication connection is completed, sending a connection response to the mobile terminal;
and receiving a resource access request sent by the mobile terminal.
10. The method of claim 9, wherein the traffic-free proxy server is a download server, and wherein sending the network resource to the mobile terminal comprises:
and when the network resource is a streaming media resource or when the network resource is a file resource and the size of the file resource is larger than a preset threshold value, sending the network resource to the mobile terminal by adopting a streaming transmission mode.
11. A network resource acquisition device based on a browser is characterized in that the device is applied to a mobile terminal provided with the browser and a Subscriber Identity Module (SIM) card, and the device comprises:
the first detection module is used for detecting whether the SIM card handles the traffic fee free service or not when the resource access request triggered by the browser is obtained;
a second detection module, configured to detect whether a network resource requested by the resource access request is in a first flow-free set when the SIM card handles a flow-free tariff service;
a sending module, configured to send the resource access request to the traffic-exempt proxy server when a network resource requested by the resource access request is not in a first traffic-exempt set, where the resource access request is used to instruct the traffic-exempt proxy server to obtain the network resource from a corresponding resource server;
a receiving module, configured to receive the network resource sent by the traffic-free proxy server;
wherein the network resources include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource.
12. A network resource acquisition device based on a browser is applied to a flow-free proxy server, and the device comprises:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a resource access request sent by a mobile terminal, the mobile terminal is provided with a browser and a Subscriber Identity Module (SIM) card, the resource access request is a request triggered by the browser, and the resource access request is a request sent by the mobile terminal after the SIM card is determined to handle a traffic-free tariff service and a network resource requested by the resource access request is not in a first flow-free set;
the acquisition module is used for acquiring the network resource requested by the resource access request from the corresponding resource server;
the sending module is used for sending the network resource to the mobile terminal;
wherein the network resources include: any one of a web resource, a file resource, a streaming media resource, and a web version application resource.
13. A computer device comprising a processor and a memory, the memory having stored therein a computer program that is loaded and executed by the processor to implement the browser-based network resource acquisition method of any one of claims 1 to 6.
14. A computer device comprising a processor and a memory, the memory having stored thereon a computer program that is loaded and executed by the processor to implement the browser-based network resource acquisition method of any one of claims 7 to 10.
15. A computer-readable storage medium, in which a computer program is stored, the computer program being loaded and executed by a processor to implement the browser-based network resource acquisition method according to any one of claims 1 to 6 or the browser-based network resource acquisition method according to any one of claims 7 to 10.
16. A browser-based network resource acquisition system, the system comprising: the system comprises a mobile terminal and a flow-free proxy server;
the mobile terminal comprises the browser-based network resource acquisition device of claim 11, or the mobile terminal is the computer device of claim 13;
the traffic-exempt proxy server comprises a browser-based network resource acquisition device as recited in claim 12, or the traffic-exempt proxy server is the computer device recited in claim 14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810387123.3A CN108616835B (en) | 2018-04-26 | 2018-04-26 | Method, device and system for acquiring network resources based on browser and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810387123.3A CN108616835B (en) | 2018-04-26 | 2018-04-26 | Method, device and system for acquiring network resources based on browser and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108616835A CN108616835A (en) | 2018-10-02 |
CN108616835B true CN108616835B (en) | 2021-09-03 |
Family
ID=63660792
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810387123.3A Active CN108616835B (en) | 2018-04-26 | 2018-04-26 | Method, device and system for acquiring network resources based on browser and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108616835B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587747B (en) * | 2018-10-26 | 2021-05-04 | 努比亚技术有限公司 | SIM card switching control method, terminal and computer storage medium |
CN111770121B (en) * | 2019-04-01 | 2024-07-19 | 北京京东尚科信息技术有限公司 | Method and device for service access based on directional flow |
CN110769395B (en) * | 2019-10-30 | 2022-07-22 | 北京达佳互联信息技术有限公司 | Traffic-free service synchronization method and device |
CN111064675B (en) * | 2019-11-08 | 2023-04-28 | 中移(杭州)信息技术有限公司 | Access flow control method, device, network equipment and storage medium |
CN113590302A (en) * | 2020-04-30 | 2021-11-02 | 阿里巴巴集团控股有限公司 | Resource use method, vehicle-mounted resource use method, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103841204A (en) * | 2014-03-14 | 2014-06-04 | 北京奇虎科技有限公司 | Traffic-free downloading method, device and system based on mobile terminal |
CN105898726A (en) * | 2015-10-22 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Free flow client end proxy method and device |
CN107852581A (en) * | 2014-12-18 | 2018-03-27 | 脸谱公司 | The technology accessed for context mobile data |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9582816B2 (en) * | 2014-02-23 | 2017-02-28 | Tata Communications (America) Inc. | System and methods for enabling sponsored data access across multiple carriers |
-
2018
- 2018-04-26 CN CN201810387123.3A patent/CN108616835B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103841204A (en) * | 2014-03-14 | 2014-06-04 | 北京奇虎科技有限公司 | Traffic-free downloading method, device and system based on mobile terminal |
CN107852581A (en) * | 2014-12-18 | 2018-03-27 | 脸谱公司 | The technology accessed for context mobile data |
CN105898726A (en) * | 2015-10-22 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Free flow client end proxy method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108616835A (en) | 2018-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108616835B (en) | Method, device and system for acquiring network resources based on browser and storage medium | |
CN110674022B (en) | Behavior data acquisition method and device and storage medium | |
CN108306771B (en) | Log reporting method, device and system | |
CN108833963B (en) | Method, computer device, readable storage medium and system for displaying interface picture | |
CN111064795A (en) | Web page access acceleration method, system, computer equipment, server and medium | |
CN111092809B (en) | Method and device for pushing information in real time, computer equipment and storage medium | |
CN107959727B (en) | Method and device for communication between webpage and client | |
CN107968783B (en) | Traffic management method, device, terminal and computer readable storage medium | |
CN113542290B (en) | Data access request processing method, device, equipment and readable storage medium | |
CN111510482B (en) | Method and device for determining failed network request and computer storage medium | |
CN110569220B (en) | Game resource file display method and device, terminal and storage medium | |
CN111866140A (en) | Fusion management apparatus, management system, service calling method, and medium | |
CN111290896A (en) | Server pressure testing method, device, equipment and medium | |
CN111327694A (en) | File uploading method and device, storage medium and electronic equipment | |
CN113726521A (en) | Communication method, communication device, electronic equipment and readable storage medium | |
CN111625315A (en) | Page display method and device, electronic equipment and storage medium | |
CN111241451A (en) | Webpage processing method and device, computer equipment and storage medium | |
CN113377647B (en) | Page processing method, device, server, terminal and readable storage medium | |
CN109995704B (en) | Advertisement blocking method, device, equipment and computer readable storage medium | |
CN110912830A (en) | Method and device for transmitting data | |
CN107948174A (en) | The method and apparatus that completeness check is carried out when transmitting data | |
CN107800720B (en) | Hijacking reporting method, device, storage medium and equipment | |
CN108683699B (en) | Method and device for forwarding service request | |
CN111427850A (en) | Method, device and system for displaying alarm file | |
CN110971692B (en) | Method and device for opening service and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221121 Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518133 Patentee after: Shenzhen Yayue Technology Co.,Ltd. Address before: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. |
|
TR01 | Transfer of patent right |