WO2015161622A1 - Webpage information storing method and data card - Google Patents

Webpage information storing method and data card Download PDF

Info

Publication number
WO2015161622A1
WO2015161622A1 PCT/CN2014/087219 CN2014087219W WO2015161622A1 WO 2015161622 A1 WO2015161622 A1 WO 2015161622A1 CN 2014087219 W CN2014087219 W CN 2014087219W WO 2015161622 A1 WO2015161622 A1 WO 2015161622A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
information
data card
webpage information
access request
Prior art date
Application number
PCT/CN2014/087219
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2015161622A1 publication Critical patent/WO2015161622A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of webpage information preservation technology, and in particular, to a webpage information storage method and a data card.
  • the data card can provide users with the function of accessing the network. Due to the portability of the data card, it is widely used, allowing users to access the network through terminal devices such as PCs anytime and anywhere.
  • the main technical problem to be solved by the present invention is to provide a webpage information saving method and a data card.
  • the user cannot use the previously saved webpage information after replacing the computer or reinstalling the system.
  • a method for saving webpage information comprising:
  • the data card obtains a webpage access request
  • the data card saves the webpage information locally.
  • the webpage information includes a webpage, a title, and a time of the webpage.
  • the step of acquiring, by the data card, the webpage information of the webpage requested by the webpage access request comprises:
  • the data card automatically acquires webpage information of a webpage requested by the webpage access request.
  • the data card before the data card acquires the webpage information of the webpage requested by the webpage access request, the data card further includes:
  • the step of the data card saving the webpage information locally includes:
  • the web page information is saved in a history database and/or a favorites database of the data card.
  • the step of saving the webpage information in the history database and/or the favorite database comprises:
  • the webpage access request is transmitted by using a hypertext transfer protocol message.
  • a data card includes: an acquisition request module, a webpage information module, and a storage module, wherein:
  • the obtaining request module is configured to: obtain a webpage access request
  • the acquiring webpage information module is configured to: obtain webpage information of a webpage requested by the webpage access request;
  • the storage module is configured to: store the webpage information locally on the data card.
  • the webpage information includes a webpage, a title, and a time of the webpage.
  • the data card further includes a determining module, where:
  • the determining module is configured to: before the data card acquires webpage information of the webpage requested by the webpage access request, determine whether the webpage access request is an internet webpage access request, and if yes, notify the acquiring webpage information
  • the module acquires webpage information of the webpage requested by the webpage access request.
  • the storage module includes a history storage submodule and/or a favorite storage submodule, wherein:
  • the history storage submodule is configured to: save the webpage information in a history database of the data card;
  • the favorite storage submodule is configured to: save the webpage information in a bookmark database of the data card.
  • the favorite storage submodule further includes a determining submodule, wherein:
  • the determining sub-module is configured to: determine whether the same webpage information as the webpage information is saved in the bookmark database, and if not, let the bookmark storage sub-module store the webpage information in the favorite database in.
  • the method for saving webpage information and the data card according to the embodiment of the present invention can solve the problem that the webpage information saved before the user cannot use the computer after replacing the computer or reinstalling the system.
  • the method for saving webpage information in the embodiment of the present invention includes: the data card acquires a webpage access request; the datacard acquires the webpage information requested by the webpage access request to access the webpage; and the datacard saves the webpage information locally.
  • the method provided by the invention saves the information of the webpage accessed by the user in the data card, so that the user's use of the saved webpage information is no longer restricted by the computer.
  • the webpage information saved in the data card can be used to initiate access to the saved webpage, greatly Convenient for the user.
  • FIG. 1 is a schematic flowchart of a method for saving webpage information according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of establishing a number of saved webpage information corresponding to a user according to Embodiment 1 of the present invention; According to the method of the library;
  • FIG. 3 is a schematic flowchart of a method for saving webpage information according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic flowchart of a method for saving webpage information according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic structural diagram of a data card according to Embodiment 4 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • This embodiment provides a method for saving webpage information.
  • the method specifically includes:
  • Step S101 The data card acquires a webpage access request
  • Step S102 The data card acquires the webpage information of the webpage requested by the webpage access request, and the webpage information includes the webpage of the webpage; the webpage information may further include: a title of the webpage, a type of the webpage, a time of visiting the webpage, and the like.
  • the data card can automatically obtain the webpage information of the webpage requested by the webpage access request, that is, the data card obtains the information of the webpage accessed by the user regardless of whether the user needs it or not.
  • the user can perform switch setting through the setting interface of the data card (for example, the WEB UI of the data card), and determine whether the data card automatically acquires the webpage information of the webpage requested by the webpage access request.
  • Step S103 The data card saves the webpage information locally.
  • the webpage information stored in the data card may be classified and stored, for example, before the data card saves the webpage information locally, the history database and the collection are created in the data card.
  • Folder database save web page information in the history database and / or favorites database.
  • the history database information for saving all web pages visited by the user, whether or not the same web page information is stored in the history database.
  • the bookmark database in the case that the data card automatically acquires the information of the webpage, the data card acquires the webpage information when the user initiates the request for accessing the webpage, and saves it in the data card, which is distinguished from the history.
  • Determining whether the same webpage information as the obtained webpage information is stored in the bookmark database may only determine whether the main content in the webpage information is the same, for example, only determining whether the webpage and/or the title in the webpage information are the same, without requiring a webpage All the information in the information is the same, and it is determined that the two webpage information are the same. For example, if the browsing time in the two webpage information is different, and the title and the webpage are the same, it is determined that the two webpage information are the same.
  • the method provided in this embodiment is applied when the user accesses the network through the data card, or in the case where the data card is inserted on the online device used by the user.
  • the data card obtains a webpage access request initiated by the user, including TCP and UDP.
  • the user-initiated web page access request can be divided into two large categories, one is an internet webpage access request, and the other is a webpage access request of the data card's own gateway.
  • the solution protected in this embodiment includes: (1) whether the Internet webpage access request or the webpage access request of the data card's own gateway requests the webpage information requested by the webpage access request to access the webpage; (2) only accesses the webpage
  • the request is an Internet webpage access request
  • the webpage information requested by the webpage access request to access the webpage is obtained, and the webpage information is saved in the datacard.
  • the webpage access request is a request for the data card's own gateway
  • the corresponding webpage may be displayed to the user according to the webpage access request of the user.
  • the webpage information stored in the data card can also be displayed on the webpage of the data card's own gateway for the user to operate on the webpage information, such as adding, deleting, exporting, and exporting history records.
  • the way to obtain the webpage information can be obtained by directly extracting the web address of the webpage requested by the user, or by parsing the datagram requested by the browser.
  • HTTP Hypertext Transfer Protocol
  • the data transfer protocol of the web document is transmitted over the Internet. Therefore, the HTTP message is generally parsed to obtain URL information.
  • the following is an example of parsing an HTTP packet: after the data card receives the request from the browser, it parses the data packet requested by the browser, that is, the HTTP packet, according to HTTP.
  • Protocol parsing HTTP request message Header information extracting information such as HOST field (host field) and Request-Line (request message start line), and parsing URI (Uniform Resource Identifier) data from Request-Line, Combine the URI and HOST field combinations to form a URL. Further, if you want to obtain more information about the webpage, you can parse the response message returned by the Internet to the data card after receiving the request message initiated by the browser, and set the Date (date) and Content-type (content) in the HTTP header. Information such as type), ⁇ title> ⁇ /title> (title), etc.
  • the webpage information may be filtered before the webpage information is saved in the data card, and the suffix is named .jpg/.png/.gif/.js/ URLs such as .css store only web page information with URL suffixes in hypertext markup language and/or text on the data card. It is also possible to filter out the HTTP request that exists in the Referer.
  • the referer is also an item in the header information of the HTTP request message. If it is used, it will be in the HTTP header information; if it is not used, it will not appear. This is not required for HTTP header information. Because the HTTP request with the Referer item is usually a request for some sub-pages linked by the main page, these sub-pages are of little use to us, so filtering them out is also to filter out some messy HTTP requests.
  • a database corresponding to the user may be established in the data card for storing webpage information saved by different users.
  • the webpage information accessed by the same user is saved in a folder corresponding to the user.
  • the following is an example to explain how to create a database corresponding to the user in the data card. Please refer to Figure 2, the specific process is as follows:
  • Step S201 Query the information of the user who has accessed the data card, obtain the MAC (Medium/Media Access Control) address of the user, and establish a MAC address mapping table in the data card. If there is a temporary access user, add a new record in the MAC address mapping table;
  • MAC Medium/Media Access Control
  • Step S202 setting a dedicated folder storage for the above user, and adding corresponding MAC address and file name mapping information in the MAC address mapping table.
  • the administrator user can view through the setting interface provided by the data card (for example, the web page WEB UI of the data card's own gateway), and merge at the same time, so that the same MAC address can correspond to the same folder. If the corresponding folder already exists, the process ends, otherwise go to step S303.
  • Step S203 Create a file for saving the favorites and a text for saving the browsing record in the above folder. Pieces.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • This embodiment provides a method for saving webpage information. Referring to FIG. 3, the method includes the following steps:
  • Step S301 start;
  • Step S302 The data card acquires a webpage access request sent by the browser, including TCP and UDP, and then performs preliminary parsing of the packet.
  • Step S303 Determine whether the webpage access request sent by the browser is a webpage requesting access to the internet. If yes, go to S305 for processing; if no, determine that it is a web page requesting access to the data card's own gateway, step S304 is performed;
  • Step S304 processing by the web server inside the data card, the web server parses the HTTP message, and displays the corresponding page; and then receives an operation request initiated by the user on the displayed information, where the operation request is also an HTTP request, and the request includes the request.
  • the method such as POST, GET
  • the requested data content such as adding, deleting
  • step S313 is performed;
  • Step S305 Parsing the data packet requested by the browser
  • Step S306 determining the result of parsing the message in S305, if the message is not an HTTP request, the process ends, step S313 is performed; if the message is an HTTP request, then the process proceeds to S307;
  • Step S307 Parsing the header information of the HTTP request packet according to the HTTP protocol, extracting information such as HOST and Request-Line, and parsing the URI data;
  • Step S308 Send the request message initiated by the browser to the Internet
  • Step S309 Parsing the response message returned by the network to the data card, parsing the information such as Date and Content-type in the HTTP header, and parsing the returned data content to obtain the ⁇ title> ⁇ /title> (title) node.
  • Step S310 judging whether the URL address information has been saved in the bookmark database according to the information such as Host, URI, Content-type, etc. If it has been saved, the process proceeds to S311, otherwise, the process proceeds to S312.
  • Step S311 If the URL is already saved in the favorite database, then we only need to save the URL to the historical browsing record database;
  • Step S312 If the URL is not saved in the favorites, the title and URL site information is saved to the favorites database and the historical browsing database, and is used for displaying the user in the step S303 and allowing the user to add, modify, and export the operations. ;
  • Step S313 End.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • This embodiment provides a method for saving webpage information.
  • a detailed description of how to obtain webpage information is provided. Referring to FIG. 4, the specific process is as follows:
  • Step S401 The user browses the webpage
  • Step S402 The data card acquires the webpage access request sent by the browser, obtains the TCP and UDP packets initiated by the request, performs packet analysis and parsing, obtains the MAC address of the terminal that initiates the request, and queries whether the MAC address is in the folder mapping table. Corresponding folder, if not, step S404 is performed, if yes, step S403 is performed;
  • Step S403 Create a new folder corresponding to the MAC address, and then perform step S404;
  • Step S404 determining whether the webpage access request is a webpage access request for accessing data of the Internet, if not, the flow ends, and if so, executing step S405;
  • Step S405 parsing the HOST, Requist-Line, and Referer information in the HTTP request header, and parsing the URI (uniform resource identifier) in the Requist-Line information, and executing step S406;
  • Step S406 Analyze the HTTP request header data. First, the Referer's valued HTTP request is discarded. Then filter the URL (uniform resource locator) and discard the URI with the suffix .jpg/.png/.gif/.js/.css. The above discarding only does not further analyze and save the information of the URL site, instead of no longer initiating a data request to the network, step S407 is performed;
  • Step S407 If the URL site is not discarded, we will parse the network response data of the HTTP request. First parse the contents of the Date and Content-type in response to the HTTP header, if The value of Content-type is text/html. We concatenate the requested Host and URI combination to form a complete URL. Then parse the HTTP content of the response and read the contents of the ⁇ title> ⁇ /title> node. Finally, the complete web address, access time, and title information are combined to form a complete web page information;
  • Step S408 Save the webpage information.
  • the MAC address of the request obtained in step S402 query the folder corresponding to the MAC address in the folder mapping table, and then check whether the site information is in the favorite folder in the folder, if not, save it, there is Then do not save. Finally, the information is added to the history browsing record;
  • Step S409 End.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • the embodiment provides a data card, as shown in FIG. 5, including: an acquisition request module 51, a webpage information module 52, and a storage module 53;
  • the obtaining request module 51 is configured to: obtain a webpage access request
  • the obtaining webpage information module 52 is configured to: obtain webpage information of the webpage requested by the webpage access request, and the webpage information includes a webpage of the webpage;
  • the storage module 53 is configured to store webpage information locally on the data card.
  • the data card further includes a judging module 54 configured to determine whether the webpage access request is an internet webpage access request before acquiring the webpage information requested by the webpage information module 52 to obtain the webpage access request, and if so, notify the webpage of the webpage
  • the information module 52 obtains webpage information of the webpage requested by the webpage access request.
  • the storage module 53 includes a history storage submodule 531 and/or a bookmark storage submodule 532, and the history storage submodule 531 is configured to: save webpage information in a history database of the data card; and set the bookmark storage submodule 532 to : Save the web page information in the data folder's favorites database.
  • the favorites storage sub-module 532 further includes a judging sub-module configured to: determine whether the webpage information having the same webpage information is stored in the bookmark database, and if not, let the bookmark storage sub-module 532 store the webpage information in the In the Favorites database.
  • the method for saving webpage information in the embodiment of the present invention includes: the data card acquires a webpage access request; the datacard acquires the webpage information requested by the webpage access request to access the webpage; and the datacard saves the webpage information locally.
  • the method provided by the invention saves the information of the webpage accessed by the user in the data card, so that the user's use of the saved webpage information is no longer restricted by the computer. After the user replaces the computer or reinstalls the system, as long as the data card is inserted on the new computer or the computer after reinstalling the system, the webpage information saved in the data card can be used to initiate access to the saved webpage, greatly Convenient for the user. Therefore, the present invention has strong industrial applicability.

Abstract

A webpage information storing method and a data card, capable of solving in the related art the incapability of a user to use previously stored webpage information after a computer replacement or system reinstallation. The webpage information storing method comprises: a data card acquires a webpage access request; the data card acquires webpage information of a webpage for which access is requested by the webpage access request; and, the data card stores locally the webpage information. By storing in the data card the information of a webpage that a user accessed, the method of the described technical solution allows the user to no longer be restricted to a computer in using the stored webpage information. When the user has the computer replaced or system reinstalled, simply by inserting the data card into the new computer or the computer having a reinstalled system, the webpage information stored in the data card can be used to launch an operation for accessing a stored webpage, thus providing the user with great convenience.

Description

一种网页信息保存方法、数据卡Method for saving webpage information, data card 技术领域Technical field
本发明涉及网页信息保存技术领域,特别涉及一种网页信息保存方法、数据卡。The present invention relates to the field of webpage information preservation technology, and in particular, to a webpage information storage method and a data card.
背景技术Background technique
随着3G/4G网络不断发展,移动通信速率不断提高,数据业务的类型也相应增多,传统的有线宽带不再是数据业务的唯一选择。数据卡作为一种移动通讯终端,能够为用户提供接入网络的功能,由于数据卡的便携性,其得到了广泛应用,让用户可以随时随地通过PC等终端设备接入网络。As 3G/4G networks continue to evolve, mobile communication rates continue to increase, and the types of data services increase accordingly. Traditional wired broadband is no longer the only choice for data services. As a mobile communication terminal, the data card can provide users with the function of accessing the network. Due to the portability of the data card, it is widely used, allowing users to access the network through terminal devices such as PCs anytime and anywhere.
网络的不断发展改变了人们的生活方式,新闻资讯、电子邮件、网络购物等应用的不断发展使得人们的生活丰富多彩、快捷便利。因使用的网页繁多,所以用户一般都会将经常使用或喜欢的网站保存在浏览器的收藏夹中,这样存在的问题就是:当用户使用他人电脑时或者自己重装电脑系统后,就无法获取自己的浏览记录和收藏夹站点,更甚者会使得这些记录全部丢失。如果用户需要使用一个重要网页,却又忘记了这个网页的网址,并且也没有记录在纸质笔记本上,那么用户就无法访问这个网页,这样会给用户造成很大的不便。The continuous development of the Internet has changed people's lifestyles. The continuous development of news, email, online shopping and other applications has made people's lives colorful, fast and convenient. Due to the variety of web pages used, users generally save websites that they often use or like in their browser favorites. The problem is that when users use other people's computers or reinstall their own computer systems, they cannot get themselves. The browsing history and favorites sites, and even more so, will make all of these records lost. If the user needs to use an important webpage but forgets the webpage of the webpage and does not record it on a paper notebook, then the user cannot access the webpage, which will cause great inconvenience to the user.
发明内容Summary of the invention
本发明要解决的主要技术问题是,提供一种网页信息保存方法、数据卡。解决相关技术中,用户在更换电脑或者重装系统之后,无法使用之前保存的网页信息的问题。The main technical problem to be solved by the present invention is to provide a webpage information saving method and a data card. In the related art, the user cannot use the previously saved webpage information after replacing the computer or reinstalling the system.
为解决上述技术问题,采用如下技术方案:In order to solve the above technical problems, the following technical solutions are adopted:
一种网页信息保存方法,包括:A method for saving webpage information, comprising:
数据卡获取网页访问请求;The data card obtains a webpage access request;
所述数据卡获取所述网页访问请求所请求访问的网页的网页信息; Obtaining, by the data card, webpage information of a webpage requested by the webpage access request;
所述数据卡将所述网页信息保存在本地。The data card saves the webpage information locally.
可选地,所述网页信息包括网页的网址、标题和时间。Optionally, the webpage information includes a webpage, a title, and a time of the webpage.
可选地,所述数据卡获取所述网页访问请求所请求访问的网页的网页信息的步骤包括:Optionally, the step of acquiring, by the data card, the webpage information of the webpage requested by the webpage access request comprises:
所述数据卡自动获取所述网页访问请求所请求访问的网页的网页信息。The data card automatically acquires webpage information of a webpage requested by the webpage access request.
可选地,所述数据卡获取所述网页访问请求所请求访问的网页的网页信息之前,还包括:Optionally, before the data card acquires the webpage information of the webpage requested by the webpage access request, the data card further includes:
判断所述网页访问请求是否为互联网网页访问请求,如是,则获取所述网页访问请求所请求访问的网页的网页信息。Determining whether the webpage access request is an internet webpage access request, and if yes, acquiring webpage information of the webpage requested by the webpage access request.
可选地,所述数据卡将所述网页信息保存在本地的步骤包括:Optionally, the step of the data card saving the webpage information locally includes:
将所述网页信息保存在所述数据卡的历史记录数据库和/或收藏夹数据库中。The web page information is saved in a history database and/or a favorites database of the data card.
可选地,将所述网页信息保存在所述历史记录数据库和/或收藏夹数据库中的步骤包括:Optionally, the step of saving the webpage information in the history database and/or the favorite database comprises:
判断所述收藏夹数据库中是否保存有与所述网页信息相同的网页信息,如果没有,则存储在所述收藏夹数据库中,如果有,则不存储在所述收藏夹数据库中。It is determined whether the same webpage information as the webpage information is stored in the bookmark database, if not, stored in the bookmark database, and if not, is not stored in the bookmark database.
可选地,所述网页访问请求采用超文本传输协议报文进行传输。Optionally, the webpage access request is transmitted by using a hypertext transfer protocol message.
一种数据卡,包括:获取请求模块、获取网页信息模块和存储模块,其中:A data card includes: an acquisition request module, a webpage information module, and a storage module, wherein:
所述获取请求模块设置成:获取网页访问请求;The obtaining request module is configured to: obtain a webpage access request;
所述获取网页信息模块设置成:获取所述网页访问请求所请求访问的网页的网页信息;The acquiring webpage information module is configured to: obtain webpage information of a webpage requested by the webpage access request;
所述存储模块设置成:将所述网页信息存储在所述数据卡本地。The storage module is configured to: store the webpage information locally on the data card.
可选地,所述网页信息包括网页的网址、标题和时间。Optionally, the webpage information includes a webpage, a title, and a time of the webpage.
可选地,所述数据卡还包括判断模块,其中: Optionally, the data card further includes a determining module, where:
所述判断模块设置成:在所述数据卡获取所述网页访问请求所请求访问的网页的网页信息之前,判断所述网页访问请求是否为互联网网页访问请求,如是,则通知所述获取网页信息模块获取所述网页访问请求所请求访问的网页的网页信息。The determining module is configured to: before the data card acquires webpage information of the webpage requested by the webpage access request, determine whether the webpage access request is an internet webpage access request, and if yes, notify the acquiring webpage information The module acquires webpage information of the webpage requested by the webpage access request.
可选地,所述存储模块包括历史记录存储子模块和/或收藏夹存储子模块,其中:Optionally, the storage module includes a history storage submodule and/or a favorite storage submodule, wherein:
所述历史记录存储子模块设置成:将所述网页信息保存在所述数据卡的历史记录数据库中;The history storage submodule is configured to: save the webpage information in a history database of the data card;
所述收藏夹存储子模块设置成:将所述网页信息保存在所述数据卡的收藏夹数据库中。The favorite storage submodule is configured to: save the webpage information in a bookmark database of the data card.
可选地,所述收藏夹存储子模块还包括判断子模块,其中:Optionally, the favorite storage submodule further includes a determining submodule, wherein:
所述判断子模块设置成:判断所述收藏夹数据库中是否保存有与所述网页信息相同的网页信息,如果没有,则让收藏夹存储子模块将所述网页信息存储在所述收藏夹数据库中。The determining sub-module is configured to: determine whether the same webpage information as the webpage information is saved in the bookmark database, and if not, let the bookmark storage sub-module store the webpage information in the favorite database in.
本发明的有益效果是:The beneficial effects of the invention are:
本发明实施例的网页信息保存方法、数据卡,能解决相关技术中用户在更换电脑或者重装系统之后,无法使用之前保存的网页信息。具体的,本发明实施例的网页信息保存方法包括:数据卡获取网页访问请求;数据卡获取网页访问请求所请求访问网页的网页信息;数据卡将网页信息保存在本地。本发明提供的方法通过将用户访问过的网页的信息保存在数据卡中,使用户对保存的网页信息的使用不再受电脑的限制。当用户更换电脑或重装系统之后,只要在新电脑上或重装系统后的电脑上插上数据卡,就可以使用数据卡中保存的网页信息,发起对保存的网页的访问操作,极大地方便了用户。The method for saving webpage information and the data card according to the embodiment of the present invention can solve the problem that the webpage information saved before the user cannot use the computer after replacing the computer or reinstalling the system. Specifically, the method for saving webpage information in the embodiment of the present invention includes: the data card acquires a webpage access request; the datacard acquires the webpage information requested by the webpage access request to access the webpage; and the datacard saves the webpage information locally. The method provided by the invention saves the information of the webpage accessed by the user in the data card, so that the user's use of the saved webpage information is no longer restricted by the computer. After the user replaces the computer or reinstalls the system, as long as the data card is inserted on the new computer or the computer after reinstalling the system, the webpage information saved in the data card can be used to initiate access to the saved webpage, greatly Convenient for the user.
附图概述BRIEF abstract
图1为本发明实施例一提供的一种网页信息保存方法的流程示意图;1 is a schematic flowchart of a method for saving webpage information according to Embodiment 1 of the present invention;
图2为本发明实施例一提供的一种建立与用户对应的保存网页信息的数 据库的方法;FIG. 2 is a schematic diagram of establishing a number of saved webpage information corresponding to a user according to Embodiment 1 of the present invention; According to the method of the library;
图3为本发明实施例二提供的一种网页信息保存方法的流程示意图;3 is a schematic flowchart of a method for saving webpage information according to Embodiment 2 of the present invention;
图4为本发明实施例三提供的一种网页信息保存方法的流程示意图;4 is a schematic flowchart of a method for saving webpage information according to Embodiment 3 of the present invention;
图5为本发明实施例四提供的数据卡的结构示意图。FIG. 5 is a schematic structural diagram of a data card according to Embodiment 4 of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
本实施例提供一种网页信息保存方法,请参见图1,该方法具体包括:This embodiment provides a method for saving webpage information. Referring to FIG. 1, the method specifically includes:
步骤S101:数据卡获取网页访问请求;Step S101: The data card acquires a webpage access request;
步骤S102:数据卡获取网页访问请求所请求访问网页的网页信息,网页信息包括网页的网址;网页信息还可以包括:网页的标题、网页的类型、访问网页的时间等信息。数据卡可自动获取网页访问请求所请求访问网页的网页信息,也即,不管用户有没有需要,数据卡都会获取用户访问的网页的信息。而且,用户可以通过数据卡的设置界面(例如数据卡的WEB UI)进行开关设置,决定数据卡是否自动获取网页访问请求所请求访问网页的网页信息。Step S102: The data card acquires the webpage information of the webpage requested by the webpage access request, and the webpage information includes the webpage of the webpage; the webpage information may further include: a title of the webpage, a type of the webpage, a time of visiting the webpage, and the like. The data card can automatically obtain the webpage information of the webpage requested by the webpage access request, that is, the data card obtains the information of the webpage accessed by the user regardless of whether the user needs it or not. Moreover, the user can perform switch setting through the setting interface of the data card (for example, the WEB UI of the data card), and determine whether the data card automatically acquires the webpage information of the webpage requested by the webpage access request.
步骤S103:数据卡将网页信息保存在本地。为方便用户之后对保存的网页的信息的访问,可以对保存在数据卡内的网页信息进行分类存储,例如,在数据卡将网页信息保存在本地之前,在数据卡中创建历史记录数据库和收藏夹数据库,将网页信息保存在历史记录数据库和/或收藏夹数据库中。对于历史记录数据库,用于保存所有用户访问过的网页的信息,不论在历史记录数据库中是否存储有相同的网页信息。对于收藏夹数据库,对于数据卡是自动获取网页的信息的这种情况,数据卡会在用户发起访问网页请求时就对网页信息进行获取,并保存在数据卡中,为与历史记录区分开,可以仅将收藏夹数据库中没有的网页信息保存在数据卡中,对于在收藏夹数据库中已经存在的网页信息,就不将其存储在收藏夹数据库中。在具体操作过程中,可以在将网页信息保存在收藏夹数据库中之前,增加一个判断步骤,判断收藏夹 数据库中是否保存有与获取的网页信息相同的网页信息,如果没有,则存储在收藏夹数据库中,如果有,则不存储在收藏夹数据库中。判断收藏夹数据库中是否保存有与获取的网页信息相同的网页信息可以仅判断网页信息中的主要内容是否相同就可以,例如仅判断网页信息中的网址和/或标题是否相同,而不需要网页信息中的所有信息都相同才判定为两个网页信息相同,例如两个网页信息中的浏览时间不同,而标题、网址都相同,则判定两个网页信息相同。Step S103: The data card saves the webpage information locally. In order to facilitate the user to access the information of the saved webpage later, the webpage information stored in the data card may be classified and stored, for example, before the data card saves the webpage information locally, the history database and the collection are created in the data card. Folder database, save web page information in the history database and / or favorites database. For the history database, information for saving all web pages visited by the user, whether or not the same web page information is stored in the history database. For the bookmark database, in the case that the data card automatically acquires the information of the webpage, the data card acquires the webpage information when the user initiates the request for accessing the webpage, and saves it in the data card, which is distinguished from the history. It is possible to save only the webpage information that is not in the favorites database in the data card, and the webpage information that already exists in the favorite database is not stored in the favorite database. In the specific operation process, you can add a judgment step to determine the favorites before saving the webpage information in the favorites database. Whether the same web page information as the obtained web page information is stored in the database, if not, is stored in the favorite database, and if not, is not stored in the favorite database. Determining whether the same webpage information as the obtained webpage information is stored in the bookmark database may only determine whether the main content in the webpage information is the same, for example, only determining whether the webpage and/or the title in the webpage information are the same, without requiring a webpage All the information in the information is the same, and it is determined that the two webpage information are the same. For example, if the browsing time in the two webpage information is different, and the title and the webpage are the same, it is determined that the two webpage information are the same.
本实施例提供的方法应用在用户通过数据卡访问网络的情况下,或者是在用户使用的上网设备上插有数据卡的情况下。当用户发起浏览网页的请求时,数据卡会获取用户发起的网页访问请求,包括TCP和UDP等。通常用户发起的网页访问请求可以分成两个大的分类,一个是互联网网页访问请求,另一个是数据卡自身网关的网页访问请求。本实施例中保护的方案包括:(1)无论是互联网网页访问请求,还是请求数据卡自身网关的网页访问请求,都会获取网页访问请求所请求访问网页的网页信息;(2)仅在网页访问请求是互联网网页访问请求的情况下才会获取网页访问请求所请求访问网页的网页信息,并将该网页信息保存在数据卡中。对于这种情况,可以在数据卡获取网页访问请求所请求访问网页的网页信息之前,判断网页访问请求是否为互联网网页访问请求,如是,则获取网页访问请求所请求访问网页的网页信息;若否,则不获取。对于网页访问请求是请求数据卡自身网关这种情况,可以根据用户的网页访问请求,向用户显示相应的网页。此外,还可以将保存在数据卡内的网页信息显示在数据卡自身网关的网页上,供用户对这些网页信息进行操作,例如增加、删除、导出收藏夹、导出历史记录等。The method provided in this embodiment is applied when the user accesses the network through the data card, or in the case where the data card is inserted on the online device used by the user. When the user initiates a request to browse the webpage, the data card obtains a webpage access request initiated by the user, including TCP and UDP. Usually the user-initiated web page access request can be divided into two large categories, one is an internet webpage access request, and the other is a webpage access request of the data card's own gateway. The solution protected in this embodiment includes: (1) whether the Internet webpage access request or the webpage access request of the data card's own gateway requests the webpage information requested by the webpage access request to access the webpage; (2) only accesses the webpage When the request is an Internet webpage access request, the webpage information requested by the webpage access request to access the webpage is obtained, and the webpage information is saved in the datacard. In this case, before the data card obtains the webpage information requested by the webpage access request to access the webpage, whether the webpage access request is an internet webpage access request, and if so, the webpage information requested by the webpage access request to access the webpage may be obtained; , do not get. For the case that the webpage access request is a request for the data card's own gateway, the corresponding webpage may be displayed to the user according to the webpage access request of the user. In addition, the webpage information stored in the data card can also be displayed on the webpage of the data card's own gateway for the user to operate on the webpage information, such as adding, deleting, exporting, and exporting history records.
获取网页信息的方式可通过直接提取用户请求的网页的网址,也可以通过解析浏览器请求的数据报文获取网址。HTTP(Hypertext transfer protocol,超文本传输协议)是一种详细规定了浏览器和万维网服务器之间互相通信的规则,通过因特网传送万维网文档的数据传送协议,因此,一般对HTTP报文进行解析以获取网址信息。为更好的说明如何自动获取网页信息,下面以解析HTTP报文为例进行说明:在数据卡接收到浏览器的请求之后,解析浏览器请求的数据报文,也即HTTP报文,根据HTTP协议解析HTTP请求报文 的头信息,将其中的HOST字段(主机字段)和Request-Line(请求消息起始行)等信息提取出来,并从Request-Line中解析出URI(Uniform Resource Identifier,通用资源标识符)数据,将URI和HOST字段组合拼接起来组成网址。进一步地,如果想获取网页的更多信息,可以解析互联网在接收到浏览器发起的请求报文后返回给数据卡的响应报文,将HTTP头中的Date(日期)、Content-type(内容类型)、<title></title>(标题)等信息解析出来。The way to obtain the webpage information can be obtained by directly extracting the web address of the webpage requested by the user, or by parsing the datagram requested by the browser. HTTP (Hypertext Transfer Protocol) is a data transfer protocol that specifies the rules for communication between the browser and the web server. The data transfer protocol of the web document is transmitted over the Internet. Therefore, the HTTP message is generally parsed to obtain URL information. To better explain how to automatically obtain webpage information, the following is an example of parsing an HTTP packet: after the data card receives the request from the browser, it parses the data packet requested by the browser, that is, the HTTP packet, according to HTTP. Protocol parsing HTTP request message Header information, extracting information such as HOST field (host field) and Request-Line (request message start line), and parsing URI (Uniform Resource Identifier) data from Request-Line, Combine the URI and HOST field combinations to form a URL. Further, if you want to obtain more information about the webpage, you can parse the response message returned by the Internet to the data card after receiving the request message initiated by the browser, and set the Date (date) and Content-type (content) in the HTTP header. Information such as type), <title></title> (title), etc.
为防止保存在数据卡中的网页信息过于繁多,过于杂乱,还可以在将网页信息保存在数据卡之前对网页信息进行过滤,过滤掉后缀名为.jpg/.png/.gif/.js/.css等的网址,仅将网址后缀为超文本标记语言和/或文本的网页信息保存在数据卡中。也可以将存在Referer的HTTP请求也过滤掉,referer(引用页)也是HTTP请求报文的头信息里面的一项,如果用到就会在HTTP的头信息中;如果没有用到就不会出现,这个不是HTTP头信息的必需项。因为带有Referer项的HTTP请求通常都是由主页面链接过来的一些子页面的请求,这些子页面对我们来说用处不大,所以将其过滤掉也是为了将一些杂乱的HTTP请求过滤掉。In order to prevent the webpage information stored in the data card from being too numerous and too messy, the webpage information may be filtered before the webpage information is saved in the data card, and the suffix is named .jpg/.png/.gif/.js/ URLs such as .css store only web page information with URL suffixes in hypertext markup language and/or text on the data card. It is also possible to filter out the HTTP request that exists in the Referer. The referer is also an item in the header information of the HTTP request message. If it is used, it will be in the HTTP header information; if it is not used, it will not appear. This is not required for HTTP header information. Because the HTTP request with the Referer item is usually a request for some sub-pages linked by the main page, these sub-pages are of little use to us, so filtering them out is also to filter out some messy HTTP requests.
为保证数据卡中保存的网页信息的有序性,可以在数据卡中建立与用户对应的数据库,用于存放不同用户保存的网页信息。当用户使用数据卡访问网页时,将同一个用户访问的网页信息保存在与用户对应的文件夹中。以下以一个示例对如何在数据卡中建立与用户对应的数据库进行详细的讲解,请参见图2,具体流程如下:In order to ensure the order of the webpage information stored in the data card, a database corresponding to the user may be established in the data card for storing webpage information saved by different users. When a user accesses a webpage using a data card, the webpage information accessed by the same user is saved in a folder corresponding to the user. The following is an example to explain how to create a database corresponding to the user in the data card. Please refer to Figure 2, the specific process is as follows:
步骤S201:对已接入数据卡用户的信息查询,并获取用户的MAC(Medium/Media Access Control,介质访问控制)地址,在数据卡中建立MAC地址映射表。如果临时有接入用户,则在MAC地址映射表中添加新的记录;Step S201: Query the information of the user who has accessed the data card, obtain the MAC (Medium/Media Access Control) address of the user, and establish a MAC address mapping table in the data card. If there is a temporary access user, add a new record in the MAC address mapping table;
步骤S202:为上述用户设置专用的文件夹存储,并在MAC地址映射表中添加相应的MAC地址和文件名称映射信息。对于不同MAC地址对应的文件夹,管理员用户可以通过数据卡提供的设置界面(例如数据卡自身网关的网页WEB UI)查看,同时进行合并,使得相同MAC地址可以对应同一个文件夹。如果相应的文件夹已存在,结束流程,否则转入步骤S303.Step S202: setting a dedicated folder storage for the above user, and adding corresponding MAC address and file name mapping information in the MAC address mapping table. For folders corresponding to different MAC addresses, the administrator user can view through the setting interface provided by the data card (for example, the web page WEB UI of the data card's own gateway), and merge at the same time, so that the same MAC address can correspond to the same folder. If the corresponding folder already exists, the process ends, otherwise go to step S303.
步骤S203:在上述文件夹中创建保存收藏夹的文件和保存浏览记录的文 件。Step S203: Create a file for saving the favorites and a text for saving the browsing record in the above folder. Pieces.
实施例二:Embodiment 2:
本实施例提供了一种网页信息保存方法,请参见图3,其包括如下步骤:This embodiment provides a method for saving webpage information. Referring to FIG. 3, the method includes the following steps:
步骤S301:开始;Step S301: start;
步骤S302:数据卡获取浏览器发送的网页访问请求,包括TCP和UDP等,然后对报文进行初步解析;Step S302: The data card acquires a webpage access request sent by the browser, including TCP and UDP, and then performs preliminary parsing of the packet.
步骤S303:判断浏览器发送的网页访问请求是否为请求访问互联网的网页。如是,则转入S305处理;如否,则判定其是请求访问数据卡自身网关的网页,执行步骤S304;Step S303: Determine whether the webpage access request sent by the browser is a webpage requesting access to the internet. If yes, go to S305 for processing; if no, determine that it is a web page requesting access to the data card's own gateway, step S304 is performed;
步骤S304:由数据卡内部的网页服务器处理,该网页服务器解析HTTP报文,显示相应的页面;然后接收用户对显示的信息发起的操作请求,这里的操作请求也是HTTP请求,这个请求包含了请求的方法(例如POST、GET)、请求的数据内容(例如增加、删除)等,并根据请求做出增加、删除、导出收藏夹和历史浏览记录的响应动作。然后流程结束,执行步骤S313;Step S304: processing by the web server inside the data card, the web server parses the HTTP message, and displays the corresponding page; and then receives an operation request initiated by the user on the displayed information, where the operation request is also an HTTP request, and the request includes the request. The method (such as POST, GET), the requested data content (such as adding, deleting), etc., and according to the request to make response actions to add, delete, export favorites and historical browsing records. Then the process ends, step S313 is performed;
步骤S305:解析浏览器请求的数据报文;Step S305: Parsing the data packet requested by the browser;
步骤S306:判断S305对报文的解析结果,如果报文不是HTTP请求,那么流程结束,执行步骤S313;如果报文是HTTP请求,则转入S307处理;Step S306: determining the result of parsing the message in S305, if the message is not an HTTP request, the process ends, step S313 is performed; if the message is an HTTP request, then the process proceeds to S307;
步骤S307:根据HTTP协议解析HTTP请求报文的头信息,将其中的HOST和Request-Line等信息提取出来,并解析出URI数据;Step S307: Parsing the header information of the HTTP request packet according to the HTTP protocol, extracting information such as HOST and Request-Line, and parsing the URI data;
步骤S308:将浏览器发起的请求报文发送给互联网;Step S308: Send the request message initiated by the browser to the Internet;
步骤S309:解析网络返回给数据卡的响应报文,将HTTP头中的Date、Content-type等信息解析出来,同时将返回的数据内容解析出来,获取<title></title>(标题)节点中的内容;Step S309: Parsing the response message returned by the network to the data card, parsing the information such as Date and Content-type in the HTTP header, and parsing the returned data content to obtain the <title></title> (title) node. Content in
步骤S310:根据Host、URI、Content-type等信息判断收藏夹数据库中是否已经保存了该URL网址信息,如果已经保存了,则转入S311处理,否则转入S312进行处理; Step S310: judging whether the URL address information has been saved in the bookmark database according to the information such as Host, URI, Content-type, etc. If it has been saved, the process proceeds to S311, otherwise, the process proceeds to S312.
步骤S311:如果该URL已经在收藏夹数据库中保存,那么我们只需要将URL保存到历史浏览记录数据库;Step S311: If the URL is already saved in the favorite database, then we only need to save the URL to the historical browsing record database;
步骤S312:如果该URL没有在收藏夹中保存,将title、URL站点信息保存到收藏夹数据库和历史浏览数据库,用于S303步骤中给用户显示以及让用户对其进行增加、修改、导出等操作;Step S312: If the URL is not saved in the favorites, the title and URL site information is saved to the favorites database and the historical browsing database, and is used for displaying the user in the step S303 and allowing the user to add, modify, and export the operations. ;
步骤S313:结束。Step S313: End.
实施例三:Embodiment 3:
本实施例提供了一种网页信息保存方法,在本实施例中,重点对如何获取网页信息进行详细的说明,请参见图4,具体流程如下:This embodiment provides a method for saving webpage information. In this embodiment, a detailed description of how to obtain webpage information is provided. Referring to FIG. 4, the specific process is as follows:
步骤S401:用户浏览网页;Step S401: The user browses the webpage;
步骤S402:数据卡获取浏览器发送的网页访问请求,获取发起请求的TCP和UDP报文,并进行报文分析和解析,获取发起请求的终端MAC地址,查询文件夹映射表中是否有该MAC对应的文件夹,如果没有,则执行步骤S404,如果有,则执行步骤S403;Step S402: The data card acquires the webpage access request sent by the browser, obtains the TCP and UDP packets initiated by the request, performs packet analysis and parsing, obtains the MAC address of the terminal that initiates the request, and queries whether the MAC address is in the folder mapping table. Corresponding folder, if not, step S404 is performed, if yes, step S403 is performed;
步骤S403:建立一个新的与MAC地址对应的文件夹,然后执行步骤步骤S404;Step S403: Create a new folder corresponding to the MAC address, and then perform step S404;
步骤S404:判断该网页访问请求是否为访问互联网的数据的网页访问请求,如果不是,则流程结束,如果是,则执行步骤S405;Step S404: determining whether the webpage access request is a webpage access request for accessing data of the Internet, if not, the flow ends, and if so, executing step S405;
步骤S405:解析HTTP请求头中的HOST、Requist-Line和Referer信息,并将Requist-Line信息中的URI(uniform resource identifier,统一资源标识符)解析出来,执行步骤S406;Step S405: parsing the HOST, Requist-Line, and Referer information in the HTTP request header, and parsing the URI (uniform resource identifier) in the Requist-Line information, and executing step S406;
步骤S406:分析HTTP请求头数据。首先将Referer有值的HTTP请求丢弃。然后再对URL(uniform resource locator,统一资源定位器)进行过滤,将后缀名为.jpg/.png/.gif/.js/.css等的URI丢弃。上述丢弃只是不再进一步分析和保存该URL站点的信息,而不是不再向网络发起数据请求,执行步骤S407;Step S406: Analyze the HTTP request header data. First, the Referer's valued HTTP request is discarded. Then filter the URL (uniform resource locator) and discard the URI with the suffix .jpg/.png/.gif/.js/.css. The above discarding only does not further analyze and save the information of the URL site, instead of no longer initiating a data request to the network, step S407 is performed;
步骤S407:如果该URL站点未被丢弃,我们将解析该HTTP请求的网络响应数据。首先解析出响应HTTP头的Date和Content-type的内容,如果 Content-type的值为text/html,我们将该请求的Host和URI组合拼接起来,组成完整的网址。然后解析响应的HTTP数据内容,将<title></title>节点中的内容读取出来。最后将完整的网址、访问时间、title信息组成一条完整的网页信息;Step S407: If the URL site is not discarded, we will parse the network response data of the HTTP request. First parse the contents of the Date and Content-type in response to the HTTP header, if The value of Content-type is text/html. We concatenate the requested Host and URI combination to form a complete URL. Then parse the HTTP content of the response and read the contents of the <title></title> node. Finally, the complete web address, access time, and title information are combined to form a complete web page information;
步骤S408:保存网页信息。根据步骤S402获取到的该请求的MAC地址,查询文件夹映射表中该MAC地址对应的文件夹,然后检查该文件夹中的收藏夹文件夹中是否有该站点信息,如果没有则保存,有则不保存。最后将该信息加入到历史浏览记录中;Step S408: Save the webpage information. According to the MAC address of the request obtained in step S402, query the folder corresponding to the MAC address in the folder mapping table, and then check whether the site information is in the favorite folder in the folder, if not, save it, there is Then do not save. Finally, the information is added to the history browsing record;
步骤S409:结束。Step S409: End.
实施例四:Embodiment 4:
本实施例提供了一种数据卡,请参见图5,包括:获取请求模块51、获取网页信息模块52和存储模块53;The embodiment provides a data card, as shown in FIG. 5, including: an acquisition request module 51, a webpage information module 52, and a storage module 53;
获取请求模块51设置成:获取网页访问请求;The obtaining request module 51 is configured to: obtain a webpage access request;
获取网页信息模块52设置成:获取网页访问请求所请求访问网页的网页信息,网页信息包括网页的网址;The obtaining webpage information module 52 is configured to: obtain webpage information of the webpage requested by the webpage access request, and the webpage information includes a webpage of the webpage;
存储模块53设置成:将网页信息存储在数据卡本地。The storage module 53 is configured to store webpage information locally on the data card.
数据卡还包括判断模块54,判断模块54设置成:在获取网页信息模块52获取网页访问请求所请求访问网页的网页信息之前,判断网页访问请求是否为互联网网页访问请求,如是,则通知获取网页信息模块52获取网页访问请求所请求访问网页的网页信息。The data card further includes a judging module 54 configured to determine whether the webpage access request is an internet webpage access request before acquiring the webpage information requested by the webpage information module 52 to obtain the webpage access request, and if so, notify the webpage of the webpage The information module 52 obtains webpage information of the webpage requested by the webpage access request.
存储模块53包括历史记录存储子模块531和/或收藏夹存储子模块532,历史记录存储子模块531设置成:将网页信息保存在数据卡的历史记录数据库中;收藏夹存储子模块532设置成:将网页信息保存在数据卡的收藏夹数据库中。The storage module 53 includes a history storage submodule 531 and/or a bookmark storage submodule 532, and the history storage submodule 531 is configured to: save webpage information in a history database of the data card; and set the bookmark storage submodule 532 to : Save the web page information in the data folder's favorites database.
收藏夹存储子模块532还包括判断子模块,判断子模块设置成:判断收藏夹数据库中是否保存有与网页信息相同的网页信息,如果没有,则让收藏夹存储子模块532将网页信息存储在收藏夹数据库中。 The favorites storage sub-module 532 further includes a judging sub-module configured to: determine whether the webpage information having the same webpage information is stored in the bookmark database, and if not, let the bookmark storage sub-module 532 store the webpage information in the In the Favorites database.
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific embodiments of the present invention are not limited to the description. It will be apparent to those skilled in the art that the present invention may be made without departing from the spirit and scope of the invention.
工业实用性Industrial applicability
本发明实施例的网页信息保存方法包括:数据卡获取网页访问请求;数据卡获取网页访问请求所请求访问网页的网页信息;数据卡将网页信息保存在本地。本发明提供的方法通过将用户访问过的网页的信息保存在数据卡中,使用户对保存的网页信息的使用不再受电脑的限制。当用户更换电脑或重装系统之后,只要在新电脑上或重装系统后的电脑上插上数据卡,就可以使用数据卡中保存的网页信息,发起对保存的网页的访问操作,极大地方便了用户。因此本发明具有很强的工业实用性。 The method for saving webpage information in the embodiment of the present invention includes: the data card acquires a webpage access request; the datacard acquires the webpage information requested by the webpage access request to access the webpage; and the datacard saves the webpage information locally. The method provided by the invention saves the information of the webpage accessed by the user in the data card, so that the user's use of the saved webpage information is no longer restricted by the computer. After the user replaces the computer or reinstalls the system, as long as the data card is inserted on the new computer or the computer after reinstalling the system, the webpage information saved in the data card can be used to initiate access to the saved webpage, greatly Convenient for the user. Therefore, the present invention has strong industrial applicability.

Claims (12)

  1. 一种网页信息保存方法,包括:A method for saving webpage information, comprising:
    数据卡获取网页访问请求;The data card obtains a webpage access request;
    所述数据卡获取所述网页访问请求所请求访问的网页的网页信息;Obtaining, by the data card, webpage information of a webpage requested by the webpage access request;
    所述数据卡将所述网页信息保存在本地。The data card saves the webpage information locally.
  2. 如权利要求1所述的网页信息保存方法,其中,所述网页信息包括网页的网址、标题和时间。The webpage information saving method according to claim 1, wherein the webpage information comprises a webpage, a title, and a time of the webpage.
  3. 如权利要求1所述的网页信息保存方法,其中,所述数据卡获取所述网页访问请求所请求访问的网页的网页信息的步骤包括:The method for saving webpage information according to claim 1, wherein the step of acquiring, by the data card, webpage information of a webpage requested by the webpage access request comprises:
    所述数据卡自动获取所述网页访问请求所请求访问的网页的网页信息。The data card automatically acquires webpage information of a webpage requested by the webpage access request.
  4. 如权利要求1所述的网页信息保存方法,其中,所述数据卡获取所述网页访问请求所请求访问的网页的网页信息之前,还包括:The webpage information storage method according to claim 1, wherein before the data card acquires the webpage information of the webpage requested by the webpage access request, the data card further includes:
    判断所述网页访问请求是否为互联网网页访问请求,如是,则获取所述网页访问请求所请求访问的网页的网页信息。Determining whether the webpage access request is an internet webpage access request, and if yes, acquiring webpage information of the webpage requested by the webpage access request.
  5. 如权利要求1所述的网页信息保存方法,其中,所述数据卡将所述网页信息保存在本地的步骤包括:The method of saving a webpage information according to claim 1, wherein the step of storing the webpage information locally by the data card comprises:
    将所述网页信息保存在所述数据卡的历史记录数据库和/或收藏夹数据库中。The web page information is saved in a history database and/or a favorites database of the data card.
  6. 如权利要求5所述的网页信息保存方法,其中,将所述网页信息保存在所述历史记录数据库和/或收藏夹数据库中的步骤包括:The webpage information saving method according to claim 5, wherein the step of saving the webpage information in the history database and/or the favorite database comprises:
    判断所述收藏夹数据库中是否保存有与所述网页信息相同的网页信息,如果没有,则存储在所述收藏夹数据库中,如果有,则不存储在所述收藏夹数据库中。It is determined whether the same webpage information as the webpage information is stored in the bookmark database, if not, stored in the bookmark database, and if not, is not stored in the bookmark database.
  7. 如权利要求1-6中任一项所述的网页信息保存方法,其中:The webpage information saving method according to any one of claims 1 to 6, wherein:
    所述网页访问请求采用超文本传输协议报文进行传输。The webpage access request is transmitted by using a hypertext transfer protocol message.
  8. 一种数据卡,包括:获取请求模块、获取网页信息模块和存储模块,其中: A data card includes: an acquisition request module, a webpage information module, and a storage module, wherein:
    所述获取请求模块设置成:获取网页访问请求;The obtaining request module is configured to: obtain a webpage access request;
    所述获取网页信息模块设置成:获取所述网页访问请求所请求访问的网页的网页信息;The acquiring webpage information module is configured to: obtain webpage information of a webpage requested by the webpage access request;
    所述存储模块设置成:将所述网页信息存储在所述数据卡本地。The storage module is configured to: store the webpage information locally on the data card.
  9. 如权利要求7所述的数据卡,其中,所述网页信息包括网页的网址。The data card of claim 7, wherein the web page information comprises a web address of the web page.
  10. 如权利要求8所述的数据卡,所述数据卡还包括判断模块,其中:The data card of claim 8 further comprising a determination module, wherein:
    所述判断模块设置成:在所述数据卡获取所述网页访问请求所请求访问的网页的网页信息之前,判断所述网页访问请求是否为互联网网页访问请求,如是,则通知所述获取网页信息模块获取所述网页访问请求所请求访问的网页的网页信息。The determining module is configured to: before the data card acquires webpage information of the webpage requested by the webpage access request, determine whether the webpage access request is an internet webpage access request, and if yes, notify the acquiring webpage information The module acquires webpage information of the webpage requested by the webpage access request.
  11. 如权利要求8所述的数据卡,其中,所述存储模块包括历史记录存储子模块和/或收藏夹存储子模块,其中:The data card of claim 8 wherein said storage module comprises a history storage sub-module and/or a favorites storage sub-module, wherein:
    所述历史记录存储子模块设置成:将所述网页信息保存在所述数据卡的历史记录数据库中;The history storage submodule is configured to: save the webpage information in a history database of the data card;
    所述收藏夹存储子模块设置成:将所述网页信息保存在所述数据卡的收藏夹数据库中。The favorite storage submodule is configured to: save the webpage information in a bookmark database of the data card.
  12. 如权利要求11所述的数据卡,其中,所述收藏夹存储子模块还包括判断子模块,其中:The data card of claim 11 wherein said favorites storage sub-module further comprises a decision sub-module, wherein:
    所述判断子模块设置成:判断所述收藏夹数据库中是否保存有与所述网页信息相同的网页信息,如果没有,则让收藏夹存储子模块将所述网页信息存储在所述收藏夹数据库中。 The determining sub-module is configured to: determine whether the same webpage information as the webpage information is saved in the bookmark database, and if not, let the bookmark storage sub-module store the webpage information in the favorite database in.
PCT/CN2014/087219 2014-04-25 2014-09-23 Webpage information storing method and data card WO2015161622A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410171762.8 2014-04-25
CN201410171762.8A CN105022745A (en) 2014-04-25 2014-04-25 Webpage information storage method and data card

Publications (1)

Publication Number Publication Date
WO2015161622A1 true WO2015161622A1 (en) 2015-10-29

Family

ID=54331696

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/087219 WO2015161622A1 (en) 2014-04-25 2014-09-23 Webpage information storing method and data card

Country Status (2)

Country Link
CN (1) CN105022745A (en)
WO (1) WO2015161622A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783803A (en) * 2010-01-29 2010-07-21 中兴通讯股份有限公司 Webpage filtering method and data card
CN102647463A (en) * 2012-03-30 2012-08-22 华为终端有限公司 Website navigation generation method, wireless routing terminal and system
JP2012208730A (en) * 2011-03-30 2012-10-25 Nec Access Technica Ltd Access control method and router device
CN103064979A (en) * 2013-01-15 2013-04-24 中兴通讯股份有限公司 Router and method for implementing same to process web page data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764841A (en) * 2009-12-16 2010-06-30 中兴通讯股份有限公司 Method and device for synchronizing user data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783803A (en) * 2010-01-29 2010-07-21 中兴通讯股份有限公司 Webpage filtering method and data card
JP2012208730A (en) * 2011-03-30 2012-10-25 Nec Access Technica Ltd Access control method and router device
CN102647463A (en) * 2012-03-30 2012-08-22 华为终端有限公司 Website navigation generation method, wireless routing terminal and system
CN103064979A (en) * 2013-01-15 2013-04-24 中兴通讯股份有限公司 Router and method for implementing same to process web page data

Also Published As

Publication number Publication date
CN105022745A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
AU2012363126B2 (en) Terminal device and user information synchronization method
US20060294396A1 (en) Multiplatform synchronized data access from mobile devices of dynamically aggregated content
WO2014019427A1 (en) Network accessing method, application server and system
US20120023181A1 (en) Method for viewing document information on a mobile communication device
US8484373B2 (en) System and method for redirecting a request for a non-canonical web page
EP2846268A1 (en) Graphical bookmark realization method, device and terminal for embedded browser
US8392543B1 (en) Synchronization of content change across multiple devices
CN102868719A (en) Network access method and server based on cache
JP5206631B2 (en) NAVIGATION SYSTEM, SERVER DEVICE, COMMUNICATION DEVICE, NAVIGATION INFORMATION GENERATION METHOD, AND COMPUTER PROGRAM
CN102638580A (en) Webpage information processing method and webpage information processing device
WO2013078830A1 (en) Method, device, and system for processing webpage access request of mobile terminal
WO2013063940A1 (en) History records sorting method and device
WO2012016015A1 (en) Method and system for link-triggered link-translating proxying
WO2013185693A1 (en) Method for router to process web page data, and router
CN110430188A (en) A kind of quick url filtering method and device
CN110808868B (en) Test data acquisition method and device, computer equipment and storage medium
WO2006071324A2 (en) Imroved bitmask access for managing blog content
EP2640035B1 (en) Hypertext transfer protocol (http) stream association method and device
CN105282238B (en) A kind of method for managing resource
WO2015058614A1 (en) Bookmark storage method and device, and method and device for determining bookmark to be browsed
US10154076B2 (en) Identifying users through a proxy
WO2015154270A1 (en) Method and device for information search
JP4903118B2 (en) WEB server and program for collecting sensing data
WO2015161622A1 (en) Webpage information storing method and data card
US7509433B1 (en) Selecting quick-to-download content through an alternative hypertext protocol

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14889828

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14889828

Country of ref document: EP

Kind code of ref document: A1