CN103729440A - Method and device for having access to website - Google Patents

Method and device for having access to website Download PDF

Info

Publication number
CN103729440A
CN103729440A CN201310744195.6A CN201310744195A CN103729440A CN 103729440 A CN103729440 A CN 103729440A CN 201310744195 A CN201310744195 A CN 201310744195A CN 103729440 A CN103729440 A CN 103729440A
Authority
CN
China
Prior art keywords
site
server
url
transport layer
access
Prior art date
Application number
CN201310744195.6A
Other languages
Chinese (zh)
Other versions
CN103729440B (en
Inventor
廖飞
张炳伟
Original Assignee
优视科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 优视科技有限公司 filed Critical 优视科技有限公司
Priority to CN201310744195.6A priority Critical patent/CN103729440B/en
Publication of CN103729440A publication Critical patent/CN103729440A/en
Priority claimed from PCT/CN2014/081026 external-priority patent/WO2015014189A1/en
Application granted granted Critical
Publication of CN103729440B publication Critical patent/CN103729440B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The embodiment of the invention discloses a method and device for having access to a website. The method includes the following steps that a web address conforming to preset conditions is obtained, and a server corresponding to the web address is determined; connection of a transport layer is established with the server; when an order of the website corresponding to the accessed web address is received, a network request for acquiring webpage content of the website is sent to the server through the connection of the transport layer. According to the scheme, time for establishing the connection of the transport layer can be saved, and therefore the efficiency of having access to the website is improved. In addition, when the connection of the transport layer is established with the server in advance, data packets generated with the server are few, and therefore network traffic is greatly reduced. Furthermore, before the order of the website corresponding to the accessed web address is received, only connection of the transport layer is established with the server, the server will not be asked for more data, and therefore occupation of system resources such as a memory and a processor is little.

Description

一种访问网站的方法及装置 Method and apparatus for accessing a Web site

技术领域 FIELD

[0001] 本发明涉及通信技术领域,更具体的说,涉及访问网站的方法及装置。 [0001] The present invention relates to communication technologies, and more particularly, relates to a method and apparatus to access the site.

背景技术 Background technique

[0002] 浏览器是一种应用在终端上显示网页的应用软件,用户可以通过浏览器访问自己感兴趣的网站以获取相应的信息。 [0002] Browser is a web application to display the application software on the terminal, users can access the site to your interests browser to obtain the appropriate information.

[0003] 在浏览器访问网站的过程中,主要包括以下几个步骤:1、终端获取用户在浏览器上输入的目标网站的网址;2、终端查找与该网址对应的服务器;3、终端与该服务器建立传输层的连接;4、终端通过建立好的传输层的连接向服务器发送网络请求;5、终端接收服务器发送的目标网站的网页数据,并根据该网页数据渲染网站页面。 [0003] In the process of the browser, the web, includes the following steps: 1, the terminal acquires the URL input by the user on the browser of the target site; 2, a terminal lookup server corresponding to the URL; 3, terminal the transport layer connections to the server; 4, the network terminal transmits the connection request to the server via the established transport layer; 5, the terminal receives the web page data transmitted from the target web server, and render web page based on the page data. 通过上述步骤可以利用浏览器访问目标网站的内容,但是访问过程需要经历上述一系列步骤,所以用户在浏览器上输入目标网站的网址后,需要等待一定的时间才能够在浏览器上看到目标网站的页面。 After the above steps can be used by the browser to access the contents of the target site, but the access process to go through the above series of steps, users enter the URL of the destination site in the browser, we need to wait some time to be able to see the target in the browser page of the site.

[0004] 为了减少用户在访问网站过程中的等待时间,目前现有对网页内容进行预读的技术方案主要包括以下步骤:获取终端上的网址历史访问数据,网址历史访问数据至少包括网址访问权重以及网址历史访问次数;基于网址访问权重和网址历史访问次数,计算网址的访问可能性系数,选择访问可能性系数大于阈值的网址;对选择出的预定数目的网址对应的网页内容进行预读;将预读的网页内容缓存在终端的浏览器内。 [0004] In order to reduce the wait time for users accessing the site during the current existing web content pre-read technical solution includes the following steps: get the URL history to access data on the terminal, URL history to access data includes at least URL access weight and URL history visits; based on the URL of the access weight and URLs number of previous visits, visit the probability coefficient calculation URL, select the access URL probability coefficient greater than a threshold; the content of pages selected by a predetermined number corresponding to the URLs are prefetched; web content will be read-ahead cache in the browser terminal.

[0005] 在研究和实践过程中,发明人发现上述网页预读技术至少存在以下问题: [0005] In the research and practice, the inventors found that the above pre-read page art at least has the following problems:

[0006] 由于预读的网页内容包括很多数据,例如,网页主文档、CSS样式、JS脚本等数据,如果在访问网站的过程中始终没有使用到预读的网页内容,那么获取这些数据的上网流量就会被浪费掉,而且,存储这些网页内容需要占用较多的内存和处理器等系统资源。 [0006] As the web content read-ahead include a lot of data, for example, the page master document, CSS styles, JS script and other data, if you never use the web content read-ahead in the process of accessing the site, then get access these data traffic will be wasted, and that memory content of these pages take up more memory and processor and other system resources. 因此,现有预读网页内容的方式会占用较多的网络流量,并且消耗大量的系统资源。 Therefore, the existing pre-read web content will take up way more network traffic and consume large amounts of system resources.

发明内容 SUMMARY

[0007] 本发明实施例提供一种访问网站的方法及装置,以保证快速访问网页的前提下,减少网络流量,并降低对系统资源的消耗。 Example embodiments provide a method and apparatus for accessing a website [0007] The present invention, in order to ensure quick access to the premise of the page, to reduce network traffic, and reduce the consumption of system resources.

[0008] 本发明实施例提供的方案为: [0008] The solution provided by embodiments of the present invention are:

[0009] 一种访问网站的方法,包括: [0009] One way to access the site, including:

[0010] 获取符合预设条件的网址; [0010] get URLs that match a preset condition;

[0011] 确定所述网址对应的服务器; [0011] determining the URL corresponding to the server;

[0012] 与所述服务器建立传输层的连接; [0012] establish a transport layer connection with the server;

[0013] 当接收到访问所述网址对应的网站的指令时,利用所述传输层的连接向所述服务器发送获取所述网站的网页内容的网络请求。 [0013] Upon receiving the instruction to access the URL corresponding to the website, by the connection of the transport layer transmits an acquisition request for the page content of the web site to the server.

[0014] 优选地,所述获取符合预设条件的网址之前,还包括: Before [0014] Preferably, acquiring the URL matches a preset condition, further comprising:

[0015] 当所述网络接入点切换到代理网关时,与所述代理网关建立传输层的连接,在接收到访问预设网站的指令时,利用与所述代理网关建立的传输层的连接向所述代理网关发送获取所述预设网站的网页内容的网络请求; [0015] When switching the network access point to the proxy gateway, establishing the transport layer connection with the proxy gateway, upon receiving a predetermined instruction to access the site, using the transport layer to establish a connection with the proxy gateway send to the proxy gateway acquires the preset web site's content network request;

[0016] 当所述网络接入点未切换到代理网关时,继续执行所述获取符合预设条件的网址的步骤。 [0016] When the network access point is not switched to the proxy gateway, proceed to the step of acquiring the URL matches a preset condition.

[0017] 优选地,所述获取符合预设条件的网址之前,还包括: Before [0017] Preferably, acquiring the URL matches a preset condition, further comprising:

[0018] 当所述中间件服务器的压缩中转功能被开启时,与所述中间件服务器建立传输层的连接,在接收到访问预设网站的指令时,利用与所述中间件服务器建立的传输层的连接向所述中间件服务器发送获取所述预设网站的网页内容的网络请求; [0018] When the compressed transfer function of the middleware server is turned on, the transport layer connection established with the middleware server, upon receiving an access site preset instruction, using the established transmission middleware server transmitting the connection layer to the middleware server to obtain the default page of the web site content request;

[0019] 当所述中间件服务器的压缩中转功能未被开启时,继续执行所述获取符合预设条件的网址的步骤。 [0019] When the compressed transfer function of the middleware server is not enabled, proceed to the step of acquiring the URL matches the predetermined condition.

[0020] 优选地,所述获取符合预设条件的网址,具体为: [0020] Preferably, acquiring the URL matches a preset condition, specifically:

[0021] 当接收到启动浏览器的指令时,获取符合预设条件的网址。 [0021] When receiving the instruction to start the browser, access the URL matches a preset condition.

[0022] 优选地,所述获取符合预设条件的网址,具体为: [0022] Preferably, acquiring the URL matches a preset condition, specifically:

[0023] 当接收到选中网站链接的指令时,获取所述网站链接的网址。 [0023] Upon receiving the instruction to the selected website link, obtain the URL of the website link.

[0024] 优选地,所述获取符合预设条件的网址,具体为: [0024] Preferably, acquiring the URL matches a preset condition, specifically:

[0025] 当接收到进入浏览器的预设界面的指令时,获取所述预设界面中满足预设条件的网址。 [0025] Upon receiving the instruction enters default browser interface acquires the default URL interface satisfies a preset condition.

[0026] 优选地,所述获取符合预设条件的网址,具体为: [0026] Preferably, acquiring the URL matches a preset condition, specifically:

[0027] 当接收到进入目标网站的指令时,获取所述目标网站中满足预设条件的网站链接的网址。 [0027] Upon receiving the instruction to enter the target site, the URL acquired predetermined condition satisfying the target website linked sites.

[0028] 一种访问网站的装置,包括: [0028] An access site apparatus comprising:

[0029] 获取模块,用于获取符合预设条件的网址; [0029] acquisition module for acquiring URL matches a preset condition;

[0030] 确定模块,用于确定所述网址对应的服务器; [0030] determining means for determining the URL corresponding to the server;

[0031] 建立模块,用于与所述服务器建立传输层的连接; [0031] establishing means for establishing a transport layer connection with the server;

[0032] 发送模块,用在接收到访问所述网址对应的网站的指令时,利用所述传输层的连接向所述服务器发送获取所述网站的网页内容的网络请求。 [0032] The transmitting module, upon receiving the instruction by accessing the site corresponding to the URL, by the connection of the transport layer transmits an acquisition request for the page content of the web site to the server.

[0033] 优选地,还包括: [0033] Preferably, further comprising:

[0034] 第一判断模块,用于判断网络接入点是否切换到代理网关; [0034] a first determining module configured to determine whether to switch to a network access point agent gateway;

[0035] 第一执行模块,用于在所述网络接入点切换到代理网关时,与所述代理网关建立传输层的连接,在接收到访问预设网站的指令时,利用与所述代理网关建立的传输层的连接向所述代理网关发送获取所述预设网站的网页内容的网络请求;在网络接入点未切换到代理网关时,执行所述获取模块。 [0035] In a first execution module, for switching the proxy gateway to the network access point, the transport layer connection established with the proxy gateway, upon receiving a predetermined instruction to access the site, and using the agent establishing the transport layer connection gateway transmits to the proxy gateway obtains the default page of the web site content request; when the network access point is not switched to the proxy gateway, performing the acquisition module.

[0036] 优选地,还包括: [0036] Preferably, further comprising:

[0037] 第二判断模块,用于判断中间件服务器的压缩中转功能是否被开启; [0037] The second determining module, for determining whether to compress the transfer function of the middleware server is turned on;

[0038] 第二执行模块,用于在所述中间件服务器的压缩中转功能被开启时,与所述中间件服务器建立传输层的连接,在接收到访问预设网站的指令时,利用与所述中间件服务器建立的传输层的连接向所述中间件服务器发送获取所述预设网站的网页内容的网络请求;在所述中间件服务器的压缩中转功能未被开启时,执行所述获取模块。 [0038] a second execution module, configured to, when compressed transfer function of the middleware server is turned on, the transport layer connection established with the middleware server, upon receiving an instruction to access a predetermined site, and the use of said transport layer connection established middleware server transmits to the middleware server acquires the default page of the web site content request; upon compression transfer function of the middleware server is not on, perform the acquisition module .

[0039] 与现有技术相比,本实施例提供的技术方案具有以下优点和特点: [0039] Compared with the prior art, the present embodiment provides a technical solution has the following advantages and features:

[0040] 在本发明提供的方案中,在访问网址对应的网站之前,需要与符合预设条件的网址对应的服务器建立传输层的连接,如果用户访问的网址就是符合预设条件的网址,那么就可以利用预先建立好的传输层的连接向服务器发送网络请求,从而节省了建立传输层的连接的时间,以提高访问网站的效率;而且,在预先与服务器建立传输层的连接时,与服务器产生的数据包非常少,从而极大的减少了网络流量;另外,在接收到访问网址对应的网站的指令之前,仅仅与服务器建立传输层的连接,不会向服务器请求更多的数据,所以对内存和处理器等系统资源的占用非常少。 Establishing the transport layer connection URLs [0040] In the embodiment of the present invention provides, before accessing the site corresponding to the URL, and meet the needs of the server corresponding to a preset condition, if the user accesses the URL is the URL meet the preset condition, then you can use the transport layer connection to the preset transmission network request to the server, thereby saving time for establishing a connection in a transport layer, to improve the efficiency of access to the site; Further, when the pre-established transport layer connection with the server, and the server data packet generation is very small, thereby greatly reducing the network traffic; Further, before receiving an instruction to access the URL corresponding to the website, only the transport layer to establish a connection with the server does not request for more data to the server, occupation of system resources such as memory and processor is very small. 因此,本发明提供的方案不仅节省了访问网站的时间,而且对网络和系统资源占用较少。 Accordingly, the present invention provides a solution not only saves time access to the site, and less on network and system resources.

附图说明 BRIEF DESCRIPTION

[0041] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0041] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, the drawings are briefly introduced as required for use in the embodiments describing the embodiments. Apparently, the accompanying drawings described below are merely Some embodiments of the invention, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0042] 图1为本发明实施例提供的一种访问网站的方法的流程图; [0042] FIG. 1 is a flowchart of a method for accessing the site according to an embodiment of the present invention;

[0043] 图2为本发明实施例提供的另一种访问网站的方法的流程图; [0043] FIG 2 is a flowchart of another method to access the site according to an embodiment of the present invention;

[0044] 图3为本发明实施例提供的又一种访问网站的方法的流程图; [0044] FIG. 3 is a flowchart of yet another method to access the website according to an embodiment of the present invention;

[0045] 图4为本发明实施例提供的一种访问网站的装置的模块示意图; [0045] FIG. 4 is a schematic block means a visit according to an embodiment of the present invention;

[0046] 图5为本发明实施例提供的另一种访问网站的装置的模块示意图; [0046] FIG. 5 is a schematic of another module provided in the access site apparatus embodiment of the invention;

[0047] 图6为本发明实施例提供的又一种访问网站的装置的模块示意图。 [0047] FIG 6 provides a schematic view of yet another embodiment of the module means to access the website of the embodiment of the present invention.

具体实施方式 Detailed ways

[0048] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 [0048] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention will be clearly and fully described, obviously, the described embodiments are merely part of embodiments of the present invention, but not all embodiments example. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0049] 本发明实施例提供了一种访问网站的方法及装置,由于上述访问网站的方法及装置的具体实现存在多种方式,下面通过具体实施例进行详细说明: [0049] The embodiments of the present invention provides a method and apparatus for access to the site, since there are various ways to achieve the specific method and apparatus for the access to the site, described in detail by the following specific examples:

[0050] 实施例一 [0050] Example a

[0051] 请参见图1所示,图1所示的为一种访问网站的方法,该方法应用于终端,该终端可以为电脑、笔记本电脑、平板电脑或手机等智能设备。 [0051] Referring to FIG visit the site as a method shown in FIG. 1, FIG. 1, this method is applied to a terminal, the terminal may be a computer, such as notebook computer, tablet or phone smart devices. 该方法提供的方案不仅可以节省访问网站的时间,而且对网络和系统资源占用较少。 This method provides a solution not only saves time access to the site, and less on network and system resources. 该方法包括: The method comprising:

[0052] 步骤S101、获取符合预设条件的网址; [0052] step S101, obtain URL matches a preset condition;

[0053] 其中,符合预设条件的网址指的是在某种具体的应用场景下符合一定条件的网址,下面简要介绍几种具体的应用场景。 [0053] wherein the URL matches a preset condition refers to the specific application scenarios under certain conditions meet certain URLs, briefly described below are several specific application scenarios.

[0054] 第一个应用场景,当终端接收到启动浏览器的指令时,获取符合预设条件的网址。 [0054] The first scenario, when the terminal receives the instruction for starting the browser acquires URL matches a preset condition. 在第一个应用场景中,符合预设条件的网址为浏览器中存储的历史最常访问的网站的网址和上次退出前最后一个访问的网站的网址。 In the first scenario, the Web site URL and the last URL matches the predetermined condition is stored in the browser history most visited site last visited before exiting the site.

[0055] 具体的,用户在启动终端中的浏览器时,终端就会主动的获取浏览器中存储的历史最常访问的网站的网址和上次退出前最后一个访问的网站的网址。 [0055] Specifically, when the user starts the browser terminal, the terminal will automatically get URL stored in browser history and most visited website URL last exit before the last visit of the site. [0056] 第二个应用场景,当接收到选中网站链接的指令时,获取网站链接的网址。 [0056] The second scenario, when receiving the instruction to the selected site links, get the URL link to the site. 在第二个应用场景中,符合预设条件的网址为选中网站链接的网址。 In the second scenario, in line with the preset conditions available at the selected site Web address. 具体的,当用户点击浏览器中某个网页链接或导航图标的链接时,就要获取该网页链接或导航图标的链接的网址。 Specifically, when the user clicks a link to a Web page link or icon navigation browser, you should get the URL link to that page links or navigation icons.

[0057] 第三个应用场景,当接收到进入浏览器的预设界面的指令时,获取预设界面中满足预设条件的网址。 [0057] A third scenario, when receiving an instruction to enter the default browser interface acquires the URL preset condition is satisfied in the preset interface. 在第三个应用场景中,浏览器的预设界面有多种类型。 In the third scenario, the default browser interface for a variety of types. 例如,预设界面可以为功能界面、网址输入界面或搜索界面等。 For example, the default interface can function interface, enter the URL of the search interface or interfaces. 功能界面可以为导航、书签、或应用中心等。 Functional interface can be a navigation, bookmarks, or application center.

[0058] 具体的,当接收到进入浏览器的功能界面的指令时,获取该功能界面中最近一次访问的网站的网址以及最常访问的网站的网址;当接收到进入浏览器的网址输入界面的指令时,获取展现在网址匹配列表中前三的网站的网址以及最近一次访问的网站的网址;当接收到进入浏览器的搜索界面的指令时,获取选中的搜索引擎的网址。 [0058] Specifically, when receiving the instruction to enter the function of the browser interface, the function interface get URL recent visit to the site and the URL of the site most visited; when receiving the URL into the browser interface input when the instruction to get the first three show the URL in the address matching the list of websites and the URL recent visit to the site; when receiving the instruction to enter the browser search interface, access to the selected search engine URL.

[0059] 第四个应用场景,当接收到进入目标网站的指令时,获取目标网站中满足预设条件的网站链接的网址。 [0059] The fourth scenario, when receiving the instruction into the target site, get the URL preconditions sites linked to the site to meet the target. 在第四个应用场景中,目标网站可以为任意被用户选中的网站,符合预设条件的网站链接的网址为目标网站的网页内包含的全部网址。 In the fourth scenario, the target site can be any of the selected user site, meet the preconditions URL web link to all pages within the target URL of the site contains. 当然,在优选方案中,获取符合预设条件的网站链接的网址的步骤可以包括以下子步骤:获取目标网站的网页内包含的全部网址;匹配这些网址对应的服务器;查找对应的网址最多的服务器;获取该服务器对应的网址。 Step Of course, in a preferred embodiment, get the URL link to the site meets the preset condition may include the following sub-steps: acquiring the target all URLs within the pages of the site included; matching these URLs corresponding server; look up the corresponding URL server ; obtaining the corresponding server URL.

[0060] 上述四个应用场景均为获取符合预设条件的网址的具体场景,当然,并不局限于此,由于篇幅有限,还有很多种应用场景未在本申请中一一列出,但是只要能够获取到符合预设条件的网址的应用场景,均在本发明的保护范围内。 [0060] The four scenarios are in line with the preset conditions for specific scenes URLs, of course, not limited to this, because of space limitations, there are many scenarios not list for yourself in this application, but application scenario can be acquired as long as the URL meets a preset condition, are within the scope of the present invention.

[0061] 步骤S102、确定网址对应的服务器; [0061] step S102, determination server corresponding to the URL;

[0062] 其中,在获取到符合预设条件的网址后,需要确定该网址对应的服务器。 [0062] wherein, after obtaining the URL matches a preset condition, the server needs to determine a corresponding URL. 具体的服务器的具体过程为:终端通过DNS服务器查找上述网址对应的服务器的IP地址。 The specific process for a specific server: IP address of the terminal searches the URL corresponding to the server through the DNS server. 在获取到服务器的IP地址以后就相当于知道了哪个服务器是网址对应的服务器。 In obtaining the IP address of the server after the equivalent know which server is the URL corresponding server.

[0063] 步骤S103、与服务器建立传输层的连接; [0063] step S103, the established transport layer connection with the server;

[0064] 其中,传输层的连接包括TCP连接和UDP连接。 [0064] wherein, the transport layer connection comprises a TCP and UDP connections. 在确定了网址对应的服务器以后,终端就可以与网址对应的服务器建立传输层的连接。 After determining the server corresponding to the URL after the URL of the corresponding terminal may establish a connection to a server transport layer. 在本步骤中,仅仅是建立传输层的连接,并没有发起例如HTTP的网络请求,所以在客户端与服务器建立传输层的连接时,仅会产生少量的网络数据包,从而不会造成流量上的浪费;而且,在建立传输层的连接的过程中,对内存和处理器等系统资源的占用非常少。 In this step, only the transport layer to establish a connection, such as a network and does not initiate an HTTP request, so the client and server establish a connection to the transport layer, only a small amount of generated network packet, so that the flow will not cause waste; moreover, the process of establishing a transport layer connection, the system resources occupied processor, memory and the like is very small.

[0065] 在步骤S103之后,终端在一定时间内没有接收到访问上述符合预设条件的网址对应的网站的指令时,或者终端在访问一定数量的网址中不包含上述符合预设条件的网址对应的网站时,均要断开终端与服务器建立好的传输层的连接。 When the URL [0065] After step S103, the terminal does not receive the instruction corresponding to the URL to access said website conforms to a predetermined condition within a certain time, or the terminal does not meet the preset condition including the access URL corresponding to a number of when sites are to be disconnected from the terminal and the server-established transport layer. 因为在这两种情况下,说明用户可能不会使用到预先建立的传输层的连接,虽然也可以不断开传输层的连接,但是,这些建立成功却没有被使用的传输层的连接还是会占用一定的内存,而且会消耗一部分流量的,因此,在确定建立好的传输层的连接不会被使用到时,就可以将其断开。 Because in both cases, indicating that the user may not use the transport layer connection to a pre-established, although it can not disconnect the transport layer, however, the transport layer connection is successfully established but these have not been used or will occupy certain memory, and it will consume part of the flow, and therefore, in determining the established transport layer connection is not to be used, it can be disconnected.

[0066] 步骤S104、当接收到访问网址对应的网站的指令时,利用传输层的连接向服务器发送获取网站的网页内容的网络请求。 [0066] step S104, when receiving the instruction to access the URL corresponding to the website, using the transport layer connection to the server of the acquired Web content web site requests.

[0067] 其中,终端在接收到访问上述网址对应的网站的指令时,会利用与服务器建立的传输层的连接,由于传输层的连接已经建立好,所以就省去了建立传输层的连接的时间,从而加快了终端访问网站的速度。 [0067] wherein, when the terminal receives the access command of the URLs corresponding to sites, will use the transport layer connection established with the server, since the transport layer connection has been created, so eliminating the need for connection establishment of the transport layer time, thereby speeding up the speed of the terminal to access the site.

[0068] 在图1所示的实施例中,在访问网址对应的网站之前,需要与符合预设条件的网址对应的服务器建立传输层的连接,如果用户访问的网址就是符合预设条件的网址,那么就可以利用预先建立好的传输层的连接向服务器发送网络请求,从而节省了建立传输层的连接的时间,以提高访问网站的效率;而且,在预先与服务器建立传输层的连接时,与服务器产生的数据包非常少,从而极大的减少了网络流量;另外,在接收到访问网址对应的网站的指令之前,仅仅与服务器建立传输层的连接,不会向服务器请求更多的数据,所以对内存和处理器等系统资源的占用非常少。 Establishing URL [0068] In the embodiment illustrated in Figure 1, before accessing the site corresponding to the URL, and meet the needs preset condition corresponding to the transport layer connection to the server, if the user accesses the URL is the URL meet the preset condition , then you can use the transport layer connection to the preset transmission network request to the server, thereby saving time for establishing a connection in a transport layer, to improve the efficiency of access to the site; Further, when the pre-established transport layer connection with the server, the server generates packets is very small, thereby greatly reducing the network traffic; Further, before receiving an instruction to access the URL corresponding to the website, only the transport layer to establish a connection with the server does not request for more data to the server Therefore the usage of system resources such as memory and processor is very small. 因此,本发明提供的方案不仅节省了访问网站的时间,而且对网络和系统资源占用较少。 Accordingly, the present invention provides a solution not only saves time access to the site, and less on network and system resources.

[0069] 实施例二 [0069] Second Embodiment

[0070] 请参见图2所示,图2所示的为另一种访问网站的方法,该方法应用于终端,该终端可以为电脑、笔记本电脑、平板电脑或手机等设备。 [0070] Referring to FIG. 2, as an alternative to access the site shown in Figure 2, the method is applied to a terminal, the terminal may be a computer, such as notebook computer, tablet computer, or cell phone. 该方法提供的方案可以节省访问网站的时间,对网络和系统资源占用较少。 The method provides a scheme can save time to visit the site, less network and system resources. 另外,在网络接入点切换到代理网关时,还可以节省访问代理网关的时间。 Further, when the network access point is switched to the proxy gateway, also saves time access to the proxy gateway. 该方法包括: The method comprising:

[0071] 步骤S201、判断网络接入点是否切换到代理网关,若是,则执行步骤S202,否则,执行步骤S205 ; [0071] step S201, the network access point determines whether to switch to the proxy gateway, if yes, perform step S202, otherwise, to step S205;

[0072] 其中,代理网关具体可以为WAP(Wireless Application Protocol,为无线应用协议)网关,WAP网关包括cmwap (中国移动wap)、ctwap (中国电信wap)和3gwap等。 [0072] where the proxy gateway may specifically be WAP (Wireless Application Protocol, a wireless application protocol) gateway, WAP gateway includes cmwap (China Mobile wap), ctwap (China Telecom wap) and 3gwap and so on. 网络接入点可以在终端自由设置,如果用户将网络接入点切换到代理网关,那么可以预先与该代理网关建立传输层的连接,待用户访问网站时,就可以利用预先建立的传输层的连接,从而加快在具有代理网关的情况下访问网站的速度。 Network access point can be freely set in the terminal, the network access point if the user switches to the proxy gateway, it may be previously established transport layer connection with the proxy gateway, to be user visits a website, the transport layer can use a pre-established connection, thus speeding up the speed of access to the site in case of a proxy gateway.

[0073] 步骤S202、与代理网关建立传输层的连接; [0073] Step S202, the transport layer connection is established with the proxy gateway;

[0074] 其中,在与代理网关建立传输层的连接以后,如果因为网络不稳定等各种因素使客户端与代理网关在传输层的连接被断开,则重新连接客户端与代理网关的传输层的连接。 [0074] wherein, after the connection to the proxy gateway establishes the transport layer, if the network is unstable because of various factors and the like client proxy gateway is disconnected in the transport layer connection, transmission reconnect the client and the proxy gateway connection layer. 只有在网络接入点切换到非代理网关时,才断开客户端与代理网关的传输层的连接。 Only when the network access point is switched to the non-proxy gateway, before disconnecting the client and the proxy gateway transport layer.

[0075] 步骤S203、判断是否接收到访问预设网站的指令,若是,则执行步骤S204 ; [0075] Step S203, the determining whether an instruction to access a predetermined web site, and if so, executing step S204;

[0076] 步骤S204、利用与代理网关建立的传输层的连接向代理网关发送获取预设网站的网页内容的网络请求; [0076] step S204, using the transport layer to establish a connection with the proxy gateway sends a proxy gateway acquires the default page of the Web site content request;

[0077] 其中,在代理网关接收到终端发送的获取预设网站的网页内容的网络请求后,代理网关会根据该网络请求中的网址查找该网址对应的服务器,并将该网络请求发送给该服务器;在代理网关接收到该服务器反馈的预设网站的网页内容时,代理网关会将该预设网站的网页内容发送给终端;最后,终端对该预设网站的网页内容进行加载、解析、排版和渲染等操作,以生成用户可以看到的该预设网站的网页页面。 After [0077] wherein the proxy gateway receives web content acquired predetermined site network requests sent by the terminal, the gateway proxy server looks up the network based on the URL corresponding to the URL request, and the request sent to the network server; when the proxy gateway receives the page content of the default web site server feedback proxy gateway the default web site's content to the terminal; and finally, the pre-terminal site's content pages to load, parse, layout and rendering operations to generate a web page the user can see the default web site.

[0078] 步骤S205、获取符合预设条件的网址; [0078] step S205, obtain URL matches a preset condition;

[0079] 其中,符合预设条件的网址指的是在某种具体的应用场景下符合一定条件的网址,下面简要介绍几种具体的应用场景。 [0079] wherein the URL matches a preset condition refers to the specific application scenarios under certain conditions meet certain URLs, briefly described below are several specific application scenarios.

[0080] 第一个应用场景,当终端接收到启动浏览器的指令时,获取符合预设条件的网址。 [0080] The first scenario, when the terminal receives the instruction for starting the browser acquires URL matches a preset condition. 在第一个应用场景中,符合预设条件的网址为浏览器中存储的历史最常访问的网站的网址和上次退出前最后一个访问的网站的网址。 In the first scenario, the Web site URL and the last URL matches the predetermined condition is stored in the browser history most visited site last visited before exiting the site. [0081] 具体的,用户在启动终端中的浏览器时,终端就会主动的获取浏览器中存储的历史最常访问的网站的网址和上次退出前最后一个访问的网站的网址。 [0081] Specifically, when the user starts the browser terminal, the terminal will automatically get URL stored in browser history and most visited website URL last exit before the last visit of the site.

[0082] 第二个应用场景,当接收到选中网站链接的指令时,获取网站链接的网址。 [0082] The second scenario, when receiving the instruction to the selected site links, get the URL link to the site. 在第二个应用场景中,符合预设条件的网址为选中网站链接的网址。 In the second scenario, in line with the preset conditions available at the selected site Web address. 具体的,当用户点击浏览器中某个网页链接或导航图标的链接时,就要获取该网页链接或导航图标的链接的网址。 Specifically, when the user clicks a link to a Web page link or icon navigation browser, you should get the URL link to that page links or navigation icons.

[0083] 第三个应用场景,当接收到进入浏览器的预设界面的指令时,获取预设界面中满足预设条件的网址。 [0083] A third scenario, when receiving an instruction to enter the default browser interface acquires the URL preset condition is satisfied in the preset interface. 在第三个应用场景中,浏览器的预设界面有多种类型。 In the third scenario, the default browser interface for a variety of types. 例如,预设界面可以为功能界面、网址输入界面或搜索界面等。 For example, the default interface can function interface, enter the URL of the search interface or interfaces. 功能界面可以为导航、书签、或应用中心等。 Functional interface can be a navigation, bookmarks, or application center.

[0084] 具体的,当接收到进入浏览器的功能界面的指令时,获取该功能界面中最近一次访问的网站的网址以及最常访问的网站的网址;当接收到进入浏览器的网址输入界面的指令时,获取展现在网址匹配列表中前三的网站的网址以及最近一次访问的网站的网址;当接收到进入浏览器的搜索界面的指令时,获取选中的搜索引擎的网址。 [0084] Specifically, when receiving the instruction to enter the function of the browser interface, the function interface get URL recent visit to the site and the URL of the site most visited; when receiving the URL into the browser interface input when the instruction to get the first three show the URL in the address matching the list of websites and the URL recent visit to the site; when receiving the instruction to enter the browser search interface, access to the selected search engine URL.

[0085] 第四个应用场景,当接收到进入目标网站的指令时,获取目标网站中满足预设条件的网站链接的网址。 [0085] The fourth scenario, when receiving the instruction into the target site, get the URL preconditions sites linked to the site to meet the target. 在第四个应用场景中,目标网站可以为任意被用户选中的网站,符合预设条件的网站链接的网址为目标网站的网页内包含的全部网址。 In the fourth scenario, the target site can be any of the selected user site, meet the preconditions URL web link to all pages within the target URL of the site contains. 当然,在优选方案中,获取符合预设条件的网站链接的网址的步骤可以包括以下子步骤:获取目标网站的网页内包含的全部网址;匹配这些网址对应的服务器;查找对应的网址最多的服务器;获取该服务器对应的网址。 Step Of course, in a preferred embodiment, get the URL link to the site meets the preset condition may include the following sub-steps: acquiring the target all URLs within the pages of the site included; matching these URLs corresponding server; look up the corresponding URL server ; obtaining the corresponding server URL.

[0086] 上述四个应用场景均为获取符合预设条件的网址的具体场景,当然,并不局限于此,由于篇幅有限,还有很多种应用场景未在本申请中一一列出,但是只要能够获取到符合预设条件的网址的应用场景,均在本发明的保护范围内。 [0086] The four scenarios are in line with the preset conditions for specific scenes URLs, of course, not limited to this, because of space limitations, there are many scenarios not list for yourself in this application, but application scenario can be acquired as long as the URL meets a preset condition, are within the scope of the present invention.

[0087] 步骤S206、确定网址对应的服务器; [0087] step S206, determination server corresponding to the URL;

[0088] 其中,在获取到符合预设条件的网址后,需要确定该网址对应的服务器。 [0088] wherein, after obtaining the URL matches a preset condition, the server needs to determine a corresponding URL. 具体的服务器的具体过程为:终端通过DNS服务器查找上述网址对应的服务器的IP地址。 The specific process for a specific server: IP address of the terminal searches the URL corresponding to the server through the DNS server. 在获取到服务器的IP地址以后就相当于知道了哪个服务器是网址对应的服务器。 In obtaining the IP address of the server after the equivalent know which server is the URL corresponding server.

[0089] 步骤S207、与服务器建立传输层的连接; [0089] step S207, the established transport layer connection with the server;

[0090] 其中,传输层的连接包括TCP连接和UDP连接。 [0090] wherein, the transport layer connection comprises a TCP and UDP connections. 在确定了网址对应的服务器以后,终端就可以与网址对应的服务器建立传输层的连接。 After determining the server corresponding to the URL after the URL of the corresponding terminal may establish a connection to a server transport layer. 在本步骤中,仅仅是建立传输层的连接,并没有发起例如HTTP的网络请求,所以在客户端与服务器建立传输层的连接时,仅会产生少量的网络数据包,从而不会造成流量上的浪费;而且,在建立传输层的连接的过程中,对内存和处理器等系统资源的占用非常少。 In this step, only the transport layer to establish a connection, such as a network and does not initiate an HTTP request, so the client and server establish a connection to the transport layer, only a small amount of generated network packet, so that the flow will not cause waste; moreover, the process of establishing a transport layer connection, the system resources occupied processor, memory and the like is very small.

[0091] 在步骤S207之后,终端在一定时间内没有接收到访问上述符合预设条件的网址对应的网站的指令时,或者终端在访问一定数量的网址中不包含上述符合预设条件的网址对应的网站时,均要断开终端与服务器建立好的传输层的连接。 When the URL [0091] After step S207, the terminal does not receive the instruction corresponding to the URL to access said website conforms to a predetermined condition within a certain time, or the terminal does not meet the preset condition including the access URL corresponding to a number of when sites are to be disconnected from the terminal and the server-established transport layer. 因为在这两种情况下,说明用户可能不会使用到预先建立的传输层的连接,虽然也可以不断开传输层的连接,但是,这些建立成功却没有被使用的传输层的连接还是会占用一定的内存,而且会消耗一部分流量的,因此,在确定建立好的传输层的连接不会被使用到时,就可以将其断开。 Because in both cases, indicating that the user may not use the transport layer connection to a pre-established, although it can not disconnect the transport layer, however, the transport layer connection is successfully established but these have not been used or will occupy certain memory, and it will consume part of the flow, and therefore, in determining the established transport layer connection is not to be used, it can be disconnected.

[0092] 步骤S208、当接收到访问网址对应的网站的指令时,利用传输层的连接向服务器发送获取网站的网页内容的网络请求。 [0092] step S208, when receiving the instruction to access the URL corresponding to the website, using the transport layer connection to the server of the acquired Web content web site requests. [0093] 其中,终端在接收到访问上述网址对应的网站的指令时,会利用与服务器建立的传输层的连接,由于传输层的连接已经建立好,所以就省去了建立传输层的连接的时间,从而加快了终端访问网站的速度。 [0093] wherein, when the terminal receives the access command of the URLs corresponding to sites, will use the transport layer connection established with the server, since the transport layer connection has been created, so eliminating the need for connection establishment of the transport layer time, thereby speeding up the speed of the terminal to access the site.

[0094] 在图2所示的实施例中,本发明实施例提供的方案可以节省访问网站的时间,对网络和系统资源占用较少。 [0094] In the embodiment illustrated in FIG. 2, the solution provided by the embodiment of the present invention can save time to visit the site less network and system resources. 另外,在网络接入点切换到代理网关时,还可以节省访问代理网关的时间。 Further, when the network access point is switched to the proxy gateway, also saves time access to the proxy gateway.

[0095] 实施例三 [0095] Example three

[0096] 请参见图3所示,图3所示的为又一种访问网站的方法,该方法应用于终端,该终端可以为电脑、笔记本电脑、平板电脑或手机等设备。 [0096] Referring to FIG. 3, and a method for accessing a Web site shown in Figure 3, the method is applied to a terminal, the terminal may be a computer, such as notebook computer, tablet computer, or cell phone. 该方法提供的方案可以节省访问网站的时间,对网络和系统资源占用较少。 The method provides a scheme can save time to visit the site, less network and system resources. 另外,在中间件服务器的压缩中转功能开启时,可以节省访问中间件服务器的时间。 In addition, when compressed transfer function middleware server is turned on, you can save time access middleware server. 该方法包括: The method comprising:

[0097] 步骤S301、判断中间件服务器的压缩中转功能是否被开启,若是,则执行步骤S302,否则,执行步骤S305 ; [0097] step S301, the compressed transfer function determines whether the middleware server is opened, if yes, perform step S302, the otherwise, performs step S305;

[0098] 其中,在终端的浏览器上可以设置压缩中转功能,用户可以根据自己的情况开启或关闭压缩中转功能。 [0098] wherein, on the browser of the terminal can set the compression transfer function, the user can turn on or off compressed transfer function according to their own situation. 如果终端的浏览器开启了压缩中转功能,那么浏览器需要经过中间件服务器才能访问到网站的服务器。 If the terminal's browser to open the compressed transfer function, the browser need to go through a middleware server to server to access the site. 在浏览器开启了压缩中转功能的情况下,预先与中间件服务器建立传输层的连接,能够节省客户端访问网站的服务器的时间。 Opened the case of compressed transfer function in the browser, the pre-established transport layer connection with the middleware server can save time server client access site.

[0099] 步骤S302、与中间件服务器建立传输层的连接; [0099] Step S302, the established transport layer connection to the middleware server;

[0100] 其中,在与中间件服务器建立传输层的连接以后,如果因为网络不稳定等各种因素使客户端与中间件服务器在传输层的连接被断开,则重新连接客户端与中间件服务器的传输层的连接。 [0100] wherein, after the transport layer connection is established with the middleware server, if the network is unstable due to various factors like the middleware server for the client and the connection is disconnected in the transport layer, the middleware client reconnect the transport layer connection server. 只有在关闭压缩中转功能时,才断开客户端与中间件服务器的传输层的连接。 Only in the closed compressed transfer function, before disconnecting the client and the middleware server transport layer.

[0101] 步骤S303、判断是否接收到访问预设网站的指令,若是,则执行步骤S304 ; [0101] Step S303, the determining whether an instruction to access a predetermined web site, and if so, executing step S304,;

[0102] 步骤S304、利用与中间件服务器建立的传输层的连接向中间件服务器发送获取预设网站的网页内容的网络请求; [0102] step S304, the use of the transport layer to establish a connection with the middleware server transmits the server to the broker acquires the default page of the Web site content request;

[0103] 其中,在中间件服务器接收到终端发送的获取预设网站的网页内容的网络请求后,中间件服务器会根据该网络请求中的网址查找该网址对应的服务器,并将该网络请求发送给该服务器;在中间件服务器接收到该服务器反馈的预设网站的网页内容时,中间件服务器会将该网页内容中的图片等文件进行压缩处理,以减少网页内容所占用的存储空间,并将压缩后的网页内容发送给终端;最后,终端对该压缩后的网页内容进行加载、解析、排版和渲染等操作,以生成用户可以看到的该预设网站的网页页面。 [0103] wherein, after receiving the content acquisition preset website page request sent by the terminal to the network server middleware, the middleware server looks up the URL corresponding to the server according to the network request URL and request the network to the server; when receiving the web site of the preset content server feedback in a middleware server, middleware server processing the compressed web content pictures and other documents, in order to reduce the storage space occupied by web content, and after the compressed web content to the terminal; and finally, after the end of the web content compression to load, parse, layout and rendering operations to generate a web page the user can see the default web site.

[0104] 步骤S305、获取符合预设条件的网址; [0104] step S305, the acquired URL matches a preset condition;

[0105] 其中,符合预设条件的网址指的是在某种具体的应用场景下符合一定条件的网址,下面简要介绍几种具体的应用场景。 [0105] wherein the URL matches a preset condition refers to the specific application scenarios under certain conditions meet certain URLs, briefly described below are several specific application scenarios.

[0106] 第一个应用场景,当终端接收到启动浏览器的指令时,获取符合预设条件的网址。 [0106] The first scenario, when the terminal receives the instruction for starting the browser acquires URL matches a preset condition. 在第一个应用场景中,符合预设条件的网址为浏览器中存储的历史最常访问的网站的网址和上次退出前最后一个访问的网站的网址。 In the first scenario, the Web site URL and the last URL matches the predetermined condition is stored in the browser history most visited site last visited before exiting the site.

[0107] 具体的,用户在启动终端中的浏览器时,终端就会主动的获取浏览器中存储的历史最常访问的网站的网址和上次退出前最后一个访问的网站的网址。 [0107] Specifically, when the user starts the browser terminal, the terminal will automatically get URL stored in browser history and most visited website URL last exit before the last visit of the site. [0108] 第二个应用场景,当接收到选中网站链接的指令时,获取网站链接的网址。 [0108] The second scenario, when receiving the instruction to the selected site links, get the URL link to the site. 在第二个应用场景中,符合预设条件的网址为选中网站链接的网址。 In the second scenario, in line with the preset conditions available at the selected site Web address. 具体的,当用户点击浏览器中某个网页链接或导航图标的链接时,就要获取该网页链接或导航图标的链接的网址。 Specifically, when the user clicks a link to a Web page link or icon navigation browser, you should get the URL link to that page links or navigation icons.

[0109] 第三个应用场景,当接收到进入浏览器的预设界面的指令时,获取预设界面中满足预设条件的网址。 [0109] A third scenario, when receiving an instruction to enter the default browser interface acquires the URL preset condition is satisfied in the preset interface. 在第三个应用场景中,浏览器的预设界面有多种类型。 In the third scenario, the default browser interface for a variety of types. 例如,预设界面可以为功能界面、网址输入界面或搜索界面等。 For example, the default interface can function interface, enter the URL of the search interface or interfaces. 功能界面可以为导航、书签、或应用中心等。 Functional interface can be a navigation, bookmarks, or application center.

[0110] 具体的,当接收到进入浏览器的功能界面的指令时,获取该功能界面中最近一次访问的网站的网址以及最常访问的网站的网址;当接收到进入浏览器的网址输入界面的指令时,获取展现在网址匹配列表中前三的网站的网址以及最近一次访问的网站的网址;当接收到进入浏览器的搜索界面的指令时,获取选中的搜索引擎的网址。 [0110] Specifically, when receiving the instruction to enter the function of the browser interface, the function interface get URL recent visit to the site and the URL of the site most visited; when receiving the URL into the browser interface input when the instruction to get the first three show the URL in the address matching the list of websites and the URL recent visit to the site; when receiving the instruction to enter the browser search interface, access to the selected search engine URL.

[0111] 第四个应用场景,当接收到进入目标网站的指令时,获取目标网站中满足预设条件的网站链接的网址。 [0111] The fourth scenario, when receiving the instruction into the target site, get the URL preconditions sites linked to the site to meet the target. 在第四个应用场景中,目标网站可以为任意被用户选中的网站,符合预设条件的网站链接的网址为目标网站的网页内包含的全部网址。 In the fourth scenario, the target site can be any of the selected user site, meet the preconditions URL web link to all pages within the target URL of the site contains. 当然,在优选方案中,获取符合预设条件的网站链接的网址的步骤可以包括以下子步骤:获取目标网站的网页内包含的全部网址;匹配这些网址对应的服务器;查找对应的网址最多的服务器;获取该服务器对应的网址。 Step Of course, in a preferred embodiment, get the URL link to the site meets the preset condition may include the following sub-steps: acquiring the target all URLs within the pages of the site included; matching these URLs corresponding server; look up the corresponding URL server ; obtaining the corresponding server URL.

[0112] 上述四个应用场景均为获取符合预设条件的网址的具体场景,当然,并不局限于此,由于篇幅有限,还有很多种应用场景未在本申请中一一列出,但是只要能够获取到符合预设条件的网址的应用场景,均在本发明的保护范围内。 [0112] The four scenarios are in line with the preset conditions for specific scenes URLs, of course, not limited to this, because of space limitations, there are many scenarios not list for yourself in this application, but application scenario can be acquired as long as the URL meets a preset condition, are within the scope of the present invention.

[0113] 步骤S306、确定网址对应的服务器; [0113] step S306, the determination server corresponding to the URL;

[0114] 其中,在获取到符合预设条件的网址后,需要确定该网址对应的服务器。 [0114] wherein, after obtaining the URL matches a preset condition, the server needs to determine a corresponding URL. 具体的服务器的具体过程为:终端通过DNS服务器查找上述网址对应的服务器的IP地址。 The specific process for a specific server: IP address of the terminal searches the URL corresponding to the server through the DNS server. 在获取到服务器的IP地址以后就相当于知道了哪个服务器是网址对应的服务器。 In obtaining the IP address of the server after the equivalent know which server is the URL corresponding server.

[0115] 步骤S307、与服务器建立传输层的连接; [0115] step S307, the transport layer connection is established with the server;

[0116] 其中,传输层的连接包括TCP连接和UDP连接。 [0116] wherein, the transport layer connection comprises a TCP and UDP connections. 在确定了网址对应的服务器以后,终端就可以与网址对应的服务器建立传输层的连接。 After determining the server corresponding to the URL after the URL of the corresponding terminal may establish a connection to a server transport layer. 在本步骤中,仅仅是建立传输层的连接,并没有发起例如HTTP的网络请求,所以在客户端与服务器建立传输层的连接时,仅会产生少量的网络数据包,从而不会造成流量上的浪费;而且,在建立传输层的连接的过程中,对内存和处理器等系统资源的占用非常少。 In this step, only the transport layer to establish a connection, such as a network and does not initiate an HTTP request, so the client and server establish a connection to the transport layer, only a small amount of generated network packet, so that the flow will not cause waste; moreover, the process of establishing a transport layer connection, the system resources occupied processor, memory and the like is very small.

[0117] 在步骤S307之后,终端在一定时间内没有接收到访问上述符合预设条件的网址对应的网站的指令时,或者终端在访问一定数量的网址中不包含上述符合预设条件的网址对应的网站时,均要断开终端与服务器建立好的传输层的连接。 When the URL [0117] After step S307, the terminal does not receive the instruction corresponding to the URL to access said website conforms to a predetermined condition within a certain time, or the terminal does not meet the preset condition including the access URL corresponding to a number of when sites are to be disconnected from the terminal and the server-established transport layer. 因为在这两种情况下,说明用户可能不会使用到预先建立的传输层的连接,虽然也可以不断开传输层的连接,但是,这些建立成功却没有被使用的传输层的连接还是会占用一定的内存,而且会消耗一部分流量的,因此,在确定建立好的传输层的连接不会被使用到时,就可以将其断开。 Because in both cases, indicating that the user may not use the transport layer connection to a pre-established, although it can not disconnect the transport layer, however, the transport layer connection is successfully established but these have not been used or will occupy certain memory, and it will consume part of the flow, and therefore, in determining the established transport layer connection is not to be used, it can be disconnected.

[0118] 步骤S308、当接收到访问网址对应的网站的指令时,利用传输层的连接向服务器发送获取网站的网页内容的网络请求。 [0118] step S308, when receiving the instruction to access the URL corresponding to the website, using the transport layer connection to the server of the acquired Web content web site requests.

[0119] 其中,终端在接收到访问上述网址对应的网站的指令时,会利用与服务器建立的传输层的连接,由于传输层的连接已经建立好,所以就省去了建立传输层的连接的时间,从而加快了终端访问网站的速度。 [0119] wherein, when the terminal receives the access command of the URLs corresponding to sites, will use the transport layer connection established with the server, since the transport layer connection has been created, so eliminating the need for connection establishment of the transport layer time, thereby speeding up the speed of the terminal to access the site.

[0120] 在图3所示的实施例中,本发明实施例提供的方案可以节省访问网站的时间,对网络和系统资源占用较少。 [0120] In the embodiment illustrated in Figure 3, the program provided in the embodiment of the present invention can save time to visit the site less network and system resources. 另外,在网络接入点切换到中间件服务器时,还可以节省访问中间件服务器的时间。 Further, when the network access point is switched to the middleware server, also saves time access middleware server.

[0121] 实施例四 [0121] Fourth Embodiment

[0122] 请参见图4所示,图4所示的为一种访问网站的装置,该装置具体可以为电脑、笔记本电脑、平板电脑或手机等设备。 [0122] Referring to FIG visit the site as a means shown in FIG. 4, FIG. 4, the apparatus may be a particular computer, laptop, tablet, or other mobile devices. 该装置提供的方案不仅可以节省访问网站的时间,而且对网络和系统资源占用较少。 The device provides a solution not only saves time access to the site, and less on network and system resources. 该装置包括: The apparatus comprising:

[0123] 获取模块11,用于获取符合预设条件的网址; [0123] obtaining module 11, configured to obtain a URL matches a preset condition;

[0124] 确定模块12,用于确定网址对应的服务器; [0124] determination module 12 for determining the URL corresponding to the server;

[0125] 建立模块13,用于与服务器建立传输层的连接; [0125] establishing module 13, a transport layer for establishing a connection with the server;

[0126] 发送模块14,用在接收到访问网址对应的网站的指令时,利用传输层的连接向服务器发送获取网站的网页内容的网络请求。 [0126] The sending module 14, upon receiving an instruction by accessing a URL corresponding to the website, using the transport layer connection to the server of the acquired Web content web site requests.

[0127] 在图4所示的实施例中,本实施例提供的装置的功能与实施例一实现的功能相对应,所以关于本实施例各个模块的功能可参见实施例一中的内容,在此不再赘述。 [0127] In the embodiment illustrated in FIG. 4, the function of the apparatus of the present embodiment is provided with a function implemented embodiment corresponds embodiment, the function of the present embodiment, on each module in one embodiment may refer to the contents of the embodiment, in this will not be repeated.

[0128] 实施例五 [0128] Embodiment V

[0129] 请参见图5所示,图5所示的为另一种访问网站的装置,该装置具体可以为电脑、笔记本电脑、平板电脑或手机等设备。 [0129] Referring to another device to access the site shown in FIG. 5, see FIG. 5, the apparatus may be a particular computer, laptop, tablet, or other mobile devices. 该装置提供的方案可以节省访问网站的时间,对网络和系统资源占用较少。 The device provides a solution to save time to visit the site, less network and system resources. 另外,在网络接入点切换到代理网关时,还可以节省访问代理网关的时间。 Further, when the network access point is switched to the proxy gateway, also saves time access to the proxy gateway. 该装置包括: The apparatus comprising:

[0130] 第一判断模块21,用于判断网络接入点是否切换到代理网关; [0130] The first determining module 21, a network access point for determining whether to switch to a proxy gateway;

[0131] 第一执行模块22,用于在网络接入点切换到代理网关时,与代理网关建立传输层的连接,在接收到访问预设网站的指令时,利用与代理网关建立的传输层的连接向代理网关发送获取预设网站的网页内容的网络请求;在网络接入点未切换到代理网关时,执行获取模块23。 [0131] The first execution module 22, when an access point in a network switch to a proxy gateway, establishing the transport layer connection to the proxy gateway, upon receiving a predetermined instruction to access the site, and using the agent gateway establishes a transport layer proxy gateway sends a connection request for obtaining the contents to a predetermined network site; when the network access point is not switched to the proxy gateway, acquiring module 23 performs.

[0132] 获取模块23,用于获取符合预设条件的网址; [0132] acquisition module 23 for acquiring the URL matches a preset condition;

[0133] 确定模块24,用于确定网址对应的服务器; [0133] The determining module 24, configured to determine a server corresponding to the URL;

[0134] 建立模块25,用于与服务器建立传输层的连接; [0134] establishment module 25, a transport layer for establishing a connection with the server;

[0135] 发送模块26,用在接收到访问网址对应的网站的指令时,利用传输层的连接向服务器发送获取网站的网页内容的网络请求。 [0135] The sending module 26, upon receiving an instruction by accessing a URL corresponding to the website, using the transport layer connection to the server of the acquired Web content web site requests.

[0136] 在图5所示的实施例中,本实施例提供的装置的功能与实施例二实现的功能相对应,所以关于本实施例各个模块的功能可参见实施例二中的内容,在此不再一一赘述。 [0136] In the embodiment illustrated in FIG. 5, the function of the apparatus of the present embodiment provided with the function of the embodiment according to the second embodiment corresponds implemented, the function of the present embodiment, on each module can be found in Example II content, in this is not detailed.

[0137] 实施例六 [0137] Sixth Embodiment

[0138] 请参见图6所示,图6所示的为又一种访问网站的装置,该装置具体可以为电脑、笔记本电脑、平板电脑或手机等设备。 [0138] Referring to Figure 6 shown, as shown in FIG. 6 a further device to access the website, the device may be a particular computer, laptop, tablet, or other mobile devices. 该装置提供的方案可以节省访问网站的时间,对网络和系统资源占用较少。 The device provides a solution to save time to visit the site, less network and system resources. 另外,在中间件服务器的压缩中转功能开启时,可以节省访问中间件服务器的时间。 In addition, when compressed transfer function middleware server is turned on, you can save time access middleware server. 该装置包括: The apparatus comprising:

[0139] 第二判断模块31,用于判断中间件服务器的压缩中转功能是否被开启; [0139] The second determination module 31 for compressing the transfer function of the determination of whether the middleware server is turned on;

[0140] 第二执行模块32,用于在中间件服务器的压缩中转功能被开启时,与中间件服务器建立传输层的连接,在接收到访问预设网站的指令时,利用与中间件服务器建立的传输层的连接向中间件服务器发送获取预设网站的网页内容的网络请求;在中间件服务器的压缩中转功能未被开启时,执行获取模块33。 [0140] The second execution module 32, when the compressed transfer function for the middleware server is turned on, and establish a transport layer connection middleware server, upon receiving an instruction to access a predetermined web site, established by using the middleware server the transport layer connection to the broker transmits the request web server acquiring network content predetermined site; compressed transfer function at the middleware server is not turned on, the implementation of access module 33.

[0141] 获取模块33,用于获取符合预设条件的网址; [0141] obtaining module 33, configured to obtain a URL matches a preset condition;

[0142] 确定模块34,用于确定网址对应的服务器; [0142] determination module 34 for determining the URL corresponding to the server;

[0143] 建立模块35,用于与服务器建立传输层的连接; [0143] establishment module 35, a transport layer for establishing a connection with the server;

[0144] 发送模块36,用在接收到访问网址对应的网站的指令时,利用传输层的连接向服务器发送获取网站的网页内容的网络请求。 [0144] The sending module 36, upon receiving an instruction by accessing a URL corresponding to the website, using the transport layer connection to the server of the acquired Web content web site requests.

[0145] 在图6所示的实施例中,本实施例提供的装置的功能与实施例三实现的功能相对应,所以关于本实施例各个模块的功能可参见实施例三中的内容,在此不再一一赘述。 [0145] In the embodiment illustrated in FIG. 6, the present embodiment provides the function of the apparatus according to a third embodiment of the function corresponding to the implemented embodiment, the function of the present embodiment, on each module can be found in three cases of the contents embodiment, the this is not detailed.

[0146] 应用例一 [0146] Application Example a

[0147] 在应用例一中,介绍的场景均为终端不通过中间件服务器或代理网关可以直接访问网站的服务器的情况,下面介绍几种可以应用本发明提供的方案的具体场景: [0147] In one application scenario embodiment, the terminal are not described by the middleware server or proxy server gateway can directly access the site, the following are a few scenarios can be applied to the present particular embodiment of the invention provides:

[0148] 场景一:用户在终端中打开浏览器时,终端接收到了打开浏览器的指令,此时,终端获取浏览器中存储的历史最常访问的网站的网址和上次退出前最后一个访问的网站的网址,假设历史最长访问的网站的网址为WWW.baidu.com,上次退出前最后一个访问的网站也为画.baidu.com,在确定了百度服务器后,与百度服务器建立传输层的连接。 [0148] Scene One: When a user opens a browser in the terminal, the terminal receives a command to open the browser, this time, the terminal obtains the URL stored in browser history and most visited site last visited before the last exit URL of the site, if the URL of the oldest visit the website for wWW.baidu.com, the last exit before the last site visited also, in determining the Baidu server, server to establish transmission and Baidu painting .baidu.com connection layer. 如果用户在终端中,打开了百度的网站,那么终端就利用预先建立的传输层的连接向百度服务器发送获取百度的网页内容的网络请求。 If the user terminal, opened Baidu site, then the terminal transmits on the use of pre-established transport layer connection to the server to acquire the network requests a web page Baidu content of Baidu. 在终端接收到百度服务器反馈的百度网站的网页数据以后,终端会对百度网站的网页数据进行加载、解析、排版、渲染等操作,最后显示在终端的浏览器上。 After the terminal receives the page data server feedback Baidu Baidu websites, data terminals will Baidu site to load, parse, layout, rendering and other operations, and finally displayed on the browser of the terminal.

[0149] 在场景一中,通过预先建立传输层的连接,终端可以快速访问百度的服务器,从而节省访问百度网站的时间。 [0149] In a scene by a pre-established transport layer connection, the terminal can quickly access Baidu server, thereby saving access time Baidu site. 另外,如果用户访问的网站不是上述最后一个访问的网站或者不是历史最常访问的网站时,则断开上述预先建立的传输层的连接。 In addition, if a user visits the site is not the last visit of the above-mentioned Web site or not history most visited sites, the connection of the transport layer above a pre-established open.

[0150] 场景二:用户在终端中已经打开了浏览器,当用户点击某个导航图标或者点击某个网页链接时,从手指接触屏幕的瞬间就立即获取该导航图标或该网页链接对应的网址,并与该网址对应的服务器建立传输层的连接。 [0150] Scene 2: user terminal has been opened in a browser when the user clicks on a navigation icon or click on a page link, immediately get the navigation icons or links to the web page corresponding to the URL from the moment the finger touching the screen and the URL corresponding to the transport layer connections to the server. 当大约200〜500ms后手指放开的时刻,终端利用该传输层的连接向该网址对应的服务器发送获取网站的网页内容的网络请求。 When the finger is released about 200~500ms time, the terminal connected to the server using the transport layer to transmit the URL corresponding to web page content acquisition request web site. 在终端接收到服务器反馈的网站的网页数据以后,终端会对该网站的网页数据进行加载、解析、排版、渲染等操作,最后显示在终端的浏览器上。 After the terminal receives feedback data server web site, the terminal will be loaded to the data page of the site, resolution, layout, rendering and other operations, and finally displayed on the browser of the terminal.

[0151] 在场景二中,通过预先建立传输层的连接,终端可以快速访问服务器,从而节省访问网站的时间。 [0151] In the second scenario, the pre-established transport layer connection, the terminal can quickly access server, thus saving time to access the site. 另外,如果用户按下时间达到长按标准需要弹出菜单操作时,则不发起后续的网络请求。 Further, if the user presses a long time to reach the standard required by the operation of the popup menu, the subsequent request is not initiated by the network.

[0152] 场景三:用户在终端中已经打开了浏览器,当用户点击某个功能界面时,获取该功能界面中最近一次访问的网站的网址以及最常访问的网站的网址,并与这些网址建立传输层的连接;当用户打开上述网址对应的网站时,终端利用该传输层的连接向该网址对应的服务器发送获取该网站的网页内容的网络请求。 [0152] Scene Three: user terminal has been opened in a browser when the user clicks on a functional interface, access to the web addresses of the interface functions in a recent visit of the site and the site's most visited, and with these URLs establish a transport layer connection; when the user opens the site corresponding to the above URL, the terminal connected to the server using the transport layer to transmit the URL corresponding to web page content acquisition request to the web site. 在终端接收到服务器反馈的网站的网页数据以后,终端会对该网站的网页数据进行加载、解析、排版、渲染等操作,最后显示在终端的浏览器上。 After the terminal receives feedback data server web site, the terminal will be loaded to the data page of the site, resolution, layout, rendering and other operations, and finally displayed on the browser of the terminal. [0153] 在场景三中,通过预先建立传输层的连接,终端可以快速访问服务器,从而节省访问网站的时间。 [0153] III in the scene, via the transport layer connection is established in advance, the terminal can quickly access server, thus saving time to access the site. 在本场景中提到的功能界面具体可以为导航、书签、应用中心等界面。 Function interface mentioned specifically in this scenario may be a navigation bookmarks, center application interface. 另夕卜,当用户不打开网页而退出该界面,或在该界面打开的网页不是上述网站,则断开该预先建立的传输层的连接。 Bu the other evening, when the user does not open the page and exit this screen, or in the open interface page is not above the site, connecting the transport layer of the pre-established disconnect.

[0154] 场景四:用户在终端中已经打开了浏览器,当用户点击网址输入界面时,获取展现在网址匹配列表中前三的网站的网址以及最近一次访问的网站的网址,并与这些网址建立传输层的连接;当用户打开上述网址对应的网站时,终端利用该传输层的连接向该网址对应的服务器发送获取该网站的网页内容的网络请求。 [0154] Scene Four: user terminal has been opened in a browser when the user clicks the URL input interface, access to web addresses to show in the first three URLs matching a list of sites and site of a recent visit, and with these URLs establish a transport layer connection; when the user opens the site corresponding to the above URL, the terminal connected to the server using the transport layer to transmit the URL corresponding to web page content acquisition request to the web site. 在终端接收到服务器反馈的网站的网页数据以后,终端会对该网站的网页数据进行加载、解析、排版、渲染等操作,最后显示在终端的浏览器上。 After the terminal receives feedback data server web site, the terminal will be loaded to the data page of the site, resolution, layout, rendering and other operations, and finally displayed on the browser of the terminal.

[0155] 在场景四中,当用户不打开网页而退出该界面,或在该界面打开的网页不是上述网站,则断开该预先建立的传输层的连接。 [0155] In scenario four, when the user exits the page without opening the interface, or the interface is not opened web site described above, the connection of the transport layer of the pre-established broken.

[0156] 场景五:用户在终端中已经打开了浏览器,当用户点击搜索界面时,获取选中的搜索引擎的网址,并与该网址建立传输层的连接;当用户使用该搜索引擎时,终端利用该传输层的连接向该搜索引擎对应的服务器发送获取该网站的网页内容的网络请求。 [0156] Scene Five: The user terminal has opened the browser, when users click on the search interface, access to the selected search engine URL, and establish a transport layer connection with the URL; when users use the search engines, terminal utilizing the transport layer connection corresponding to the search engine web server transmits the contents of the site acquires a network request. 在终端接收到服务器反馈的网站的网页数据以后,终端会对该网站的网页数据进行加载、解析、排版、渲染等操作,最后显示在终端的浏览器上。 After the terminal receives feedback data server web site, the terminal will be loaded to the data page of the site, resolution, layout, rendering and other operations, and finally displayed on the browser of the terminal.

[0157] 在场景五中,当用户切换搜索引擎时,则对新的搜索引擎预先建立传输层的连接;当用户不进行搜索而退出该搜索界面或选中的搜索引擎没有在该界面搜索使用,则断开传输层的连接。 [0157] In the fifth scenario, when a user switches a search engine, the search engine of the new transport layer connection is established in advance; when the user does not exit the search or search interface selected search engine searches not used at the interface, disconnect the transport layer connection.

[0158] 场景六:用户在终端中已经打开了浏览器,当用户打开一个网站时,获取该网站的网页内包含的全部网址;匹配这些网址对应的服务器;查找对应的网址最多的服务器;获取该服务器对应的网址,并与该网址建立传输层的连接;当用户打开上述服务器对应的网站时,终端利用该传输层的连接向该搜索引擎对应的服务器发送获取该网站的网页内容的网络请求。 [0158] Scene 6: The user terminal has opened the browser, when the user opens a website for a full URL in the pages of the site included; matching these servers corresponding to the URL; find the URL up to the corresponding server; acquiring corresponding to the URL of the server, and establishes the transport layer connection with the URL; when the user opens the site corresponding to said server, using the connection terminal corresponding to the search engine server to the transport layer transmits the acquired web page of the web site of the network requests . 在终端接收到服务器反馈的网站的网页数据以后,终端会对该网站的网页数据进行加载、解析、排版、渲染等操作,最后显示在终端的浏览器上。 After the terminal receives feedback data server web site, the terminal will be loaded to the data page of the site, resolution, layout, rendering and other operations, and finally displayed on the browser of the terminal.

[0159] 在场景六中,当用户切换到别的网站,或在该打开的网址不属于上述网站,则在2分钟后断开传输层的连接。 [0159] In the six scenes, when the user switches to another site, or the opening of the URL does not belong to the website and then after 2 minutes the transport layer connection is broken.

[0160] 应用例二 [0160] Application Example Two

[0161] 在应用例二中,介绍的场景均为终端通过中间件服务器或代理网关访问网站的服务器的情况,下面介绍这两种可以应用本发明提供的方案的具体场景: [0161] In Application Example II, scenarios are described where the terminal through a proxy server or gateway server middleware to access the site, the following description can be applied to these two specific scenarios embodiment of the present invention provides:

[0162] 场景一:用户在使用终端时将网络接入点切换到代理网关,此时,终端与代理网关预先建立传输层的连接;当用户利用终端的浏览器访问网站时,终端会使用预先建立的传输层的连接向代理网关发送网络请求,获取网站的网页数据,然后进行加载、解析、排版、渲染等操作,从而能够节省客户端访问网站的服务器的时间。 [0162] a scenario: When the user terminal using the network access point is switched to the proxy gateway, this time, the terminal and the gateway proxy previously established transport layer connection; when the user uses the browser to access the website of the terminal, the terminal will use the previously the transport layer connection established network gateway sends a proxy request to obtain web site data, and then to load, parse, layout, rendering and other operations, thereby saving time server client access site.

[0163] 在场景一中,在与代理网关建立传输层的连接以后,如果因为网络不稳定等各种因素使客户端与代理网关在传输层的连接被断开,则重新连接客户端与代理网关的传输层的连接。 [0163] In a scene which, after the transport layer connection is established with the proxy gateway, if the network is unstable because of various factors and the like client proxy gateway is disconnected in the transport layer connection, the client and the proxy reconnect connection gateway transport layer. 只有在网络接入点切换到非代理网关时,才断开客户端与代理网关的传输层的连接。 Only when the network access point is switched to the non-proxy gateway, before disconnecting the client and the proxy gateway transport layer. [0164] 场景二:当用户在终端的浏览器上开启压缩中转功能时,终端预先与中间件服务器建立传输层的连接;当用户利用终端的浏览器访问网站时,终端会使用预先建立的传输层的连接向中间件服务器发送网络请求,获取网站的网页数据,然后进行加载、解析、排版、渲染等操作,从而能够节省客户端访问网站的服务器的时间。 [0164] Scene 2: When the user turns on the compressed transfer function in the browser of the terminal, the terminal previously established transport layer connection to the middleware server; when the user uses the browser to access the website of the terminal, the terminal uses the transmission of a pre-established connection layer network middleware server sends request to obtain web site data, and then to load, parse, layout, rendering and other operations, thereby saving time server client access site.

[0165] 在场景二中,在与中间件服务器建立传输层的连接以后,如果因为网络不稳定等各种因素使客户端与中间件服务器在传输层的连接被断开,则重新连接客户端与中间件服务器的传输层的连接。 [0165] In the second scenario, the connection is established in the transport layer and the middleware server, if the network is unstable due to various factors like the middleware server for the client and the connection is disconnected in the transport layer, the client reconnect transport layer connection with the middleware server. 只有在关闭压缩中转功能时,才断开客户端与中间件服务器的传输层的连接。 Only in the closed compressed transfer function, before disconnecting the client and the middleware server transport layer.

[0166] 需要说明的是,图1至图6所示的实施例只是本发明所介绍的优选实施例,本领域技术人员在此基础上,完全可以设计出更多的实施例,因此不在此处赘述。 [0166] Incidentally, FIG. 1 to FIG. 6 in the embodiment shown is only preferred embodiments of the invention described, those skilled in the art based on this, can design more embodiments, therefore not at repeat.

[0167] 本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。 [0167] Those of ordinary skill in the art may be aware, incorporated herein disclosed units and algorithm steps described in the respective exemplary embodiments, it is possible to incorporate electronic hardware, computer software and electronic hardware, or be implemented. 这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。 Whether these functions are performed by hardware or software depends upon the particular application and design constraints of the technical solutions. 专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。 Professional technical staff may use different methods for each specific application to implement the described functionality, but such implementation should not be considered outside the scope of the present invention.

[0168] 所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 [0168] Those skilled in the art may clearly understand that, for convenience and brevity of description, specific working process of the foregoing system, apparatus, and unit may refer to the corresponding process in the foregoing method embodiments, not described herein again .

[0169] 在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。 [0169] In several embodiments provided herein present embodiment, it should be understood that the system, apparatus and method disclosed may be implemented in other manners. 例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。 For example, the described apparatus embodiments are merely illustrative of, e.g., cell division is merely logical function division, there may be other division in actual implementation, for example, a plurality of units or components may be combined or integrated to another system, or some features may be ignored or not performed. 另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 Another point, displayed or coupling or direct coupling or communication between interconnected in question may be through some interface, device, or indirect coupling or communication connection unit, may be electrical, mechanical, or other forms.

[0170] 作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 [0170] As the unit may be separate components or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be located in one place, or may be distributed over a plurality of network units . 可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 You can select some or all of the units according to actual needs to achieve the object of the solutions of the embodiments.

[0171] 另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。 [0171] Additionally, functional units may be integrated in various embodiments of the present invention in a processing unit, separate units may be physically present, may be two or more units are integrated into one unit.

[0172] 功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。 [0172] When the functions are implemented as an independent product sold or used in the form of a software functional unit may be stored in a computer-readable storage medium. 基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例方法的全部或部分步骤。 Based on such understanding, the technical solutions of the present invention per se or contributing to the prior art or part of the technical solutions may be embodied in a software product, which computer software product is stored in a storage medium, comprising several instructions that enable a computer device (may be a personal computer, a server, or network device) or (processor) to perform all or part of the steps of the method of various embodiments of the present invention. 而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM, Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 The storage medium includes: U disk, mobile hard disk, a read-only memory (ROM, Read-OnlyMemory), a random access various memory (RAM, Random Access Memory), a magnetic disk, or an optical medium can store program codes.

[0173] 以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 [0173] above are merely specific embodiments of the present invention, but the scope of the present invention is not limited thereto, any skilled in the art in the art within the technical scope of the present invention is disclosed, variations or replacement that can be easily, It shall fall within the scope of the present invention. 因此,本发明的保护范围应以权利要求的保护范围为准。 Accordingly, the scope of the present invention should be defined by the scope of the claims.

Claims (10)

1.一种访问网站的方法,其特征在于,包括: 获取符合预设条件的网址; 确定所述网址对应的服务器; 与所述服务器建立传输层的连接; 当接收到访问所述网址对应的网站的指令时,利用所述传输层的连接向所述服务器发送获取所述网站的网页内容的网络请求。 1. A method of access to the site, characterized by comprising: obtaining a URL matches a preset condition; determining the URL corresponding to the server; establishing a transport layer connection with the server; when receiving the access corresponding to the URL instruction site, by the connection of the transport layer transmits an acquisition request for the page content of the web site to the server.
2.根据权利要求1所述的访问网站的方法,其特征在于,所述获取符合预设条件的网址之前,还包括: 当所述网络接入点切换到代理网关时,与所述代理网关建立传输层的连接,在接收到访问预设网站的指令时,利用与所述代理网关建立的传输层的连接向所述代理网关发送获取所述预设网站的网页内容的网络请求; 当所述网络接入点未切换到代理网关时,继续执行所述获取符合预设条件的网址的步骤。 2. The method according to claim 1 to access the site, wherein, said acquiring URL matches a preset condition, the method further comprising: when the network access point is switched to the proxy gateway, the gateway agent establishing a transport layer connection upon receiving a predetermined instruction to access the site, using the transport layer to establish a connection with the proxy gateway transmits to the proxy gateway obtains the default page of the web site content request; when the when the said network access point is switched to the proxy gateway, proceed to the step of acquiring the URL matches a preset condition.
3.根据权利要求1所述的访问网站的方法,其特征在于,所述获取符合预设条件的网址之前,还包括: 当所述中间件服务器的压缩中转功能被开启时,与所述中间件服务器建立传输层的连接,在接收到访问预设网站的指令时,利用与所述中间件服务器建立的传输层的连接向所述中间件服务器发送获取所述预设网站的网页内容的网络请求; 当所述中间件服务器的压缩中转功能未被开启时,继续执行所述获取符合预设条件的网址的步骤。 3. The method according to claim 1 to access the site, wherein, said acquiring URL matches a preset condition, the method further comprising: when the compression transfer function of the middleware server is turned on, and the intermediate member transport layer connections to the server, upon receiving a predetermined instruction to access the site, using the transport layer connection established with the middleware server middleware server sends the web content obtaining the preset network site request; when the compression transfer function of the middleware server is not opened, to continue to perform the step of acquiring the URL matches a preset condition.
4.根据权利要求1所述的访问网站的方法,其特征在于,所述获取符合预设条件的网址,具体为: 当接收到启动浏览器的指令时,获取符合预设条件的网址。 4. The method according to claim 1 to access the site, wherein, said acquiring URL matches a preset condition, specifically: When receiving the instruction for starting the browser acquires URL matches a preset condition.
5.根据权利要求1所述的访问网站的方法,其特征在于,所述获取符合预设条件的网址,具体为: 当接收到选中网站链接的指令时,获取所述网站链接的网址。 The method of accessing the site according to claim 1, wherein said acquiring URL matches a preset condition, specifically: when receiving instruction to the selected site links, acquiring the URL of the website link.
6.根据权利要求1所述的访问网站的方法,其特征在于,所述获取符合预设条件的网址,具体为: 当接收到进入浏览器的预设界面的指令时,获取所述预设界面中满足预设条件的网址。 6. The method according to claim 1 to access the site, wherein, said acquiring URL matches a preset condition, specifically: When receiving an instruction to enter the default browser interface acquires the preset interface to meet the preconditions URL.
7.根据权利要求1所述的访问网站的方法,其特征在于,所述获取符合预设条件的网址,具体为: 当接收到进入目标网站的指令时,获取所述目标网站中满足预设条件的网站链接的网址。 7. The method according to claim 1 to access the site, wherein, said acquiring URL matches a preset condition, specifically: When receiving an instruction to enter the target site, obtaining the target site meets a preset URL web link conditions.
8.一种访问网站的装置,其特征在于,包括: 获取模块,用于获取符合预设条件的网址; 确定模块,用于确定所述网址对应的服务器; 建立模块,用于与所述服务器建立传输层的连接; 发送模块,用在接收到访问所述网址对应的网站的指令时,利用所述传输层的连接向所述服务器发送获取所述网站的网页内容的网络请求。 A device to access the site, characterized by comprising: an obtaining module, configured to obtain a URL matches a preset condition; determining means for determining the URL corresponding to the server; establishing module for communicating with the server establish a transport layer connection; transmitting module, upon receiving the instruction by accessing the site corresponding to the URL, by the connection of the transport layer transmits an acquisition request for the page content of the web site to the server.
9.根据权利要求8所述的访问网站的装置,其特征在于,还包括: 第一判断模块,用于判断网络接入点是否切换到代理网关; 第一执行模块,用于在所述网络接入点切换到代理网关时,与所述代理网关建立传输层的连接,在接收到访问预设网站的指令时,利用与所述代理网关建立的传输层的连接向所述代理网关发送获取所述预设网站的网页内容的网络请求;在网络接入点未切换到代理网关时,执行所述获取模块。 9. The apparatus of claim 8 according to claim access to the site, characterized in that, further comprising: a first determining module configured to determine whether to switch to a network access point proxy gateway; a first execution module for the network when the access point is switched to the proxy gateway, establishing the transport layer connection with the proxy gateway, upon receiving an instruction to access a predetermined site by the transport layer to establish a connection with the proxy gateway transmits to the proxy gateway obtains the default page of the web site content request; when the network access point is not switched to the proxy gateway, performing the acquisition module.
10.根据权利要求8所述的访问网站的装置,其特征在于,还包括: 第二判断模块,用于判断中间件服务器的压缩中转功能是否被开启; 第二执行模块,用于在所述中间件服务器的压缩中转功能被开启时,与所述中间件服务器建立传输层的连接,在接收到访问预设网站的指令时,利用与所述中间件服务器建立的传输层的连接向所述中间件服务器发送获取所述预设网站的网页内容的网络请求;在所述中间件服务器的压缩中转功能未被开启时,执行所述获取模块。 10. The apparatus according to claim 8 visit claims, characterized in that, further comprising: a second judging module, for determining whether the compressed transfer function is turned middleware server; a second execution module, for the compression transfer function is turned on when the middleware server, the transport layer connection established with the middleware server, upon receiving an access site preset instruction, using the established transport layer connection to the middleware server middleware server sends obtain the default page content site web request; when compressed transfer function of the middleware server is not turned on, the implementation of the acquisition module.
CN201310744195.6A 2013-12-30 2013-12-30 Method and apparatus for accessing a Web site CN103729440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310744195.6A CN103729440B (en) 2013-12-30 2013-12-30 Method and apparatus for accessing a Web site

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201310744195.6A CN103729440B (en) 2013-12-30 2013-12-30 Method and apparatus for accessing a Web site
PCT/CN2014/081026 WO2015014189A1 (en) 2013-08-02 2014-06-27 Method and device for accessing website
US14/909,629 US20160191522A1 (en) 2013-08-02 2014-06-27 Method and apparatus for accessing website
US15/934,021 US20180212963A1 (en) 2013-08-02 2018-03-23 Method and apparatus for accessing website

Publications (2)

Publication Number Publication Date
CN103729440A true CN103729440A (en) 2014-04-16
CN103729440B CN103729440B (en) 2017-09-15

Family

ID=50453514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310744195.6A CN103729440B (en) 2013-12-30 2013-12-30 Method and apparatus for accessing a Web site

Country Status (1)

Country Link
CN (1) CN103729440B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015014189A1 (en) * 2013-08-02 2015-02-05 优视科技有限公司 Method and device for accessing website
CN105488065A (en) * 2014-09-19 2016-04-13 小米科技有限责任公司 Webpage access method and device, and terminal
CN105989070A (en) * 2015-02-10 2016-10-05 阿里巴巴集团控股有限公司 Method and system for requesting data from middleware and middleware client
WO2018133772A1 (en) * 2017-01-22 2018-07-26 腾讯科技(深圳)有限公司 Method, device, storage medium, and electronic device for obtaining webpage resources

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060059125A1 (en) * 2004-09-16 2006-03-16 International Business Machines Corporation Systems, methods, and media for managing multiple sessions for a user of a portal
CN101807180A (en) * 2009-02-16 2010-08-18 宏达国际电子股份有限公司 Mobile electric device and pretreatment and display method of web page thereof
CN102271123A (en) * 2010-06-01 2011-12-07 阿里巴巴集团控股有限公司 A communication method, system and device
CN102647481A (en) * 2012-03-31 2012-08-22 奇智软件(北京)有限公司 Device and method for accessing preset network address

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060059125A1 (en) * 2004-09-16 2006-03-16 International Business Machines Corporation Systems, methods, and media for managing multiple sessions for a user of a portal
CN101807180A (en) * 2009-02-16 2010-08-18 宏达国际电子股份有限公司 Mobile electric device and pretreatment and display method of web page thereof
CN102271123A (en) * 2010-06-01 2011-12-07 阿里巴巴集团控股有限公司 A communication method, system and device
CN102647481A (en) * 2012-03-31 2012-08-22 奇智软件(北京)有限公司 Device and method for accessing preset network address

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015014189A1 (en) * 2013-08-02 2015-02-05 优视科技有限公司 Method and device for accessing website
CN105488065A (en) * 2014-09-19 2016-04-13 小米科技有限责任公司 Webpage access method and device, and terminal
CN105989070A (en) * 2015-02-10 2016-10-05 阿里巴巴集团控股有限公司 Method and system for requesting data from middleware and middleware client
WO2018133772A1 (en) * 2017-01-22 2018-07-26 腾讯科技(深圳)有限公司 Method, device, storage medium, and electronic device for obtaining webpage resources

Also Published As

Publication number Publication date
CN103729440B (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CA2846389C (en) Remote browsing session management
US9253284B2 (en) Historical browsing session management
US8849802B2 (en) Historical browsing session management
US20130080577A1 (en) Historical browsing session management
US20080289029A1 (en) Method and system for continuation of browsing sessions between devices
US9167054B2 (en) Remote browsing session management
US8914514B1 (en) Managing network based content
US8577963B2 (en) Remote browsing session between client browser and network based browser
US9621406B2 (en) Remote browsing session management
US20140380184A1 (en) Remote browsing session management
US9866615B2 (en) Remote browsing session management
CA2840416C (en) Remote browsing session management
US9037975B1 (en) Zooming interaction tracking and popularity determination
EP2649502A2 (en) Methods and systems for a remote desktop session utilizing a http handler and a remote desktop client common interface
CN100535901C (en) Dynamic web page updating method and system
WO2009012461A1 (en) Mobile content service
CN102857579A (en) Information processing method, device, terminal and server
CN101977228B (en) Off-line downloading method for mobile communication equipment terminal and system thereof
Zhao et al. Reducing the delay and power consumption of web browsing on smartphones in 3G networks
CN101178717A (en) Method for adaptation processing web page and web page adaptation device
EP2649499B1 (en) Methods and systems for conducting a remote desktop session via html that supports a 2d canvas and dynamic drawing
CN102710748B (en) Data acquisition method, system and device
CN101777066B (en) Web page rendering and browsing system for mobile communication equipment terminals and application method thereof
US9565265B2 (en) Method and apparatus for automatically optimizing the loading of images in a cloud-based proxy service
EP2649532B1 (en) Methods and systems for remote desktop session redrawing via http headers

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
COR Change of bibliographic data
GR01