CN108156210B - Target resource acquisition method and device - Google Patents
Target resource acquisition method and device Download PDFInfo
- Publication number
- CN108156210B CN108156210B CN201611125015.6A CN201611125015A CN108156210B CN 108156210 B CN108156210 B CN 108156210B CN 201611125015 A CN201611125015 A CN 201611125015A CN 108156210 B CN108156210 B CN 108156210B
- Authority
- CN
- China
- Prior art keywords
- proxy server
- client
- target website
- target
- address
- 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
- 238000000034 method Methods 0.000 title claims abstract description 80
- 230000004044 response Effects 0.000 claims description 31
- 238000004891 communication Methods 0.000 claims description 12
- 238000004806 packaging method and process Methods 0.000 claims description 9
- 238000005516 engineering process Methods 0.000 abstract description 8
- 230000005540 biological transmission Effects 0.000 description 27
- 238000010586 diagram Methods 0.000 description 25
- 230000015654 memory Effects 0.000 description 16
- 230000001133 acceleration Effects 0.000 description 15
- 230000000694 effects Effects 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 7
- 238000011161 development Methods 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 4
- 238000012546 transfer Methods 0.000 description 4
- 230000006835 compression Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000005034 decoration Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000002513 implantation Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method and a device for acquiring target resources. Wherein, the method comprises the following steps: the client acquires a link address of the proxy server through a browsing service, wherein the browsing service is integrated in the client; the client sends a first request to a proxy server pointed by the link address through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website and carries a domain name of the target website; and the client receives the target resource of the target website sent by the proxy server. The invention solves the technical problem of high network access cost in the related technology.
Description
Technical Field
The invention relates to the field of computers, in particular to a method and a device for acquiring target resources.
Background
Currently, there are three main factors affecting the network transmission efficiency and the network transmission speed: bandwidth, distance, origin server provisioning capability. In the process of optimizing network transmission, each application has a network agent and is connected to a proxy server of an application company, so that the aim of network acceleration is fulfilled, and network access is realized.
For the purpose of network acceleration, companies build a network agent system, and need to invest a large amount of servers and manpower for maintenance, and for medium and small-sized companies, the cost pressure is large. When the network agent is developed, the terminal and the background are cooperatively developed, and the workload of developers is large. In addition, the coverage of network resources is incomplete, the network scenes accessed by the internal applications of each company are fewer, many other scenes are less accessed by people, the resource cache is insufficient, and the improvement of the labor cost and the material resource cost can be influenced if the effect of the comprehensive coverage of the network resources is achieved. In the prior art, network plaintext transmission is easily hijacked by operators, advertisements are implanted, privacy is leaked, user experience and property safety are seriously influenced, and improvement of labor cost and material cost is influenced by improving the safety of network transmission.
In view of the above-mentioned problem of high network access cost in the related art, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for acquiring a target resource, which are used for at least solving the technical problem of high network access cost in the related technology.
According to an aspect of the embodiments of the present invention, a method for acquiring a target resource is provided. The method for acquiring the target resource comprises the following steps: the client acquires a link address of the proxy server through a browsing service, wherein the browsing service is integrated in the client; the client sends a first request to a proxy server pointed by the link address through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website and carries a domain name of the target website; and the client receives the target resource of the target website sent by the proxy server.
According to another aspect of the embodiments of the present invention, a method for acquiring a target resource is also provided. The method for acquiring the target resource comprises the following steps: the method comprises the steps that a proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website and carries a domain name of the target website, and the browsing service is integrated in the client; the proxy server acquires target resources of the target website according to the address of the target website, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website; and the proxy server sends the target resource of the target website to the client.
According to another aspect of the embodiment of the invention, an apparatus for acquiring a target resource is also provided. The target resource acquisition device comprises: the method comprises the steps that a proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website and carries a domain name of the target website, and the browsing service is integrated in the client; the proxy server acquires target resources of the target website according to the address of the target website, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website; and the proxy server sends the target resource of the target website to the client.
According to another aspect of the embodiment of the invention, an apparatus for acquiring a target resource is also provided. The target resource acquisition device comprises: the client side comprises a receiving unit and a server, wherein the receiving unit is used for enabling the proxy server to receive a first request sent by a client side through a web browsing Webview interface provided by a browsing service, the first request is used for requesting to access a target website, the first request carries a domain name of the target website, and the browsing service is integrated in the client side; the acquisition unit is used for enabling the proxy server to acquire target resources of the target website according to the address of the target website, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website; and the first sending unit is used for enabling the proxy server to send the target resource of the target website to the client.
In the embodiment of the invention, a client acquires a link address of a proxy server through a browsing service, wherein the browsing service is integrated in the client; the client sends a first request to a proxy server pointed by the link address through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website and carries a domain name of the target website; the client receives the target resource of the target website sent by the proxy server, and the browsing service is integrated by the client, so that the proxy server is determined by the browsing service and the target resource of the target website is obtained, investment in a large number of servers and manpower maintenance is avoided, the technical effect of reducing the cost of network access is realized, and the technical problem of high network access cost in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a diagram of a hardware environment for a method of acquiring a target resource according to an embodiment of the invention;
FIG. 2 is a flowchart of a method for acquiring a target resource according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for a client to obtain a link address of a proxy server from a network device pointed to by a specified address provided by a browsing service according to an embodiment of the present invention;
FIG. 4 is a flowchart of another method for a client to receive a target resource of a target website sent by a proxy server according to an embodiment of the present invention;
FIG. 5 is a flow chart of another method for obtaining a target resource according to an embodiment of the invention;
FIG. 6 is a flow chart of another method for obtaining a target resource according to an embodiment of the invention;
FIG. 7 is a flowchart of a method for a proxy server to obtain a target resource of a target website according to an address of the target website according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating a correspondence relationship between a system kernel and an SDK kernel according to an embodiment of the present invention;
FIG. 9 is a flow diagram illustrating network acceleration according to an embodiment of the present invention;
FIG. 10 is a diagram of an apparatus for acquiring a target resource according to an embodiment of the invention;
FIG. 11 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the invention;
FIG. 12 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the invention;
FIG. 13 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the invention;
FIG. 14 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the invention;
FIG. 15 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the invention;
FIG. 16 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the invention;
FIG. 17 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the invention; and
fig. 18 is a block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to the embodiment of the invention, the embodiment of the method for acquiring the target resource is provided from the client side.
Alternatively, in this embodiment, the above target resource obtaining method may be applied to a hardware environment formed by the server 102 and the terminal 104 as shown in fig. 1. Fig. 1 is a schematic diagram of a hardware environment of a target resource acquisition method according to an embodiment of the present invention. As shown in fig. 1, a server 102 performs connections with terminals 104 over a network including, but not limited to: the terminal 104 is not limited to a PC, a mobile phone, a tablet computer, etc. in a wide area network, a metropolitan area network, or a local area network. The method for acquiring the target resource according to the embodiment of the present invention may be executed by the server 102, or executed by the terminal 104, or executed by both the server 102 and the terminal 104. The terminal 104 may execute the target resource obtaining method according to the embodiment of the present invention, or may execute the target resource obtaining method by a client installed thereon.
Fig. 2 is a flowchart of a target resource obtaining method according to an embodiment of the present invention. As shown in fig. 2, the method for acquiring a target resource may include the following steps:
in step S202, the client obtains the link address of the proxy server through the browsing service.
In the technical solution provided by step S202 of the present invention, the client obtains the link address of the proxy server through a browsing service, wherein the browsing service is integrated in the client.
In this embodiment, the client may be an Application (Application), such as an instant messaging Application, social software, an e-mall Application, and so on. The preset browser control is a browser (Webview) component developed externally, and the Webview component can be a browser control provided for an Android system and used for analyzing and displaying a front-end page. The client integrates browsing services through a preset browser control, and the browsing services can be integrated on one or more clients, namely, the browsing services are open services to the outside.
Optionally, the preset browser control includes a preset browser kernel, and the client loads the preset browser kernel. The preset browser kernel loaded by the client can be an X5 kernel, the X5 kernel is a QQ browser kernel, is a browser engine of an android system and is opened for an external client to use, and the client can use the X5 kernel to perform processing aiming at rendering and network proxy and customize related functions.
Optionally, the client accesses the SDK provided by the official network of the browsing service, first puts a Jar package written in the SDK provided by the official network of the browsing service into a libs directory of an engineering of the client, where the Jar package is a data package formed by typing a class written in the SDK, then replaces a system package and a class in a source code and an Extensible Markup Language (XML) in the client with the package and the class in the SDK, and the system package and the class of the client have a one-to-one correspondence relationship with the package and the class in the SDK and are replaced one-to-one correspondence when replacing.
Optionally, the client obtains preset interface data, where the preset interface data is used to encapsulate a browser interface corresponding to the browsing service, and may be provided by a browsing service official website. The client replaces the original interface data with preset interface data, wherein the original interface data can be used for packaging data of Webview related interfaces related inside the client, such as source codes in the client and system systems and classes in XML. After the client acquires the preset interface data, the preset interface data is firstly put in a project directory of the client, the client acquires a preset corresponding relation between the original interface data and the preset interface data, and the original interface data is replaced by the preset interface data through the preset corresponding relation. After the original interface data is replaced by the preset interface data by the client, the Webview related interface inside the client is replaced by the Webview interface packaged inside the SDK, so that when the Webview is created by the client, a browser kernel can be directly loaded, and further, related functions of a browser engine inside the browser kernel and an X5 kernel can be used, the purpose that the client integrates browsing service through a preset browser control is achieved, and the effect of reducing the cost of network access is achieved.
The proxy server has the function of a firewall, so that a network proxy can be realized, and the client is indirectly connected with another server through the network proxy and can cache related resources for a transfer station of network information. The data of the target website accessed by the client is placed on the proxy server which is as close as possible to the client, so that the proxy server can push or distribute the content to the closer client, the cache is deployed at the edge of the network, the consumption of the upper-linked wide area broadband is reduced, the access distance is shortened, and the supply network points of the nearby content are increased.
The client acquires the link address of the proxy server through the browsing service when the webpage is loaded. The client sends a request to the background server, the background server responds to the request to acquire the geographic position information of the client according to the browsing service, determines the proxy server closest to the position of the client according to the geographic position information, and provides the link address of the proxy server for the client. Optionally, the link address is a server network IP. After the client integrates the browsing service through the preset browser control, the client acquires the link address of the proxy server through the browsing service.
Step S204, the client sends a first request to the proxy server pointed by the link address through a web browsing Webview interface provided by the browsing service.
In the technical solution provided in step S204 of the present invention, the client sends a first request to the proxy server pointed by the link address through a web browsing Webview interface provided by the browsing service, where the first request is used to request to access the target website, and the first request carries a domain name of the target website.
After the client acquires the link address of the proxy server through the browsing service, the client establishes connection with the proxy server pointed by the link address, and the client sends a first request to the proxy server pointed by the link address through a web browsing Webview interface provided by the browsing service. When accessing a target website, a client needs to acquire a link address of a target server corresponding to the target website to establish a connection, and the link address of the target server can be resolved according to a Domain Name System (DNS). But it is time consuming to resolve the link address of the target server from the domain name of the target website through DNS.
The client side of the embodiment sends a first request to a proxy server pointed by a link address through a web browsing Webview interface provided by a browsing service, the first request is used for requesting access to a target website, the first request carries a domain name of the target website, the proxy server acquires the domain name of the target website and analyzes the domain name to obtain the link address of the target website, wherein the domain name and the link address are mapped with each other, and the domain name of the target website is analyzed in a distributed database in which the domain name and the link address are mapped with each other to obtain the link address corresponding to the target website.
In step S206, the client receives the target resource of the target website sent by the proxy server.
In the technical solution provided by step S206 of the present invention, the client receives the target resource of the target website sent by the proxy server.
The target website, that is, the Web website, stores target resources to be accessed by the client, for example, the target website stores picture resources. After the client sends a first request to the proxy server pointed by the link address through a web browsing Webview interface provided by the browsing service, the client sends an access request for requesting access to the target website to the proxy server through the browsing service. After receiving the first request, the proxy server judges whether the related resources of the target website are cached according to the first request, if the related resources of the target website are not cached by the proxy server, the proxy server sends a request for requesting access to the target website through a high-speed backbone network of the proxy server, and after receiving the request for requesting access to the target website, the target website can respond to the request and issue the target resources.
Optionally, the target resource is encrypted for transmission when transmitted through the high-speed backbone network of the proxy server, and is similar to a hypertext Transfer Protocol over Secure Socket Layer (HTTPS), so that compared with a network request that is not sent through a browsing service, network hijacking can be effectively prevented, thereby avoiding a deficiency that security of network access is not high, reducing a possibility of network hijacking, reducing interference of a network, and ensuring security of response data transmission.
Optionally, after the client receives the target resource of the target website sent by the proxy server, the relevant resource of the target website is cached to the proxy server, so as to achieve high-speed downloading of the relevant resource of the target website.
According to the embodiment, the network acceleration capability of the client is realized through the open browsing service, instead of connecting the proxy server of a company of each client through the network proxy of the client, the network scene accessed by the client can be effectively expanded, the Cache resource (Cache) of the proxy server is increased, so that the cost pressure of a partner proxy is reduced, namely, the network resource is enriched, the cost of development of an external client is reduced, and the access request sent by the client is encrypted, and the response data sent by a target website responding to the access request is encrypted, so that the occurrence of network hijacking can be effectively prevented, and the phenomena of advertisement implantation and privacy disclosure and serious influence on the experience and property safety of a user are avoided.
Through the above steps S202 to S206, the link address of the proxy server is obtained through the browsing service integrated in the client by the client; the client sends a first request to a proxy server pointed by the link address through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website and carries a domain name of the target website; the client receives the target resource of the target website sent by the proxy server, and the browsing service is integrated by the client, so that the proxy server is determined by the browsing service and the target resource of the target website is obtained, investment in a large number of servers and manpower maintenance is avoided, the technical effect of reducing the cost of network access is realized, and the technical problem of high network access cost in the related technology is solved.
As an alternative implementation manner, in step S202, the obtaining, by the client, the link address of the proxy server through the browsing service includes: the client acquires the link address of the proxy server from the network equipment pointed by the specified address provided by the browsing service.
The browsing service provides a designated address, the designated address points to a network device which stores link addresses of proxy servers, the network device can store link addresses of a plurality of different proxy servers, and the link addresses of the proxy servers which establish links with the client are determined. Optionally, the network device determines the proxy server closest to the client as the proxy server of the client according to the location information of the client, issues the IP of the proxy server closest to the client, and the client acquires the IP address of the proxy server, thereby achieving the purpose that the client acquires the link address of the proxy server through the browsing service.
As an alternative implementation manner, in step S202, the client obtaining the link address of the proxy server from the network device pointed to by the specified address provided by the browsing service includes: and the client receives the link address of the proxy server sent by the network device in response to the second request, wherein the proxy server is the proxy server closest to the client or the proxy server with the highest communication speed with the client in the plurality of proxy servers recorded by the network device.
Fig. 3 is a flowchart of a method for a client to obtain a link address of a proxy server from a network device pointed to by a specified address provided by a browsing service according to an embodiment of the present invention. As shown in fig. 3, the method comprises the steps of:
step S301, the client sends a second request to the network device.
In the technical solution provided by step S301 of the present invention, the client sends the second request to the network device.
The network device stores link addresses of a plurality of proxy servers, and the client of the integrated browsing service sends a second request to the network device, wherein the second request is used for requesting the network device to acquire the link address of the proxy server establishing a link with the client.
In step S302, the client receives the link address of the proxy server sent by the network device in response to the second request.
In the technical solution provided by step S302 of the present invention, the client receives the link address of the proxy server sent by the network device in response to the second request, where the proxy server is the closest proxy server to the client or the proxy server with the fastest communication speed with the client among the multiple proxy servers recorded by the network device.
After the client sends the second request to the network device, the network device receives the second request and responds to the second request to obtain a link address of the proxy server which establishes a link with the client. Optionally, the network device obtains location information of the client, determines a proxy server closest to the client from the plurality of recorded proxy servers, and issues a link address of the closest proxy server to the client. The proxy server can also be the proxy server with the highest communication speed with the client, so that high-speed transmission of data is ensured, connection of the proxy server of a company through the own network proxy of each client is avoided, and the proxy cost pressure of a partner is relieved.
The embodiment sends a second request to the network device through the client; the client receives the link address of the proxy server sent by the network device in response to the second request, wherein the proxy server is the proxy server closest to the client or the proxy server with the highest communication speed with the client among the plurality of proxy servers recorded by the network device, so that the purpose that the client obtains the link address of the proxy server from the network device pointed by the specified address provided by the browsing service is achieved, the purpose of network acceleration is achieved, the technical effect of reducing the cost of network access is achieved, and the technical problem of high network access cost in the related technology is solved.
As an optional implementation manner, in step S206, the receiving, by the client, the target resource of the target website sent by the proxy server includes: the client sends a third request for requesting to access the target website to the proxy server through the address of the target website; the client receives the target resource of the target website sent by the proxy server in response to the third request; or the client receives the target resource of the target website sent by the proxy server in response to the first request.
Fig. 4 is a flowchart of another method for a client to receive a target resource of a target website sent by a proxy server according to an embodiment of the present invention. As shown in fig. 4, the method for the client to receive the target resource of the target website sent by the proxy server includes the following steps:
in step S401, the client receives the address of the target website sent by the proxy server.
In the technical solution provided in step S401 of the present invention, the client receives the address of the target website sent by the proxy server, where the address of the target website is obtained by performing domain name resolution on the domain name of the target website.
The client sends a first request to a proxy server pointed by a first link address through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website, the first request carries a domain name of the target website, the proxy server analyzes the domain name of the target website to obtain an address of the target website, and the client receives the address of the target website sent by the proxy server.
In step S402, the client sends a third request for requesting access to the target website to the proxy server.
In the technical solution provided by step S402 of the present invention, the client sends a third request for requesting to access the target website to the proxy server, where the third request carries an address of the target website.
After the client receives the address of the target website sent by the proxy server, the client sends a third request for requesting to access the target website to the proxy server according to the address of the target website, wherein the third request carries the address of the target website.
In step S403, the client receives the target resource of the target website sent by the proxy server in response to the third request.
In the technical solution provided in step S403 of the present invention, the client receives the target resource of the target website sent by the proxy server in response to the third request; or the client receives the target resource of the target website sent by the proxy server in response to the first request.
After the client sends a third request for requesting access to the target website to the proxy server, the proxy server responds to the third request, acquires the target resource from the target website according to the address of the target website carried by the third request, and the client receives the target resource issued by the proxy server.
Optionally, except for step S401 to step S403, after the proxy server resolves the address of the target website according to the domain name of the target website carried in the first request, the client directly obtains the target resource from the target website according to the address of the target website, and the client further receives the target resource sent by the proxy server.
In the embodiment, the address of the target website sent by the proxy server is received by the client, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website; the client sends a third request for requesting to access the target website to the proxy server, wherein the third request carries the address of the target website; the client receives the target resource of the target website sent by the proxy server in response to the third request; or the client receives the target resource of the target website sent by the proxy server in response to the first request, so that the purpose that the client receives the target resource of the target website sent by the proxy server is achieved.
As an alternative embodiment, the target resource of the target website is cached in the proxy server.
The proxy server can cache the target resource of the target website, so that other applications can directly acquire the cached target resource from the proxy server when accessing the target website in the later period, and do not need the proxy server to acquire the target resource from the target website, thereby achieving the aim of downloading the target resource at high speed.
As an optional implementation manner, the first request is used for requesting to access a WEBP format picture of the target website; the target resource includes picture data in a WEBP format.
Fig. 5 is a flowchart of another method for acquiring a target resource according to an embodiment of the present invention. As shown in fig. 5, the method for acquiring a target resource includes the following steps:
in step S501, the client sends a first request to the proxy server.
In the technical solution provided by step S501 of the present invention, the client sends a first request to the proxy server, where the first request is used to request to access a web page formatted picture of the target website.
The target resources stored in the target website comprise picture resources, and WEBP format transcoding is performed on the picture resources, wherein the WEBP is a picture format supporting lossless compression, or a picture format supporting lossy compression, and is also a picture format supporting animation demonstration. Under the condition of the same image quality, the storage space occupied by the WEBP format picture is reduced by about 40% compared with the jpg format picture, and is reduced by about 30% compared with the lossless PNG format picture. The method has the advantages that incomplete statistics is realized, 60% of the consumption in the flow is caused by the consumption of pictures in the internet, if the picture resources stored on the target website are in a WEBP (web page browser) format, the access speed of the target website can be greatly improved, and therefore the flow can be saved in the network access process by reducing the size of the picture format on the premise of not influencing picture observation.
The client sends a first request to the proxy server to request for accessing the WEBP format picture of the target website, can receive the address of the target website which is obtained by the proxy server responding to the first request and analyzed according to the domain name of the target website carried by the first request, sends a third request for requesting for accessing the WEBP format picture of the target website to the proxy server according to the address of the target website, and the proxy server responds to the third request and obtains the picture data of the WEBP format picture of the target website according to the address of the target website carried by the third request.
Optionally, after the proxy server resolves the domain name of the target website carried by the first request to obtain the address of the target website, the proxy server obtains the picture data of the web page format picture from the target website according to the address of the target website.
Step S502, the client receives the image data of the target website in WEBP format sent by the proxy server.
In the technical solution provided by step S502 of the present invention, the client receives the image data in the WEBP format of the target website sent by the proxy server, wherein the target resource includes the image data in the WEBP format.
According to the embodiment, the client sends the first request to the proxy server, the first request is used for requesting to access the WEBP format picture of the target website, the purpose that the client sends the first request to the proxy server pointed by the link address through a webpage browsing Webview interface provided by the browsing service is achieved, the client receives the WEBP format picture data of the target website sent by the proxy server, the purpose that the client receives the target resource of the target website sent by the proxy server is achieved, the picture format size is reduced, the network access speed is improved, and the flow saving effect is achieved on the premise that observation is not affected.
According to the embodiment of the invention, the embodiment of the method for acquiring the target resource is also provided from the proxy server side. Alternatively, in this embodiment, the above target resource obtaining method may be applied to a hardware environment formed by the server 102 and the terminal 104 as shown in fig. 1. As shown in fig. 1, a server 102 performs connections with terminals 104 over a network including, but not limited to: the terminal 104 is not limited to a PC, a mobile phone, a tablet computer, etc. in a wide area network, a metropolitan area network, or a local area network. The method for acquiring the target resource according to the embodiment of the present invention may be executed by the server 102, or executed by the terminal 104, or executed by both the server 102 and the terminal 104. The terminal 104 may execute the target resource obtaining method according to the embodiment of the present invention, or may execute the target resource obtaining method by a client installed thereon.
Fig. 6 is a flowchart of another method for acquiring a target resource according to an embodiment of the present invention. As shown in fig. 6, the method for acquiring a target resource includes the following steps:
step S602, the proxy server receives a first request sent by the client through a web browsing Webview interface provided by the browsing service.
In the technical solution provided in step S602 of the present invention, the proxy server receives a first request sent by the client through a web browsing Webview interface provided by a browsing service, where the first request is used to request to access a target website, the first request carries a domain name of the target website, and the browsing service is integrated in the client.
The proxy server has the function of a firewall, can realize network proxy, and the client is indirectly connected with another server through the network proxy, is a transfer station of network information, can cache related resources, and obviously improves the access speed of the client. The data of the target website accessed by the client is placed on the proxy server which is as close as possible to the client, so that the proxy server can push or distribute the content to the closer client, the cache is deployed at the edge of the network, the consumption of the upper-linked wide area broadband is reduced, the access distance is shortened, and the supply network points of the nearby content are increased, thereby effectively solving the problems of low network access efficiency and low response speed, and further realizing the purpose of network acceleration.
The proxy server of the embodiment can realize network proxy, and the data of the target website accessed by the client is placed on the proxy server as close as possible to the client as a transfer station of network information, so that the proxy server can push or distribute the content to the closer client, cache the related resources, and remarkably improve the access speed of the client. The background server acquires the geographical position information of the client according to the browsing service, determines the proxy server closest to the position of the client according to the geographical position information, and provides the link address of the proxy server. Optionally, the link address is a server network IP. After the client integrates the browsing service through the preset browser control, the client acquires the link address of the proxy server through the browsing service, wherein the client integrates the browsing service through the preset browser control, and the browsing service can be integrated on one or more clients.
After the client acquires the link address of the proxy server through the browsing service, the proxy server receives a first request sent by the client through a web browsing Webview interface provided by the browsing service, responds to the first request and acquires a domain name of a target website to be accessed by the client. The domain name and the link address are in one-to-one correspondence, the proxy server analyzes the domain name to obtain the link address corresponding to the target website, and therefore the proxy server replaces a DNS to analyze the link address of the target website according to the domain name, and the performance of the client is improved.
Step S604, the proxy server obtains the target resource of the target website according to the address of the target website.
In the technical solution provided in step S604 of the present invention, the proxy server obtains the target resource of the target website according to the address of the target website, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website.
After the proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service, the proxy server responds to the first request to analyze a domain name of a target website carried by the first request to obtain an address of the target website, the address of the target website is issued to the client, the client sends a third request for requesting access to the target website to the proxy server according to the address of the target website, the third request carries the address of the target website, the proxy server acquires target resources from the target website according to the address of the target website carried in the third request, the target resources are transmitted through a high-speed backbone network of the proxy server, and the client receives response data through the high-speed backbone network, so that the purpose of accelerating the client network is achieved.
Optionally, after the proxy server obtains the target resource of the target website according to the address of the target website, the proxy server caches the target resource, so that the browsing service proxy resource is enriched, and the defect of incomplete coverage of network resources is avoided.
Optionally, after responding to the first request and resolving the address of the target website according to the domain name of the target website carried by the first request, the proxy server directly obtains the target resource of the target website from the target website.
Step S606, the proxy server sends the target resource of the target website to the client.
In the technical solution provided by step S606 of the present invention, the proxy server sends the target resource of the target website to the client.
And after the proxy server acquires the target resource of the target website according to the address of the target website, the proxy server sends the target resource of the target website to the client. Optionally, if the target resource of the target website is cached by the proxy server, the target resource can be directly sent to the client, so that the function of directly providing the downloading service of the relevant resource of the target website for the client is realized, and the purpose of downloading the resource of the target website at a high speed is achieved.
Optionally, data is encrypted in the process of target resource transmission, so that the defect of low security of network access is avoided, the possibility of network hijacking is reduced, and the interference of the network is reduced.
Through the steps S602 to S606, the proxy server receives a first request sent by the client through a web browsing Webview interface provided by a browsing service, where the first request is used to request access to a target website, the first request carries a domain name of the target website, and the browsing service is integrated in the client; the proxy server acquires target resources of the target website according to the address of the target website, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website; the proxy server sends the target resource of the target website to the client, and the proxy server receives a first request which is provided by the client through a browsing service and carries the domain name of the target website, obtains the target resource according to the address of the target website obtained by performing domain name resolution on the domain name of the target website, and then sends the target resource of the target website to the client, so that the cost of investment of a large number of servers and manpower maintenance for specially constructing a network proxy system is avoided, the technical effect of reducing the cost of network access is realized, and the technical problem of high cost of network access in the related technology is solved.
As an alternative implementation manner, in step S604, the obtaining, by the proxy server, the target resource of the target website according to the address of the target website includes: under the condition that target resources of a target website are cached on a proxy server, the proxy server acquires the cached target resources of the target website; and under the condition that the target resource of the target website is not cached on the proxy server, the proxy server acquires the target resource from the target website pointed by the address of the target website.
Fig. 7 is a flowchart of a method for a proxy server to obtain a target resource of a target website according to an address of the target website according to an embodiment of the present invention. As shown in fig. 7, the method for the proxy server to obtain the target resource of the target website according to the address of the target website includes the following steps:
step S701, the proxy server judges whether the target resource of the target website pointed by the address of the target website is cached on the proxy server.
In the technical solution provided in the above step S701 of the present invention, the proxy server determines whether the target resource of the target website pointed by the address of the target website is cached on the proxy server.
After the proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service, whether target resources of a target website pointed by an address of the target website are cached on the proxy server or not is judged.
Step S702, the proxy server obtains the cached target resource of the target website.
In the technical solution provided in step S702 of the present invention, when it is determined that the target resource of the target website is cached on the proxy server, the proxy server obtains the cached target resource of the target website.
After the proxy server judges whether the target resource of the target website pointed by the address of the target website is cached on the proxy server, when the target resource of the target website is cached on the proxy server, the proxy server acquires the cached target resource of the target website, so that the aim of downloading the target resource at high speed is fulfilled.
Step S703, the proxy server obtains the target resource from the target website pointed by the address of the target website.
In the technical solution provided in S703 of the present invention, when it is determined that the target resource of the target website is not cached on the proxy server, the proxy server obtains the target resource from the target website pointed by the address of the target website.
After the proxy server judges whether the target resource of the target website pointed by the address of the target website is cached on the proxy server or not, when the target resource of the target website is not cached on the proxy server, a request for requesting to acquire the target resource is sent to the target website according to the address of the target website, and the proxy server receives the target resource which is sent by the target website in response to the request sent by the proxy server and is used for issuing the request.
The embodiment judges whether the target resource of the target website pointed by the address of the target website is cached on the proxy server through the proxy server; when the target resource of the target website is judged to be cached on the proxy server, the proxy server acquires the cached target resource of the target website; when the target resource of the target website is not cached on the proxy server, the proxy server acquires the target resource from the target website pointed by the address of the target website, and the purpose that the proxy server acquires the target resource of the target website according to the address of the target website is achieved.
As an optional implementation manner, after the proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service, and before the proxy server obtains a target resource of a target website according to an address of the target website, the proxy server performs domain name resolution on a domain name of the target website to obtain the address of the target website; or the proxy server sends the domain name of the target website to the background server and receives the address of the target website sent by the background server, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website through the background server.
After the proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service, and before the proxy server acquires target resources of a target website according to the address of the target website, the proxy server resolves the address of the target website according to a domain name of the target website carried by the first request, so that the purpose of acquiring the address of the target website by the proxy server is achieved. Optionally, after the proxy server receives a first request sent by the client through a web browsing Webview interface provided by the browsing service, and before the proxy server obtains a target resource of the target website according to the address of the target website, the proxy server sends the domain name of the target website to the background server, the background server analyzes the domain name of the target website to obtain the address of the target website, and the proxy server receives the address of the target website sent by the background server, so that the purpose that the proxy server obtains the address of the target website is achieved, and the target resource of the target website is obtained according to the address of the target website.
According to the cloud-accelerated network sharing scheme for realizing the network proxy and the resource cache by integrating the browsing service through the client, the browsing service has a strong user group, the open browsing service proxy capability can effectively expand the network browsing scene of the browsing service and increase the cache of server resources, so that the cost pressure of a partner proxy can be reduced, the proxy resources of the browsing service can be enriched, the development cost of the client can be reduced, network hijacking can be effectively prevented through encryption transmission of the browsing service, and the security of network access can be improved.
Example 2
The technical solution of the present invention will be described below with reference to preferred embodiments.
The browsing service integrated by the client side of the embodiment is a Webview component which is open to the outside, and the client side comprises terminal APPs such as instant messaging applications, social software, electronic mall applications and the like, wherein the instant messaging applications comprise WeChat applications, QQ applications and the like, the social software comprises QQ spaces and the like, and the electronic mall applications comprise popular comment, 58 Tongcheng, Jingdong mall and the like. The cloud acceleration capability of the open browsing service network can effectively expand the Web browsing scene of the browsing service network and increase the server resource cache, so that the cost pressure of a partner agent can be reduced, the browsing service agent resources are enriched, the development cost of external application is reduced, and the encrypted transmission of the browsing service can effectively prevent network hijacking.
The workflow of the target resource acquisition method is described below.
The client integrates browsing service, and the browser kernel is used for loading. And the client application accesses the SDK provided by the official website corresponding to the browsing service. Firstly, preset interface data of browsing service is put under a project directory of a client; and replacing the original data interface of the client with preset interface data.
Optionally, a browsing service is integrated on the client, and the loading uses the X5 kernel in the mobile phone. A client accesses an SDK provided by a browsing service official network, and firstly, a Jar package of the browsing service is put under a libs directory of a project; then the source code of the client and the systematic packets and classes in the XML are replaced by the packets and classes in the SDK. The system packages and classes in the source codes and the XML are replaced by the packages and classes in the SDK, and the packages and classes have one-to-one correspondence, namely, the system kernel of the client and the SDK kernel have one-to-one correspondence.
Fig. 8 is a schematic diagram of a correspondence relationship between a system kernel and an SDK kernel according to an embodiment of the present invention. As shown in fig. 8, the system kernel includes a source code of the client and a system and class in XML, the SDK kernel includes a package and class in SDK, and the system kernel and the SDK kernel have a one-to-one correspondence relationship, for example, the android.
According to the method, the Webview related interface in the client is replaced by the Webview interface packaged in the SDK through the corresponding relation between the system kernel and the SDK kernel of the client, so that the Webview of the X5 kernel can be directly called when the Webview is created by the client, and further the browser engine in the X5 kernel and the related functions of the X5 kernel can be used, so that the purposes that the client loads the preset browser kernel and integrates browsing services according to the preset functions of the preset browser kernel are achieved.
After the client integrates the browsing service, the client first needs to know the IP address of the target server corresponding to the target website to establish connection when starting the link site. The system that resolves domain names to IP addresses is usually the DNS, which is time consuming to query. The background server provides a proxy IP address of a nearby server according to geographic information carried by the client, the proxy IP address is also a server network IP, the client can be linked to the proxy server by means of the proxy IP address, the proxy server performs related actions of DNS query, and determines a link address of a target server corresponding to a target website according to a domain name of the target website, so that the performance of the client is improved. The target website corresponding to the link address is accessed through the high-speed backbone network of the proxy server, and the related resources of the target website are cached, so that the cached resources are directly read when other clients access the related resources of the target website in the later period, and the purpose of high-speed downloading is realized.
Optionally, the related pictures in the Web site are transcoded in a WEBP format, wherein the WEBP is a picture format which is derived from Google and supports lossless compression, or a picture format which is derived from Google and supports animation demonstration. Under the condition of the same image quality, the size of the storage space occupied by the WEBP format picture is reduced by about 40% compared with the jpg format picture, and is reduced by about 30% compared with the lossless PNG format picture. Through incomplete statistics, 60% of internet flow is generated from pictures, if the pictures on the target website are WEBP (web page Web page) format pictures, the access speed of the website is greatly improved, and on the premise of not influencing picture observation, the size of the picture format is reduced, so that the effect of saving network access flow is achieved.
Example 3
The application environment of the embodiment of the present invention may refer to the application environment in the above embodiments, but is not described herein again. The embodiment of the invention provides an optional specific application for implementing the method for acquiring the target resource. And the client integrates browsing service through a preset browser control.
Fig. 9 is a flow chart illustrating a network acceleration according to an embodiment of the present invention. As shown in fig. 9, a user opens a link through a client to load a Web page, and transmits a network request for accessing a Web site, which is encrypted data, to a proxy server (CACHE) through a wireless network. The proxy server judges whether related resources of the Web site are stored or not, if the target resources are not cached by the proxy server, a request for obtaining the target resources of the Web site by a user is sent to the Web site through a high-speed backbone network of the proxy server, the Web site responds to the request to obtain the target resources, the target resources are encrypted with a header field (an encrypted MD5 header) according to an encrypted information Digest Algorithm (Message-Digest Algorithm 5, abbreviated as MD5) to obtain encrypted data, and the encrypted data are still sent to the client through the high-speed backbone network of the proxy server. And if the target resource is cached by the proxy server, the client directly acquires the target resource from the server.
Alternatively, after encrypting the MD5 header, a determination is made as to whether the MD5 value is equal to the original MD5 value. And when the value of the MD5 is not equal to the value of the original MD5, network hijacking occurs, and information for reporting hijacking is sent to the service server. The service server generates an encrypted list according to the reported hijacking information, transmits the encrypted list to a target Web site through a plaintext HTTP under wireless network transmission, transmits the encrypted list to the Web site through a ciphertext HTTPS under the wireless network transmission, and issues the encrypted list to the client side in a one-way mode, so that the aims of effectively preventing network hijacking and reducing network interference are fulfilled.
In the process of accessing a target website by a client network, the whole cloud acceleration process is encrypted and transmitted, and is similar to an HTTPS protocol, so that compared with a network request without browsing service, the network access is safer, malicious hijacking is reduced, and network interference is reduced.
The embodiment realizes the purpose of network acceleration by a network proxy of the browsing service and a cloud acceleration network sharing method of resource caching, the client integrates the browsing service, the browsing service has a strong user group, the Web browsing scene can be effectively expanded by opening the browsing service proxy capacity, the server resource caching is increased, so that the cost pressure of a partner proxy can be reduced, the browsing service proxy resources are enriched, the cost of external application development is reduced, and the browsing service transmission is encrypted transmission, so that the network hijacking is more effectively prevented.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 4
According to the embodiment of the invention, the target resource acquisition device for implementing the target resource acquisition method is also provided. Fig. 10 is a schematic diagram of an apparatus for acquiring a target resource according to an embodiment of the present invention. As shown in fig. 10, the acquiring means of the target resource may include: an acquisition unit 10, a transmission unit 20 and a reception unit 30.
An obtaining unit 10, configured to enable a client to obtain a link address of a proxy server through a browsing service, where the browsing service is integrated in the client.
A sending unit 20, configured to enable the client to send a first request to the proxy server pointed by the link address through a web browsing Webview interface provided by the browsing service, where the first request is used to request to access the target website, and the first request carries a domain name of the target website.
A receiving unit 30, configured to enable the client to receive the target resource of the target website sent by the proxy server.
Alternatively, the obtaining unit 10 is configured to enable the client to obtain the link address of the proxy server from the network device pointed by the specified address provided by the browsing service.
Fig. 11 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the present invention. As shown in fig. 11, the acquiring means of the target resource may include: an acquisition unit 10, a transmission unit 20 and a reception unit 30. Wherein, the obtaining unit 10 includes: a first transmitting module 11 and a first receiving module 12.
It should be noted that the acquiring unit 10, the sending unit 20, and the receiving unit 30 in this embodiment are the same as the acquiring apparatus of the target resource in the embodiment shown in fig. 10, and are not described again here.
A first sending module 11, configured to enable the client to send the second request to the network device.
And a first receiving module 12, configured to enable the client to receive the link address of the proxy server sent by the network device in response to the second request, where the proxy server is a proxy server closest to the client or a proxy server with the fastest communication speed with the client, among multiple proxy servers recorded by the network device.
Fig. 12 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the present invention. As shown in fig. 12, the acquiring means of the target resource may include: an acquisition unit 10, a transmission unit 20 and a reception unit 30. Wherein the receiving unit 30 includes: fig. 11 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the present invention. As shown in fig. 11, the acquiring means of the target resource may include: an acquisition unit 10, a transmission unit 20 and a reception unit 30. Wherein, the receiving unit 30 includes: a second receiving module 31, a second transmitting module 32 and a third receiving module 33.
A second receiving module 31, configured to enable the client to receive the address of the target website sent by the proxy server, where the address of the target website is obtained by performing domain name resolution on a domain name of the target website.
A second sending module 32, configured to enable the client to send a third request for requesting to access the target website to the proxy server, where the third request carries an address 33 of the target website.
A third receiving module 33, configured to enable the client to receive the target resource of the target website sent by the proxy server in response to the third request.
Fig. 13 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the present invention. As shown in fig. 13, the acquiring means of the target resource may include: an acquisition unit 10, a transmission unit 20 and a reception unit 30. Wherein the receiving unit 30 includes: the receiving unit 30 includes: a fourth receiving module 34.
A fourth receiving module 34, configured to enable the client to receive the target resource of the target website sent by the proxy server in response to the first request.
Optionally, the target resource of the target website is cached in the proxy server.
Optionally, the sending unit 20 is configured to enable the client to send a first request to the proxy server, where the first request is used to request to access a web page format picture of the target website; the receiving unit 30 is configured to enable the client to receive the image data in the WEBP format of the target website sent by the proxy server, where the target resource includes the image data in the WEBP format.
It should be noted that the obtaining unit 10 in this embodiment may be configured to execute step S202 in embodiment 1 of this application, the sending unit 20 in this embodiment may be configured to execute step S204 in embodiment 1 of this application, and the receiving unit 30 in this embodiment may be configured to execute step S206 in embodiment 1 of this application.
In this embodiment, the client obtains the link address of the proxy server through the browsing service by the obtaining unit 10, where the browsing service is integrated in the client, and the sending unit 20 sends a first request to the proxy server to which the link address points through a web browsing Webview interface provided by the browsing service, where the first request is used to request to access a target website, and the first request carries a domain name of the target website, and the receiving unit 30 enables the client to receive a target resource of the target website sent by the proxy server, so as to achieve the purpose of network acceleration, achieve the technical effect of reducing the cost of network access, and further solve the technical problem of high network access cost in the related art.
According to the embodiment of the invention, the target resource acquisition device for implementing the target resource acquisition method is also provided. Fig. 14 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the present invention. As shown in fig. 14, the acquiring means of the target resource may include: a receiving unit 40, an acquiring unit 50 and a first transmitting unit 60.
The receiving unit 40 is configured to enable the proxy server to receive a first request sent by the client through a web browsing Webview interface provided by a browsing service, where the first request is used to request access to a target website, the first request carries a domain name of the target website, and the browsing service is integrated in the client.
An obtaining unit 50, configured to enable the proxy server to obtain the target resource of the target website according to the address of the target website, where the address of the target website is obtained by performing domain name resolution on the domain name of the target website.
A first sending unit 60, configured to enable the proxy server to send the target resource of the target website to the client.
Fig. 15 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the present invention. As shown in fig. 15, the target resource acquiring means may include: a receiving unit 40, an acquiring unit 50 and a first transmitting unit 60. Wherein, the obtaining unit 50 includes: a judging module 51, a first obtaining module 52 and a second obtaining module 53.
It should be noted that the determining module 51, the first obtaining module 52, and the second obtaining module 53 of this embodiment have the same functions as the obtaining apparatus of the target resource in the embodiment shown in fig. 14, and are not described herein again.
The determining module 51 is configured to enable the proxy server to determine whether a target resource of the target website pointed by the address of the target website is cached on the proxy server.
The first obtaining module 52 is configured to, when it is determined that the target resource of the target website is cached on the proxy server, enable the proxy server to obtain the cached target resource of the target website.
The second obtaining module 53 is configured to, when it is determined that the target resource of the target website is not cached on the proxy server, obtain the target resource from the target website pointed by the address of the target website by the proxy server.
Fig. 16 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the present invention. As shown in fig. 16, the target resource acquiring means may include: a receiving unit 40, an acquiring unit 50 and a first transmitting unit 60. The apparatus for acquiring a target resource further comprises: and an analysis unit 70.
It should be noted that the determining module 51, the first obtaining module 52, and the second obtaining module 53 of this embodiment have the same functions as the obtaining apparatus of the target resource in the embodiment shown in fig. 14, and are not described herein again.
The parsing unit 70 is configured to, after the proxy server receives the first request sent by the client through the web browsing Webview interface provided by the browsing service, and before the proxy server obtains the target resource of the target website according to the address of the target website, enable the proxy server to perform domain name resolution on the domain name of the target website to obtain the address of the target website.
Fig. 17 is a schematic diagram of another apparatus for acquiring a target resource according to an embodiment of the present invention. As shown in fig. 17, the target resource acquiring means may include: a receiving unit 40, an acquiring unit 50 and a first transmitting unit 60. The apparatus for acquiring a target resource further comprises: and a second transmitting unit 80.
It should be noted that the determining module 51, the first obtaining module 52, and the second obtaining module 53 of this embodiment have the same functions as the obtaining apparatus of the target resource in the embodiment shown in fig. 14, and are not described herein again.
The second sending unit 80 is configured to, after the proxy server receives the first request sent by the client through the web browsing Webview interface provided by the browsing service, and before the proxy server obtains the target resource of the target website according to the address of the target website, enable the proxy server to send the domain name of the target website to the background server, and receive the address of the target website sent by the background server, where the address of the target website is obtained by performing domain name resolution on the domain name of the target website through the background server.
It should be noted that the receiving unit 40 in this embodiment may be configured to execute step S602 in embodiment 1 of this application, the obtaining unit 50 in this embodiment may be configured to execute step S604 in embodiment 1 of this application, and the first sending unit 60 in this embodiment may be configured to execute step S606 in embodiment 1 of this application.
In this embodiment, the proxy server receives, by the receiving unit 40, a first request sent by the client through a web browsing Webview interface provided by a browsing service, where the first request is used to request access to a target website, the first request carries a domain name of the target website, the browsing service is integrated in the client, and the obtaining unit 50 is used to enable the proxy server to obtain a target resource of the target website according to an address of the target website, where the address of the target website is obtained by performing domain name resolution on the domain name of the target website, and the first sending unit 60 is used to enable the proxy server to send the target resource of the target website to the client, so as to achieve the purpose of network acceleration, thereby achieving the technical effect of reducing the cost of network access, and further solving the technical problem of large network access cost in the related art.
It should be noted here that the above units and modules are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
Example 5
According to the embodiment of the invention, the invention also provides a server or a terminal for implementing the target resource acquisition method.
Fig. 18 is a block diagram of a terminal according to an embodiment of the present invention. As shown in fig. 18, the terminal may include: one or more processors 181 (only one of which is shown), memory 183, and a transmission 185. As shown in fig. 18, the terminal may further include an input-output device 187.
The memory 183 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for acquiring a target resource in the embodiment of the present invention, and the processor 181 executes various functional applications and data processing by running the software programs and modules stored in the memory 183, that is, implementing the method for acquiring a target resource. The memory 183 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 183 may further include memory located remotely from the processor 181, which may be connected to the terminals over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 185 is used for receiving or transmitting data via a network, and may also be used for data transmission between the processor and the memory. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 185 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 185 is a Radio Frequency (RF) module for performing communication with the internet by wireless.
Among other things, the memory 183 is used to store application programs.
The processor 181 may invoke an application stored in the memory 183 via the transmission device 185 to perform the following steps:
the client acquires a link address of the proxy server through a browsing service, wherein the browsing service is integrated in the client;
the client sends a first request to a proxy server pointed by the link address through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website and carries a domain name of the target website;
and the client receives the target resource of the target website sent by the proxy server.
The processor 181 is further configured to perform the following steps: the client acquires the link address of the proxy server from the network equipment pointed by the specified address provided by the browsing service.
The processor 181 is further configured to perform the following steps: the client sends a second request to the network equipment; and the client receives the link address of the proxy server sent by the network device in response to the second request, wherein the proxy server is the proxy server closest to the client or the proxy server with the highest communication speed with the client in the plurality of proxy servers recorded by the network device.
The processor 181 is further configured to perform the following steps: the client receives an address of a target website sent by a proxy server, wherein the address of the target website is obtained by performing domain name resolution on a domain name of the target website; the client sends a third request for requesting to access the target website to the proxy server, wherein the third request carries the address of the target website; the client receives the target resource of the target website sent by the proxy server in response to the third request; or the client receives the target resource of the target website sent by the proxy server in response to the first request.
The processor 181 is further configured to perform the following steps: the client sends a first request to the proxy server, wherein the first request is used for requesting to access a WEBP format picture of a target website; the client receives the image data of the target website in the WEBP format, which is sent by the proxy server, wherein the target resource comprises the image data in the WEBP format.
The embodiment of the invention provides a scheme for acquiring target resources. Acquiring a link address of a proxy server through a browsing service by a client, wherein the browsing service is integrated in the client; the client sends a first request to a proxy server pointed by the link address through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website and carries a domain name of the target website; the client receives the target resource of the target website sent by the proxy server, achieves the purpose of network acceleration, achieves the technical effect of reducing the cost of network access, and further solves the technical problem of high network access cost in the related technology.
The processor 181 may also invoke an application stored in the memory 183 via the transmission means 185 to perform the following steps:
the method comprises the steps that a proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website and carries a domain name of the target website, and the browsing service is integrated in the client;
the proxy server acquires target resources of the target website according to the address of the target website, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website;
and the proxy server sends the target resource of the target website to the client.
The processor 181 is further configured to perform the following steps: the proxy server judges whether target resources of a target website pointed by the address of the target website are cached on the proxy server or not; when the target resource of the target website is judged to be cached on the proxy server, the proxy server acquires the cached target resource of the target website; and when the target resource of the target website is not cached on the proxy server, the proxy server acquires the target resource from the target website pointed by the address of the target website.
The processor 181 is further configured to perform the following steps: after the proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service, and before the proxy server acquires target resources of a target website according to the address of the target website, the proxy server performs domain name resolution on the domain name of the target website to obtain the address of the target website; or the proxy server sends the domain name of the target website to the background server and receives the address of the target website sent by the background server, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website through the background server.
The embodiment of the invention provides a scheme for acquiring target resources. Receiving a first request sent by a client through a web browsing Webview interface provided by a browsing service through a proxy server, wherein the first request is used for requesting to access a target website, the first request carries a domain name of the target website, and the browsing service is integrated in the client; the proxy server acquires target resources of the target website according to the address of the target website, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website; the proxy server sends the target resources of the target website to the client, so that the purpose of network acceleration is achieved, the technical effect of reducing the cost of network access is achieved, and the technical problem of high network access cost in the related technology is solved.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It will be understood by those skilled in the art that the structure shown in fig. 18 is only an illustration, and the terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 18 is a diagram illustrating a structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 18, or have a different configuration than shown in FIG. 18.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 6
The embodiment of the invention also provides a storage medium. Alternatively, in this embodiment, the storage medium may be a program code for executing the target resource acquisition method.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
the client acquires a link address of the proxy server through a browsing service, wherein the browsing service is integrated in the client;
the client sends a first request to a proxy server pointed by the link address through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website and carries a domain name of the target website;
and the client receives the target resource of the target website sent by the proxy server.
Optionally, the storage medium is further arranged to store program code for performing the steps of: the client acquires the link address of the proxy server from the network equipment pointed by the specified address provided by the browsing service.
Optionally, the storage medium is further arranged to store program code for performing the steps of: the client sends a second request to the network equipment; and the client receives the link address of the proxy server sent by the network device in response to the second request, wherein the proxy server is the proxy server closest to the client or the proxy server with the highest communication speed with the client in the plurality of proxy servers recorded by the network device.
Optionally, the storage medium is further arranged to store program code for performing the steps of: the client receives an address of a target website sent by a proxy server, wherein the address of the target website is obtained by performing domain name resolution on a domain name of the target website; the client sends a third request for requesting to access the target website to the proxy server, wherein the third request carries the address of the target website; the client receives the target resource of the target website sent by the proxy server in response to the third request; or the client receives the target resource of the target website sent by the proxy server in response to the first request.
Optionally, the storage medium is further arranged to store program code for performing the steps of: the client sends a first request to the proxy server, wherein the first request is used for requesting to access a WEBP format picture of a target website; the client receives the image data of the target website in the WEBP format, which is sent by the proxy server, wherein the target resource comprises the image data in the WEBP format.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
the method comprises the steps that a proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website and carries a domain name of the target website, and the browsing service is integrated in the client;
the proxy server acquires target resources of the target website according to the address of the target website, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website;
and the proxy server sends the target resource of the target website to the client.
Optionally, the storage medium is further arranged to store program code for performing the steps of: the proxy server judges whether target resources of a target website pointed by the address of the target website are cached on the proxy server or not; when the target resource of the target website is judged to be cached on the proxy server, the proxy server acquires the cached target resource of the target website; and when the target resource of the target website is not cached on the proxy server, the proxy server acquires the target resource from the target website pointed by the address of the target website.
Optionally, the storage medium is further arranged to store program code for performing the steps of: after the proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service, and before the proxy server acquires target resources of a target website according to the address of the target website, the proxy server performs domain name resolution on the domain name of the target website to obtain the address of the target website; or the proxy server sends the domain name of the target website to the background server and receives the address of the target website sent by the background server, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website through the background server.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (16)
1. A method for acquiring a target resource is characterized by comprising the following steps:
the method comprises the steps that a client side obtains a link address of a proxy server through a browsing service, wherein the client side obtains preset interface data which are used for packaging a web browsing Webview interface corresponding to the browsing service; replacing original interface data by the client with the preset interface data, wherein the original interface data is used for packaging the webpage browsing Webview interface built in the client; the client loads a preset browser kernel through the preset interface data, and integrates the browsing service at the client according to a preset function of the preset browser kernel;
the client sends a first request to a proxy server pointed by the link address through the web browsing Webview interface provided by the browsing service, wherein the first request is used for requesting access to a target website and carries a domain name of the target website;
and the client receives the target resource of the target website sent by the proxy server.
2. The method of claim 1, wherein the client obtaining the link address of the proxy server through the browsing service comprises:
and the client acquires the link address of the proxy server from the network equipment pointed by the specified address provided by the browsing service.
3. The method of claim 2, wherein the client obtaining the link address of the proxy server from the network device pointed to by the specified address provided by the browsing service comprises:
the client sends a second request to the network equipment;
and the client receives the link address of the proxy server sent by the network device in response to the second request, wherein the proxy server is the proxy server closest to the client or the proxy server with the fastest communication speed with the client in the plurality of proxy servers recorded by the network device.
4. The method of claim 1, wherein the client receiving the target resource of the target website sent by the proxy server comprises:
the client receives the address of the target website sent by the proxy server, wherein the address of the target website is obtained by performing domain name resolution on a domain name of the target website; the client sends a third request for requesting to access the target website to the proxy server, wherein the third request carries the address of the target website; the client receives the target resource of the target website sent by the proxy server in response to the third request; or
And the client receives the target resource of the target website sent by the proxy server in response to the first request.
5. The method of claim 4, wherein the target resources of the target website are cached in the proxy server.
6. The method of claim 1,
the client sends a first request to the proxy server pointed by the link address through a web browsing Webview interface provided by the browsing service, and the first request comprises: the client sends the first request to the proxy server, wherein the first request is used for requesting to access a WEBP format picture of the target website;
the client receiving the target resource of the target website sent by the proxy server comprises: and the client receives the image data of the target website in the WEBP format, which is sent by the proxy server, wherein the target resource comprises the image data in the WEBP format.
7. A method for acquiring a target resource is characterized by comprising the following steps:
the method comprises the steps that a proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service, wherein the first request is used for requesting access to a target website, the first request carries a domain name of the target website, preset interface data are obtained by the client, and the preset interface data are used for packaging the web browsing Webview interface corresponding to the browsing service; replacing original interface data by the client side with the preset interface data, wherein the original interface data is used for packaging the webpage browsing Webview interface built in the client side; loading a preset browser kernel by the client through the preset interface data, and integrating the browsing service at the client through a preset function of the preset browser kernel;
the proxy server acquires target resources of the target website according to the address of the target website, wherein the address of the target website is obtained by performing domain name resolution on a domain name of the target website;
and the proxy server sends the target resource of the target website to the client.
8. The method of claim 7, wherein the proxy server obtaining the target resource of the target website according to the address of the target website comprises:
the proxy server judges whether target resources of the target website pointed by the address of the target website are cached on the proxy server or not;
when the target resource of the target website is judged to be cached on the proxy server, the proxy server acquires the cached target resource of the target website;
and when the target resource of the target website is not cached on the proxy server, the proxy server acquires the target resource from the target website pointed by the address of the target website.
9. The method of claim 7, after the proxy server receives the first request sent by the client through a web browsing Webview interface provided by the browsing service, and before the proxy server obtains the target resource of the target website according to the address of the target website, further comprising:
the proxy server carries out domain name resolution on the domain name of the target website to obtain the address of the target website; or
The proxy server sends the domain name of the target website to a background server and receives the address of the target website sent by the background server, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website through the background server.
10. An apparatus for acquiring a target resource, comprising:
the system comprises an acquisition unit, a proxy server and a server, wherein the acquisition unit is used for enabling a client to acquire a link address of the proxy server through a browsing service, the client acquires preset interface data, and the preset interface data is used for packaging a webpage browsing Webview interface corresponding to the browsing service; replacing original interface data by the client with the preset interface data, wherein the original interface data is used for packaging the webpage browsing Webview interface built in the client; the client loads a preset browser kernel through the preset interface data, and integrates the browsing service at the client according to a preset function of the preset browser kernel;
a sending unit, configured to enable the client to send a first request to a proxy server pointed by the link address through the web browsing Webview interface provided by the browsing service, where the first request is used to request access to a target website, and the first request carries a domain name of the target website;
a receiving unit, configured to enable the client to receive the target resource of the target website sent by the proxy server.
11. The apparatus according to claim 10, wherein the obtaining unit is configured to enable the client to obtain the link address of the proxy server from a network device pointed to by a specified address provided by the browsing service.
12. The apparatus of claim 11, wherein the obtaining unit comprises:
a first sending module, configured to enable the client to send a second request to the network device;
and a first receiving module, configured to enable the client to receive a link address of the proxy server sent by the network device in response to the second request, where the proxy server is a proxy server closest to the client or a proxy server with the fastest communication speed with the client, among multiple proxy servers recorded by the network device.
13. The apparatus of claim 10, wherein the receiving unit comprises:
a second receiving module, configured to enable the client to receive the address of the target website sent by the proxy server, where the address of the target website is obtained by performing domain name resolution on a domain name of the target website; a second sending module, configured to enable the client to send a third request for requesting access to the target website to the proxy server, where the third request carries an address of the target website; a third receiving module, configured to enable the client to receive a target resource of the target website sent by the proxy server in response to the third request; or
A fourth receiving module, configured to enable the client to receive the target resource of the target website sent by the proxy server in response to the first request.
14. An apparatus for acquiring a target resource, comprising:
the system comprises a receiving unit, a proxy server and a server, wherein the receiving unit is used for enabling the proxy server to receive a first request sent by a client through a web browsing Webview interface provided by a browsing service, the first request is used for requesting to access a target website, the first request carries a domain name of the target website, the browsing service is integrated in the client, preset interface data is acquired by the client, and the preset interface data is used for packaging the web browsing Webview interface corresponding to the browsing service; replacing original interface data by the client side with the preset interface data, wherein the original interface data is used for packaging the webpage browsing Webview interface built in the client side; loading a preset browser kernel by the client through the preset interface data, and integrating the browsing service at the client through a preset function of the preset browser kernel;
an obtaining unit, configured to enable the proxy server to obtain a target resource of the target website according to an address of the target website, where the address of the target website is obtained by performing domain name resolution on a domain name of the target website;
and the first sending unit is used for enabling the proxy server to send the target resource of the target website to the client.
15. The apparatus of claim 14, wherein the obtaining unit comprises:
the judging module is used for enabling the proxy server to judge whether target resources of the target website pointed by the address of the target website are cached on the proxy server or not;
the first acquisition module is used for enabling the proxy server to acquire the cached target resource of the target website when the target resource of the target website is judged to be cached on the proxy server;
and the second acquisition module is used for acquiring the target resource from the target website pointed by the address of the target website by the proxy server when the target resource of the target website is not cached on the proxy server.
16. The apparatus of claim 14, further comprising:
the analysis unit is used for enabling the proxy server to carry out domain name analysis on the domain name of the target website to obtain the address of the target website after the proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service and before the proxy server obtains the target resource of the target website according to the address of the target website; or
The second sending unit is used for enabling the proxy server to send the domain name of the target website to a background server and receive the address of the target website sent by the background server after the proxy server receives a first request sent by a client through a web browsing Webview interface provided by a browsing service and before the proxy server obtains the target resource of the target website according to the address of the target website, wherein the address of the target website is obtained by performing domain name resolution on the domain name of the target website through the background server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611125015.6A CN108156210B (en) | 2016-12-06 | 2016-12-06 | Target resource acquisition method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611125015.6A CN108156210B (en) | 2016-12-06 | 2016-12-06 | Target resource acquisition method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108156210A CN108156210A (en) | 2018-06-12 |
CN108156210B true CN108156210B (en) | 2020-05-19 |
Family
ID=62468500
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611125015.6A Active CN108156210B (en) | 2016-12-06 | 2016-12-06 | Target resource acquisition method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108156210B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108494860B (en) * | 2018-03-28 | 2021-08-27 | 百度在线网络技术(北京)有限公司 | WEB access system, WEB access method and device for client |
CN110730196B (en) * | 2018-07-16 | 2022-05-27 | 阿里巴巴集团控股有限公司 | Network resource access method, computer equipment and storage medium |
CN111124426B (en) * | 2018-10-31 | 2023-07-04 | 北京国双科技有限公司 | Data information acquisition method and device |
CN110896410B (en) * | 2018-11-15 | 2022-03-18 | 腾讯科技(深圳)有限公司 | Video data uploading method and device, computer readable medium and electronic equipment |
CN109802936B (en) * | 2018-11-22 | 2022-04-22 | 北京奇艺世纪科技有限公司 | Network data access method and device and electronic equipment |
CN109787951B (en) * | 2018-11-22 | 2022-09-02 | 北京奇艺世纪科技有限公司 | Network data access method and device and electronic equipment |
CN112217853B (en) * | 2019-07-12 | 2022-07-12 | 腾讯科技(深圳)有限公司 | Resource access method and device |
CN110648145A (en) * | 2019-08-16 | 2020-01-03 | 广东省广袤科技有限公司 | Two-dimensional code storage website system for commodity origin |
CN110798545B (en) * | 2019-11-05 | 2020-08-18 | 中国人民解放军国防科技大学 | A Web-based Domain Name Data Acquisition Method |
CN112364274B (en) * | 2020-10-28 | 2024-12-06 | 北京中科网威信息技术有限公司 | WEB site access acceleration method and device |
CN112637333A (en) * | 2020-12-22 | 2021-04-09 | 畅捷通信息技术股份有限公司 | A client-side intelligent proxy method |
CN114979099B (en) * | 2022-04-14 | 2024-02-23 | 天津车之家软件有限公司 | Target service access method, module and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090123045A (en) * | 2008-05-27 | 2009-12-02 | (주) 엘지텔레콤 | System and method for setting web viewer refresh rate in wireless network |
CN102143187A (en) * | 2011-04-07 | 2011-08-03 | 北京星网锐捷网络技术有限公司 | Method and system for terminal equipment to access network as well as network access proxy device |
CN103220372A (en) * | 2012-01-19 | 2013-07-24 | 中国移动通信集团公司 | Data service access method and system |
CN103873491A (en) * | 2012-12-07 | 2014-06-18 | 华耀(中国)科技有限公司 | A VPN security browser system and setting method |
CN105100958A (en) * | 2015-07-27 | 2015-11-25 | 网宿科技股份有限公司 | Method and device for video traffic guidance based on Android system |
CN105847312A (en) * | 2015-01-14 | 2016-08-10 | 华为技术有限公司 | Resource visiting method and user terminal |
CN105897900A (en) * | 2016-04-22 | 2016-08-24 | 北京小米移动软件有限公司 | Resource acquisition method and apparatus |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9009330B2 (en) * | 2010-04-01 | 2015-04-14 | Cloudflare, Inc. | Internet-based proxy service to limit internet visitor connection speed |
-
2016
- 2016-12-06 CN CN201611125015.6A patent/CN108156210B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090123045A (en) * | 2008-05-27 | 2009-12-02 | (주) 엘지텔레콤 | System and method for setting web viewer refresh rate in wireless network |
CN102143187A (en) * | 2011-04-07 | 2011-08-03 | 北京星网锐捷网络技术有限公司 | Method and system for terminal equipment to access network as well as network access proxy device |
CN103220372A (en) * | 2012-01-19 | 2013-07-24 | 中国移动通信集团公司 | Data service access method and system |
CN103873491A (en) * | 2012-12-07 | 2014-06-18 | 华耀(中国)科技有限公司 | A VPN security browser system and setting method |
CN105847312A (en) * | 2015-01-14 | 2016-08-10 | 华为技术有限公司 | Resource visiting method and user terminal |
CN105100958A (en) * | 2015-07-27 | 2015-11-25 | 网宿科技股份有限公司 | Method and device for video traffic guidance based on Android system |
CN105897900A (en) * | 2016-04-22 | 2016-08-24 | 北京小米移动软件有限公司 | Resource acquisition method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN108156210A (en) | 2018-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108156210B (en) | Target resource acquisition method and device | |
CN109842617B (en) | Advertisement blocking method and device and storage medium | |
CN110209583B (en) | Security testing methods, devices, systems, equipment and storage media | |
CN108809890B (en) | Vulnerability detection method, test server and client | |
CN103368978B (en) | Realize intelligent mobile terminal application leak and the method for communication security detection | |
CN105934960B (en) | Mobile device traffic management | |
CN108270882A (en) | The analysis method and device of domain name, storage medium, electronic device | |
US9106603B2 (en) | Apparatus, method and computer-readable storage mediums for determining application protocol elements as different types of lawful interception content | |
KR102707204B1 (en) | Data processing method, apparatus, computer device, and storage medium | |
CN107181779B (en) | Method, device and system for processing access request | |
CN104854843A (en) | Loading a re-directed web page on a web browser of a client device in a communications system | |
CN113746851B (en) | Proxy system and method supporting real-time analysis of GRPC request | |
CN102821161A (en) | Method, device and system for network security auditing | |
CN110198333B (en) | Data acquisition method and device, storage medium and electronic device | |
CN111294798A (en) | A method, apparatus, terminal device and medium for data interaction | |
CN112241298A (en) | Page display method and device, storage medium and electronic device | |
CN104253714A (en) | Monitoring method, system, browser and server | |
KR102112605B1 (en) | Mobile device and Method for controlling network transfer of the mobile device | |
CN107864117A (en) | Webpage hold-up interception method, device and computer-readable recording medium | |
CN105635073A (en) | Access control method and device and network access equipment | |
CN104518968B (en) | The method and Transparent proxy server of a kind of Message processing | |
CN116471586A (en) | Data processing method, device and readable storage medium | |
Wang et al. | Smart devices information extraction in home wi‐fi networks | |
EP2850809B1 (en) | Providing data to a network terminal | |
CN114915565B (en) | Network debugging method and system |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221130 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 518100 Patentee after: Shenzhen Yayue Technology Co.,Ltd. Address before: 518000 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 Floors Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. |