CN104410614B - Data transmission, display methods, apparatus and system - Google Patents
Data transmission, display methods, apparatus and system Download PDFInfo
- Publication number
- CN104410614B CN104410614B CN201410665916.9A CN201410665916A CN104410614B CN 104410614 B CN104410614 B CN 104410614B CN 201410665916 A CN201410665916 A CN 201410665916A CN 104410614 B CN104410614 B CN 104410614B
- Authority
- CN
- China
- Prior art keywords
- browser
- information
- data packet
- user
- webpage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 115
- 230000005540 biological transmission Effects 0.000 title claims abstract description 50
- 238000012545 processing Methods 0.000 claims description 52
- 230000004044 response Effects 0.000 claims description 51
- 238000001914 filtration Methods 0.000 claims description 37
- 238000006243 chemical reaction Methods 0.000 claims description 29
- 230000008569 process Effects 0.000 claims description 28
- 238000012546 transfer Methods 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及数据传输领域,特别是涉及一种数据传输、显示方法、装置及系统。The invention relates to the field of data transmission, in particular to a data transmission and display method, device and system.
背景技术Background technique
随着网络的普及,人们对于网络的愈加依赖,而浏览器以其功能的多样化更是深受用户的喜爱。通过浏览器,用户能够迅速便捷地浏览各种领域、各种类型的资讯。但是,用户经常由于设备死机或者遇到紧急事件或者停电等各种情况不得不中断通过浏览器正在进行的各种活动,如观看视频、浏览网页、玩网络游戏等。With the popularization of the Internet, people rely more and more on the Internet, and browsers are deeply loved by users because of their diversified functions. Through the browser, users can browse various fields and types of information quickly and conveniently. However, users often have to interrupt various activities in progress through the browser, such as watching videos, browsing web pages, playing online games, etc., due to various situations such as equipment crashes, emergency events, or power outages.
现有技术中,该种情况下,无法自动保存用户关闭时开启的网页,则当用户想要再次开启浏览器继续之前中断的活动,则需要重复第一次打开被中断的活动所在页面的所有步骤。例如,用户想要继续之前阅读的某部小说,则用户再次开启浏览器之后,需要重复如下步骤:S1、查找该部小说所在的网站并点击进入;S2、登录该网站;S3、在该网站中查找到该部小说,并点击进入该部小说的网页;S4、查找到上次阅读到的部分,继续阅读。由此可见,现有技术中无法在用户关闭浏览器网页时,对网页信息自动保存,造成用户在后续继续被中断的浏览器操作时步骤繁琐复杂,降低用户体验。In the prior art, in this case, the webpage that was opened when the user closed cannot be automatically saved, then when the user wants to open the browser again to continue the previously interrupted activity, it is necessary to repeat all the pages where the interrupted activity is opened for the first time. step. For example, if the user wants to continue reading a certain novel, the user needs to repeat the following steps after opening the browser again: S1, find the website where the novel is located and click to enter; S2, log in to the website; S3, log in to the website Find the novel in , and click to enter the webpage of the novel; S4, find the part you read last time, and continue reading. It can be seen that in the prior art, it is impossible to automatically save the web page information when the user closes the browser web page, resulting in cumbersome and complicated steps for the user to continue the interrupted browser operation and reduce the user experience.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的数据传输方法、数据显示方法和相应的装置、系统。In view of the above problems, the present invention is proposed to provide a data transmission method, a data display method, and corresponding devices and systems that overcome the above problems or at least partially solve the above problems.
依据本发明的一个方面,提供了一种数据传输方法,包括:使用浏览器用户的登录身份标识信息ID登录本浏览器;接收到来自所述浏览器用户的关闭指令,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息;若是,获取所述所有网页信息,并添加所述所有网页信息的属性信息至所述所有网页信息,生成浏览器数据包;上传所述浏览器数据包至浏览器的服务器端。According to one aspect of the present invention, a data transmission method is provided, including: using the browser user's login identity information ID to log in to the browser; receiving a closing instruction from the browser user, and determining according to a preset operation command Whether to obtain all the webpage information that the browser has opened at the current moment; if so, obtain all the webpage information, and add the attribute information of all the webpage information to the all webpage information to generate a browser data packet; upload the browser browser data packet to the server side of the browser.
可选地,所述使用浏览器用户的登录身份标识信息ID登录本浏览器,包括:当本浏览器的状态值发生改变,则确定所述浏览器用户的登录ID登录成功。Optionally, the logging into the browser using the browser user's login identity information ID includes: determining that the browser user's login ID is successfully logged in when the state value of the browser changes.
可选地,所述预设操作命令包括缺省操作命令和/或所述浏览器用户预先设置的操作命令。Optionally, the preset operation commands include default operation commands and/or operation commands preset by the browser user.
可选地,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息,包括:根据预设操作命令显示操作选项,以供所述浏览器用户进行选择,其中,所述操作选项包括获取所述所有网页信息选项、拒绝获取所述所有网页信息选项;接收来自所述浏览器用户的选择指令,根据所述选择指令确定是否获取本浏览器当前时刻已打开的所有网页信息。Optionally, determining whether to acquire all webpage information that has been opened by the browser at the current moment according to a preset operation command includes: displaying operation options according to a preset operation command for selection by the browser user, wherein the operation The options include the option of obtaining all the webpage information and the option of refusing to obtain the information of all the webpages; receiving a selection instruction from the browser user, and determining whether to obtain all the information of the webpages currently opened by the browser according to the selection instruction.
可选地,获上传所述浏览器数据包至浏览器的服务器侧之前,还包括:对所述浏览器数据包进行处理,其中,对所述浏览器数据包进行处理的步骤包括以下至少之一:对所述已打开的所有网页信息进行过滤处理,其中,所述过滤处理至少包括以下任意之一:对所述浏览器数据包进行过滤处理,其中,所述过滤处理至少包括以下任意之一:过滤非超文本传输协议http网页信息和/或http安全版网页信息、删除所述浏览器数据包中的所述浏览器用户的个人信息数据、去除所述浏览器数据包中的重复信息;对所述浏览器数据包进行封装处理,生成轻量级数据交换格式json格式文件;对所述浏览器数据包进行加密处理。Optionally, before uploading the browser data packet to the server side of the browser, it also includes: processing the browser data packet, wherein the step of processing the browser data packet includes at least one of the following One: Filtering all the opened webpage information, wherein the filtering process includes at least any one of the following: Filtering the browser data packets, wherein the filtering process includes at least any of the following One: filter non-hypertext transfer protocol http webpage information and/or http security version webpage information, delete the personal information data of the browser user in the browser data packet, and remove repeated information in the browser data packet ; encapsulating the browser data packet to generate a lightweight data exchange format json format file; encrypting the browser data packet.
可选地,上传所述数据包至所述浏览器的服务器端,包括:添加校验字段至所述浏览器数据包;采用请求体格式http post上传所述浏览器数据包至所述浏览器的服务器端。Optionally, uploading the data packet to the server of the browser includes: adding a verification field to the browser data packet; uploading the browser data packet to the browser using the request body format http post on the server side.
可选地,接收到来自所述浏览器用户的关闭指令之前,还包括:接收来自所述浏览器用户的连接建立指令,其中,所述连接建立指令中携带有使用所述浏览器用户的登录ID登录的其他浏览器的标识信息;发送连接建立请求至所述浏览器的服务器端,其中,所述连接建立请求中携带有本浏览器的标识信息以及所述其他浏览器的标识信息。Optionally, before receiving the closing instruction from the browser user, it also includes: receiving a connection establishment instruction from the browser user, wherein the connection establishment instruction carries the login information of the browser user. Identification information of other browsers logged in with the ID; sending a connection establishment request to the server of the browser, wherein the connection establishment request carries the identification information of the browser and the identification information of the other browsers.
可选地,所述属性信息包括操作指令。Optionally, the attribute information includes an operation instruction.
可选地,所述所有网页信息的类型包括以下至少之一:游戏类网页信息;视频类网页信息;音乐类网页信息;文本类网页信息;地图类网页信息。Optionally, the types of all web page information include at least one of the following: game web page information; video web page information; music web page information; text web page information; map web page information.
可选地,所述操作指令包括以下至少之一:打开网页信息指令;编辑网页信息指令;还原网页状态指令,其中,所述还原网页状态指令至少包括:游戏类网页中,还原接收所述关闭指令时游戏关卡的环境;视频类网页中,还原接收所述关闭指令时视频播放的进度;音乐类网页中,还原接收所述关闭指令时音乐播放的进度;文本类网页中,还原接收所述关闭指令时文本阅读的进度;地图类网页中,还原接收所述关闭指令时所述地图类网页显示地址的地图。Optionally, the operation instruction includes at least one of the following: an instruction to open web page information; an instruction to edit web page information; The environment of the game checkpoint at the time of the instruction; in the video class webpage, restore the progress of the video playback when receiving the closing instruction; in the music class webpage, restore the progress of the music playing when receiving the closing instruction; The progress of text reading when closing the instruction; in the map webpage, restore the map of the address displayed on the map webpage when receiving the closing instruction.
依据本发明的另一方面,还提供了一种数据传输方法,包括:接收第一浏览器上传的浏览器数据包,将其与浏览器用户登录身份标识ID对应存储至数据库,其中,所述浏览器数据包中包括所述第一浏览器的所有网页信息及其属性信息;当接收到来自第二浏览器的、携带有所述浏览器用户登录ID的数据请求消息,获取与所述浏览器用户登录ID对应的浏览器数据包;发送应答消息至所述第二浏览器,其中,所述应答消息中携带有与所述浏览器用户登录ID对应的浏览器数据包。According to another aspect of the present invention, there is also provided a data transmission method, including: receiving the browser data packet uploaded by the first browser, and storing it in a database corresponding to the browser user login identity ID, wherein the The browser data packet includes all web page information and attribute information of the first browser; when receiving a data request message carrying the browser user login ID from the second browser, obtain the The browser data packet corresponding to the browser user login ID; sending a response message to the second browser, wherein the response message carries the browser data packet corresponding to the browser user login ID.
可选地,所述接收第一浏览器上传的浏览器数据包,将其与浏览器用户登录ID对应存储至数据库,包括:添加时间戳信息至所述浏览器数据包;保存添加时间戳信息完成的浏览器数据包至所述数据库。Optionally, said receiving the browser data packet uploaded by the first browser and storing it in the database corresponding to the browser user login ID includes: adding timestamp information to the browser data packet; saving and adding the timestamp information Completed browser packets to the database.
可选地,所述数据传输方法还包括:接收来自所述第一浏览器的连接建立请求,其中,所述连接建立请求中携带有所述第一浏览器的标识信息以及所述第二浏览器的标识信息;根据所述连接建立请求建立所述第一浏览器与所述第二浏览器的关联关系并保存,以供所述第二浏览器根据所述关联关系对所述第一浏览器的浏览器数据包进行还原。Optionally, the data transmission method further includes: receiving a connection establishment request from the first browser, wherein the connection establishment request carries the identification information of the first browser and the The identification information of the browser; according to the connection establishment request, the association relationship between the first browser and the second browser is established and saved, so that the second browser can browse the first browser according to the association relationship. The browser data package of the browser is restored.
可选地,所述接收第一浏览器上传的浏览器数据包之后,还包括:对所述浏览器数据包携带的、所述第一浏览器的所有网页信息进行格式转换,得到转换结果,其中,所述转换结果能够通过运行在不同类型的设备上的所述第二浏览器进行显示;保存转换结果至所述数据库。Optionally, after receiving the browser data packet uploaded by the first browser, the method further includes: performing format conversion on all webpage information of the first browser carried in the browser data packet to obtain a conversion result, Wherein, the conversion result can be displayed through the second browser running on different types of devices; and the conversion result is saved to the database.
依据本发明的另一方面,还提供了一种数据显示方法,包括:使用浏览器用户的登录身份标识信息ID登录本浏览器时,发送携带有所述浏览器用户登录ID的数据请求消息至浏览器的服务器端,由所述浏览器的服务器端获取与所述用户登录ID对应的浏览器数据包,其中,所述浏览器数据包中包括网页信息及其属性信息;接收所述浏览器的服务器端返回的述应答消息,其中,所述应答消息中携带有与所述浏览器数据包;根据所述浏览器数据包中的属性信息对所述网页信息进行显示。According to another aspect of the present invention, there is also provided a data display method, including: sending a data request message carrying the browser user login ID to The server end of the browser obtains the browser data packet corresponding to the user login ID by the server end of the browser, wherein the browser data packet includes webpage information and attribute information thereof; The response message returned by the server end, wherein the response message carries the browser data packet; and the webpage information is displayed according to the attribute information in the browser data packet.
可选地,根据所述浏览器数据包中的属性信息对所述网页信息进行显示,包括:当所述属性信息包括操作指令,根据所述操作指令对所述网页信息进行处理,其中,所述操作指令包括以下至少之一:打开网页信息指令、编辑网页信息指令、还原网页状态指令;对处理结果进行显示。Optionally, displaying the webpage information according to the attribute information in the browser data packet includes: when the attribute information includes an operation instruction, processing the webpage information according to the operation instruction, wherein the The operation instructions include at least one of the following: instructions for opening webpage information, instructions for editing webpage information, instructions for restoring webpage status; displaying processing results.
可选地,所述还原网页状态指令至少包括以下任意之一:游戏类网页中,还原接收所述关闭指令时游戏关卡的环境;视频类网页中,还原接收所述关闭指令时视频播放的进度;音乐类网页中,还原接收所述关闭指令时音乐播放的进度;文本类网页中,还原接收所述关闭指令时文本阅读的进度;地图类网页中,还原接收所述关闭指令时所述地图类网页显示地址的地图。Optionally, the instruction to restore the state of the webpage includes at least any one of the following: in the game webpage, restore the environment of the game level when receiving the closing instruction; in the video webpage, restore the progress of video playback when receiving the closing instruction ; In the music class webpage, restore the progress of music playing when receiving the closing instruction; in the text class webpage, restore the progress of text reading when receiving the closing instruction; in the map class webpage, restore the map when receiving the closing instruction Class web page displays a map of addresses.
依据本发明的再一方面,还提供了一种浏览器,包括:登录模块,适于使用浏览器用户的登录身份标识信息ID登录本浏览器;接收模块,适于收到来自所述用户的关闭指令;确定模块,适于使用所述浏览器用户的登录ID登录本浏览器之后,当接收到所述关闭指令,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息;获取模块,适于若是,获取所述所有网页信息,并添加所述所有网页信息的属性信息至所述所有网页信息,生成浏览器数据包;上传模块,适于上传所述浏览器数据包至浏览器的服务器端。According to still another aspect of the present invention, a browser is also provided, including: a login module, adapted to use the browser user's login identity information ID to log in to the browser; a receiving module, adapted to receive a message from the user Closing instruction; determining module, after being suitable for using the login ID of described browser user to log in this browser, when receiving described closing instruction, determine whether to obtain all webpage information that this browser has opened at present moment according to preset operation command The acquisition module is adapted to obtain all the webpage information if so, and adds the attribute information of all the webpage information to the all webpage information to generate a browser data packet; the upload module is adapted to upload the browser data packet to the server side of the browser.
可选地,所述登录模块还适于:当所述本浏览器的状态值发生改变,则确定所述浏览器用户的登录ID登录成功。Optionally, the login module is further adapted to: when the state value of the browser changes, determine that the login ID of the browser user is successfully logged in.
可选地,所述预设操作命令包括缺省操作命令和/或所述浏览器用户预先设置的操作命令。Optionally, the preset operation commands include default operation commands and/or operation commands preset by the browser user.
可选地,所述确定模块还适于:根据预设操作命令显示操作选项,以供所述浏览器用户进行选择,其中,所述操作选项包括获取所述所有网页信息选项、拒绝获取所述所有网页信息选项;接收来自所述浏览器用户的选择指令,根据所述选择指令确定是否获取本浏览器当前时刻已打开的所有网页信息。Optionally, the determination module is further adapted to: display operation options according to a preset operation command for selection by the browser user, wherein the operation options include the option of obtaining all webpage information, refusing to obtain the All webpage information options: receiving a selection instruction from the browser user, and determining whether to acquire all the webpage information currently opened by the browser according to the selection instruction.
可选地,所述上传模块还包括:处理单元,适于对所述浏览器数据包进行处理,其中,对所述浏览器数据包进行处理的步骤包括以下至少之一:对所述已打开的所有网页信息进行过滤处理,其中,所述过滤处理至少包括以下任意之一:对所述浏览器数据包进行过滤处理,其中,所述过滤处理至少包括以下任意之一:过滤非超文本传输协议http网页信息和/或http安全版网页信息、删除所述浏览器数据包中的所述浏览器用户的个人信息数据、去除所述浏览器数据包中的重复信息;对所述浏览器数据包进行封装处理,生成轻量级数据交换格式json格式文件;对所述浏览器数据包进行加密处理;上传单元,适于添加校验字段至所述数据包;以及,采用请求体格式http post上传所述浏览器数据包至所述浏览器的服务器端。Optionally, the upload module further includes: a processing unit adapted to process the browser data packet, wherein the step of processing the browser data packet includes at least one of the following: processing the opened Filtering processing of all webpage information, wherein the filtering processing includes at least any one of the following: filtering the browser data packets, wherein the filtering processing includes at least any of the following: filtering non-hypertext transmission Protocol http webpage information and/or http security version webpage information, delete the personal information data of the browser user in the browser data packet, remove the repeated information in the browser data packet; The package is encapsulated to generate a lightweight data exchange format json format file; the browser data package is encrypted; the upload unit is adapted to add a verification field to the data package; and, the request body format is http post uploading the browser data packet to the server side of the browser.
可选地,所述浏览器还包括:所述接收模块,还适于接收来自所述浏览器用户的连接建立指令,其中,所述连接建立指令中携带有使用所述浏览器用户的登录ID登录的其他浏览器的标识信息;所述上传模块,还适于发送连接建立请求至所述浏览器的服务器端,其中,所述连接建立请求中携带有本浏览器的标识信息以及所述其他浏览器的标识信息。Optionally, the browser further includes: the receiving module, further adapted to receive a connection establishment instruction from the browser user, wherein the connection establishment instruction carries the login ID of the browser user The identification information of other browsers logged in; the upload module is also adapted to send a connection establishment request to the server side of the browser, wherein the connection establishment request carries the identification information of the browser and the other Identifying information for the browser.
可选地,所述属性信息包括操作指令。Optionally, the attribute information includes an operation instruction.
依据本发明的又一方面,还提供了一种浏览器的服务器,包括:接收模块,适于接收第一浏览器上传的浏览器数据包,其中,所述浏览器数据包中包括所述第一浏览器的所有网页信息及其属性信息;存储模块,适于将所述浏览器数据包与浏览器用户登录身份标识信息ID对应存储至数据库;所述接收模块,还适于接收到来自第二浏览器的、携带有所述浏览器用户登录ID的数据请求消息;获取模块,适于当所述接收模块接收到所述数据请求消息,获取与所述用户登录ID对应的浏览器数据包;发送模块,适于发送应答消息至所述第二浏览器,其中,所述应答消息中携带有所述浏览器数据包。According to yet another aspect of the present invention, a browser server is also provided, including: a receiving module adapted to receive a browser data packet uploaded by the first browser, wherein the browser data packet includes the first All webpage information and attribute information thereof of a browser; The storage module is suitable for storing the browser data packet and the browser user login identity information ID correspondingly to the database; The receiving module is also suitable for receiving information from the first 2. The data request message of the browser carrying the browser user login ID; the acquisition module is adapted to obtain the browser data packet corresponding to the user login ID when the receiving module receives the data request message a sending module, adapted to send a response message to the second browser, wherein the browser data packet is carried in the response message.
可选地,所述存储模块还适于:添加时间戳信息至所述浏览器数据包;保存添加时间戳信息完成的浏览器数据包至所述数据库。Optionally, the storage module is further adapted to: add time stamp information to the browser data package; save the browser data package with time stamp information added to the database.
可选地,所述浏览器的服务器还包括:所述接收模块,还适于接收来自所述第一浏览器的连接建立请求,其中,所述连接建立请求中携带有所述第一浏览器的标识信息以及所述第二浏览器的标识信息;所述保存模块,还适于根据所述连接建立请求建立所述第一浏览器与所述第二浏览器的关联关系并保存,以供所述第二浏览器根据所述关联关系对所述第一浏览器的浏览器数据包进行还原。Optionally, the server of the browser further includes: the receiving module, further adapted to receive a connection establishment request from the first browser, wherein the connection establishment request carries the connection establishment request of the first browser. The identification information of the second browser and the identification information of the second browser; the saving module is also adapted to establish and save the association relationship between the first browser and the second browser according to the connection establishment request, for The second browser restores the browser data package of the first browser according to the association relationship.
可选地,所述保存模块还适于:对所述浏览器数据包携带的、所述第一浏览器的所有网页信息进行格式转换,得到转换结果,其中,所述转换结果能够通过运行在不同类型的设备上的所述第二浏览器进行显示;以及,保存转换结果至所述数据库。Optionally, the saving module is further adapted to: perform format conversion on all webpage information of the first browser carried in the browser data packet to obtain a conversion result, wherein the conversion result can be obtained by running the displaying by the second browser on a different type of device; and saving the converted result to the database.
依据本发明的又一方面,还提供了一种浏览器,包括:登录模块,适于使用浏览器用户的登录身份标识信息ID登录本浏览器;发送模块,适于所述登录模块登录本浏览器时,发送携带有所述浏览器用户登录ID的数据请求消息至浏览器的服务器端,由所述浏览器的服务器端获取与所述浏览器用户登录ID对应的浏览器数据包,其中,所述浏览器数据包中包括网页信息及其属性信息;接收模块,适于接收所述浏览器的服务器端返回的所述应答消息,其中,所述应答消息中携带有所述浏览器数据包;显示模块,适于根据所述浏览器数据包中的属性信息对所述网页信息进行显示。According to yet another aspect of the present invention, a browser is also provided, including: a login module, adapted to use the browser user's login identity information ID to log in to the browser; a sending module, adapted to log in to the browser with the login module When using the browser, send a data request message carrying the browser user login ID to the server end of the browser, and obtain the browser data packet corresponding to the browser user login ID by the server end of the browser, wherein, The browser data packet includes webpage information and its attribute information; a receiving module adapted to receive the response message returned by the server end of the browser, wherein the response message carries the browser data packet ; A display module, adapted to display the webpage information according to the attribute information in the browser data packet.
可选地,所述显示模块还适于:当所述属性信息包括操作指令,根据所述操作指令对所述网页信息进行处理,其中,所述操作指令包括以下至少之一:打开网页信息指令、编辑网页信息指令、还原网页状态指令;以及,对处理结果进行显示。Optionally, the display module is further adapted to: when the attribute information includes an operation instruction, process the webpage information according to the operation instruction, wherein the operation instruction includes at least one of the following: an instruction to open webpage information , an instruction to edit webpage information, an instruction to restore a webpage status; and, display a processing result.
依据本发明的又一方面,还提供了一种数据传输系统,包括如上所述的第一浏览器,如上所述的浏览器的服务器以及如上所述的第二浏览器,其中,所述第一浏览器,适于使用浏览器用户的登录身份标识信息ID登录本浏览器;接收到来自所述浏览器用户的关闭指令,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息;若是,获取所述所有网页信息,并添加所述所有网页信息的属性信息至所述所有网页信息,生成浏览器数据包;上传所述浏览器数据包至浏览器的服务器端;所述浏览器的服务器,适于接收所述第一浏览器上传的所述浏览器数据包,将其与所述浏览器用户登录ID对应存储至数据库;当接收到来自所述第二浏览器的、携带有所述浏览器用户登录ID的数据请求消息,获取与所述浏览器用户登录ID对应的浏览器数据包;发送应答消息至所述第二浏览器,其中,所述应答消息中携带有所述浏览器数据包;所述第二浏览器,适于使用所述浏览器用户的登录ID登录时,发送所述数据请求消息至所述浏览器的服务器端;接收所述浏览器的服务器端返回的所述应答消息,其中,所述应答消息中携带有与所述浏览器数据包;根据所述浏览器数据包中的属性信息对所述网页信息进行显示。According to another aspect of the present invention, there is also provided a data transmission system, including the above-mentioned first browser, the above-mentioned browser server and the above-mentioned second browser, wherein the first A browser, suitable for using the login identity information ID of the browser user to log into the browser; receiving a closing instruction from the browser user, determining whether to obtain all the browsers that have been opened at the current moment according to the preset operation command web page information; if so, obtain all the web page information, and add the attribute information of all the web page information to the all web page information to generate a browser data packet; upload the browser data packet to the server end of the browser; The server of the browser is adapted to receive the browser data packet uploaded by the first browser, and store it in a database corresponding to the browser user login ID; when receiving the browser data packet from the second browser . A data request message carrying the browser user login ID, obtaining a browser data packet corresponding to the browser user login ID; sending a response message to the second browser, wherein the response message carries There is the browser data packet; the second browser is adapted to send the data request message to the server end of the browser when logging in using the login ID of the browser user; receiving the browser's The response message returned by the server, wherein the response message carries the browser data packet; and the web page information is displayed according to the attribute information in the browser data packet.
依据本发明实施例的数据传输方法,能够使用浏览器用户的登录身份标识信息ID登录本浏览器,在接收到来自浏览器用户的关闭指令时,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息。若是,本发明实施例获取所有网页信息,并添加所有网页信息的属性信息至所有网页信息,生成浏览器数据包,以及上传浏览器数据包至浏览器的服务器端。由此可知,依据本发明实施例的数据传输方法能够解决现有技术中在根据用户的关闭指令关闭本浏览器的所有网页信息时无法自动保存网页信息的问题。本发明实施例中,当接收到浏览器用户的关闭指令,并根据预设操作确定获取本浏览器当前时刻已打开的所有网页信息时,能够将当前时刻已打开的所有网页信息及其属性信息打包成浏览器数据包,并上传至服务器端,则当用户需要继续对本次关闭的网页信息进行浏览等操作时,在再次登录浏览器时,能够依据本次上传的数据包对关闭时的网页信息进行还原,避免用户重新查找网页,以及重新查找网页中上一次浏览或者观看或者阅读的进度,提高用户的操作效率,提升用户体验。According to the data transmission method of the embodiment of the present invention, the login identity information ID of the browser user can be used to log in to the browser, and when a closing instruction from the browser user is received, it is determined whether to obtain the current status of the browser according to the preset operation command. Information about all web pages that have been opened at any time. If so, the embodiment of the present invention acquires all webpage information, adds attribute information of all webpage information to all webpage information, generates a browser data packet, and uploads the browser data packet to the server end of the browser. It can be seen that the data transmission method according to the embodiment of the present invention can solve the problem in the prior art that the webpage information cannot be automatically saved when all the webpage information of the browser is closed according to the closing instruction of the user. In the embodiment of the present invention, when receiving the closing instruction from the browser user and determining to acquire all the webpage information that the browser has opened at the current moment according to the preset operation, all the webpage information and its attribute information that have been opened at the current moment can be obtained Packaged into a browser data package and uploaded to the server, when the user needs to continue to browse the closed web page information, when logging in to the browser again, the closed page information can be corrected according to the uploaded data package. The web page information is restored to prevent the user from re-searching the web page and re-finding the progress of the last browsing or viewing or reading in the web page, improving the user's operation efficiency and user experience.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。Those skilled in the art will be more aware of the above and other objects, advantages and features of the present invention according to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明一个实施例的应用于第一浏览器的数据传输方法的处理流程图;FIG. 1 shows a processing flowchart of a data transmission method applied to a first browser according to an embodiment of the present invention;
图2示出了根据本发明一个优选实施例的显示操作选项的界面示意图;Fig. 2 shows a schematic diagram of an interface displaying operation options according to a preferred embodiment of the present invention;
图3示出了根据本发明一个优选实施例的对浏览器数据包进行处理的处理流程图;Fig. 3 shows the processing flowchart of processing browser data packets according to a preferred embodiment of the present invention;
图4示出了根据本发明一个优选实施例的数据传输方法的处理流程图;Fig. 4 shows the processing flowchart of the data transmission method according to a preferred embodiment of the present invention;
图5示出了根据本发明一个实施例的应用于浏览器的服务器端的数据传输方法;FIG. 5 shows a data transmission method applied to a server end of a browser according to an embodiment of the present invention;
图6示出了根据本发明一个实施例的数据显示方法的处理流程图;FIG. 6 shows a processing flowchart of a data display method according to an embodiment of the present invention;
图7示出了根据本发明一个实施例的第一浏览器的结构示意图;FIG. 7 shows a schematic structural diagram of a first browser according to an embodiment of the present invention;
图8示出了根据本发明一个优选实施例的第一浏览器的结构示意图;Fig. 8 shows a schematic structural diagram of a first browser according to a preferred embodiment of the present invention;
图9示出了根据本发明一个实施例的浏览器的服务器的结构示意图;FIG. 9 shows a schematic structural diagram of a browser server according to an embodiment of the present invention;
图10示出了根据本发明一个实施例的第二浏览器的结构示意图;以及FIG. 10 shows a schematic structural diagram of a second browser according to an embodiment of the present invention; and
图11示出了根据本发明一个实施例的数据传输系统的结构示意图。Fig. 11 shows a schematic structural diagram of a data transmission system according to an embodiment of the present invention.
具体实施方式Detailed ways
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
为解决上述技术问题,本发明实施例提供了一种数据传输方法,应用于上传本浏览器的数据的浏览器,本文中,为介绍简洁,将该浏览器称为第一浏览器。图1示出了根据本发明一个实施例的应用于第一浏览器的数据传输方法的处理流程图。参见图1,该流程至少包括步骤S102至步骤S108。In order to solve the above technical problems, an embodiment of the present invention provides a data transmission method, which is applied to a browser that uploads the data of the browser. In this document, for the sake of brevity, the browser is referred to as the first browser. Fig. 1 shows a processing flowchart of a data transmission method applied to a first browser according to an embodiment of the present invention. Referring to Fig. 1, the process includes at least step S102 to step S108.
步骤S102、使用浏览器用户的登录身份标识信息(Identification,以下简称ID)登录本浏览器;Step S102, using the login identity information (Identification, hereinafter referred to as ID) of the browser user to log in to the browser;
步骤S104、接收到来自浏览器用户的关闭指令,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息;Step S104, receiving a closing command from the browser user, and determining whether to acquire all the webpage information that the browser has opened at the current moment according to the preset operation command;
步骤S106、若是,获取所有网页信息,并添加所有网页信息的属性信息至所有网页信息,生成浏览器数据包;Step S106, if yes, obtain all webpage information, and add attribute information of all webpage information to all webpage information, and generate a browser data packet;
步骤S108、上传浏览器数据包至浏览器的服务器端。Step S108, uploading the browser data package to the server side of the browser.
依据本发明实施例的数据传输方法,能够使用浏览器用户的登录ID登录本浏览器,在接收到来自浏览器用户的关闭指令时,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息。若是,本发明实施例获取所有网页信息,并添加所有网页信息的属性信息至所有网页信息,生成浏览器数据包,以及上传浏览器数据包至浏览器的服务器端。由此可知,依据本发明实施例的数据传输方法能够解决现有技术中在根据用户的关闭指令关闭本浏览器的所有网页信息时无法自动保存网页信息的问题。本发明实施例中,当接收到浏览器用户的关闭指令,并根据预设操作确定获取本浏览器当前时刻已打开的所有网页信息时,能够将当前时刻已打开的所有网页信息及其属性信息打包成浏览器数据包,并上传至服务器端,则当用户需要继续对本次关闭的网页信息进行浏览等操作时,在再次登录浏览器时,能够依据本次上传的数据包对关闭时的网页信息进行还原,避免用户重新查找网页,以及重新查找网页中上一次浏览或者观看或者阅读的进度,提高用户的操作效率,提升用户体验。According to the data transmission method of the embodiment of the present invention, the login ID of the browser user can be used to log in to the browser, and when a closing instruction from the browser user is received, it is determined according to the preset operation command whether the browser is currently open or not. All web page information for . If so, the embodiment of the present invention acquires all webpage information, adds attribute information of all webpage information to all webpage information, generates a browser data packet, and uploads the browser data packet to the server end of the browser. It can be seen that the data transmission method according to the embodiment of the present invention can solve the problem in the prior art that the webpage information cannot be automatically saved when all the webpage information of the browser is closed according to the closing instruction of the user. In the embodiment of the present invention, when receiving the closing instruction from the browser user and determining to acquire all the webpage information that the browser has opened at the current moment according to the preset operation, all the webpage information and its attribute information that have been opened at the current moment can be obtained Packaged into a browser data package and uploaded to the server, when the user needs to continue to browse the closed web page information, when logging in to the browser again, the closed page information can be corrected according to the uploaded data package. The web page information is restored to prevent the user from re-searching the web page and re-finding the progress of the last browsing or viewing or reading in the web page, improving the user's operation efficiency and user experience.
上文提及,本发明实施例中使用浏览器用户的登录ID登录第一浏览器,具体地,本发明实施例中通过确定第一浏览器的状态值发生改变,确定浏览器用户的登录ID登录第一浏览器成功。登录成功之后,本发明实施例可以接收来自浏览器用户的连接建立指令,其中,该连接建立指令中携带有使用浏览器用户的登录ID登录的其他浏览器的标识信息。接收到连接建立指令之后,发送携带有第一浏览器的标识信息以及其他浏览器的标识信息的连接建立请求至浏览器的服务器端。当浏览器用户使用登录ID在其他浏览器登录之后,浏览器的服务器端根据保存的第一浏览器与其他浏览器的连接关系将第一浏览器的数据包发送至其他浏览器进行显示。As mentioned above, in the embodiment of the present invention, the login ID of the browser user is used to log in to the first browser. Specifically, in the embodiment of the present invention, the login ID of the browser user is determined by determining that the status value of the first browser has changed. Login to the first browser is successful. After the login is successful, the embodiment of the present invention may receive a connection establishment instruction from the browser user, wherein the connection establishment instruction carries identification information of other browsers logged in using the browser user's login ID. After receiving the connection establishment instruction, send a connection establishment request carrying the identification information of the first browser and the identification information of other browsers to the server side of the browser. After the browser user uses the login ID to log in to other browsers, the server side of the browser sends the data packets of the first browser to other browsers for display according to the saved connection relationship between the first browser and other browsers.
另外,当登录成功之后,若接收到来自浏览器用户的关闭指令,如图1中的步骤S104所示,根据预设操作命令确定是否获取第一浏览器当前时刻已打开的所有网页信息。本发明实施例中,预设操作命令至少包括缺省操作命令和/或浏览器用户预先设置的操作命令。其中,缺省操作命令可以是获取第一浏览器当前时刻已打开的所有网页信息,可以是拒绝获取第一浏览器当前时刻已打开的所有网页信息,还可以是显示操作选项,以供浏览器用户进行选择。如图2示出了根据本发明一个优选实施例的显示操作选项的界面示意图。在浏览器界面显示如图2所示的显示操作选项的界面,则根据接收到的、来自用户的选择指令确定是否获取第一浏览器当前时刻已打开的所有网页信息。另外,用户预先设置的操作命令也包括上文介绍缺省命令时提及的三种情况:获取所有网页信息、拒绝获取所有网页信息,以及显示操作选项,并根据接收的用户的选择指令确定是否获取所有网页信息。In addition, after the login is successful, if a closing instruction from the browser user is received, as shown in step S104 in FIG. 1 , it is determined according to the preset operation command whether to acquire all the webpage information that the first browser has opened at the moment. In the embodiment of the present invention, the preset operation commands include at least default operation commands and/or operation commands preset by the browser user. Wherein, the default operation command can be to obtain all the webpage information that the first browser has opened at the current moment, it can be to refuse to obtain all the webpage information that the first browser has opened at the current moment, and it can also be to display operation options for the browser The user makes a selection. FIG. 2 shows a schematic diagram of an interface displaying operation options according to a preferred embodiment of the present invention. When the browser interface displays an interface displaying operation options as shown in FIG. 2 , then it is determined whether to acquire all the webpage information that the first browser has opened at the current moment according to the received selection instruction from the user. In addition, the operation commands preset by the user also include the three situations mentioned above when introducing the default command: obtaining all web page information, refusing to obtain all web page information, and displaying operation options, and determining whether to Get all web page information.
当确定获取第一浏览器当前时刻已打开的所有网页信息时,获取所有网页信息,并添加所有网页信息的属性信息至所有网页信息,生成浏览器数据包。其中,属性信息包括操作指令。本发明实施例中,网页信息可以是任意类型的网页信息,例如,可以是游戏类网页信息、视频类网页信息、音乐类网页信息、文本类网页信息,甚至地图类网页信息。而操作指令包括打开网页信息指令、编辑网页信息指令以及还原网页状态指令。其中,操作指令中的还原网页状态指令包括根据不同网页信息的类型对网页状态进行还原。具体地,当网页信息为游戏类网页信息时,根据还原网页状态指令能够还原接收关闭指令时游戏关卡的环境,如大型网络游戏中,浏览器用户使用的游戏角色在第一浏览器关闭时所处的游戏内环境,再如网页游戏中,浏览器用户在第一浏览器关闭时已玩到的游戏级别。当网页信息为视频类网页信息时,根据还原网页状态指令能够还原关闭第一浏览器时,视频播放的进度,同理,当网页信息为音乐类网页信息时,根据还原网页状态指令能够还原关闭第一浏览器时音乐播放的进度。而当网页信息为文本类网页信息是,根据还原网页状态指令能够还原关闭第一浏览器时,文本阅读的进度。例如,网页信息为某部小说的网页,则对该网页信息进行还原时,能够还原至关闭第一浏览器时浏览器用户阅读至的该小说的当前章节,以保证用户无需寻找上一次的阅读进度,直接进行阅读。当网页信息为地图类网页信息是,根据还原网页状态指令能够还原第一浏览器关闭时,地图类网页显示地址的地图。When it is determined to acquire all the webpage information currently opened by the first browser, acquire all the webpage information, add attribute information of all webpage information to all webpage information, and generate a browser data packet. Wherein, the attribute information includes operation instructions. In the embodiment of the present invention, the webpage information may be any type of webpage information, for example, it may be game webpage information, video webpage information, music webpage information, text webpage information, or even map webpage information. The operation instructions include an instruction to open webpage information, an instruction to edit webpage information, and an instruction to restore webpage status. Wherein, the instruction for restoring the webpage state in the operation instruction includes restoring the state of the webpage according to different types of webpage information. Specifically, when the webpage information is game-type webpage information, the environment of the game level when the closing instruction is received can be restored according to the restoring webpage state instruction, such as in a large-scale online game, the game character used by the browser user is displayed when the first browser is closed. The environment in the game, such as in the web game, the game level that the browser user has played when the first browser is closed. When the webpage information is video webpage information, the progress of video playback can be restored according to the restore webpage status instruction when the first browser is closed. Similarly, when the webpage information is music webpage information, the shutdown can be restored according to the restore webpage status instruction The progress of music playback in the first browser. And when the webpage information is text-type webpage information, the progress of text reading can be restored when the first browser is closed according to the restore webpage state instruction. For example, if the web page information is a web page of a certain novel, when the web page information is restored, it can be restored to the current chapter of the novel read by the browser user when the first browser is closed, so that the user does not need to search for the last reading Progress, read directly. When the webpage information is map-type webpage information, the map-type webpage displays a map of the address when the first browser is closed according to the restoring webpage state instruction.
当添加所有网页信息的属性信息至所有网页信息生成浏览器数据包之后,为保护用户的信息安全,避免用户的账号等信息被不法分子非法获取,并用以谋取非法利益,导致浏览器用户的信息财产等收到侵害,本发明实施例优选对生成的浏览器数据包进行处理,并将经过处理的浏览器数据包上传至浏览器的服务器端。具体地,本发明实施例对浏览器数据包进行处理的步骤或者方式或者手段包括下文介绍的至少之一。After adding the attribute information of all web page information to all web page information to generate browser data packets, in order to protect the user's information security, prevent the user's account number and other information from being illegally obtained by criminals and used for illegal benefits, resulting in browser user information Property etc. are infringed, the embodiment of the present invention preferably processes the generated browser data packet, and uploads the processed browser data packet to the server end of the browser. Specifically, the steps or ways or means for processing the browser data packets in this embodiment of the present invention include at least one of the methods described below.
对浏览器数据包进行过滤处理。在对浏览器数据包进行过滤处理的过程中,本发明实施例过滤非超文本传输协议(Hypertext transfer protocol,以下简称http)网页信息和/或http安全版网页信息,保证浏览器数据包传输过程的安全,另外在该过滤操作中删除已打开的所有网页信息中的浏览器用户的个人信息数据以保证用户的信息安全,去除网页信息中的重复信息以避免传输资源的浪费。Filter browser data packets. In the process of filtering browser data packets, the embodiment of the present invention filters non-Hypertext transfer protocol (Hypertext transfer protocol, hereinafter referred to as http) web page information and/or http security version web page information to ensure the browser data packet transmission process In addition, in this filtering operation, the browser user’s personal information data in all opened webpage information is deleted to ensure the user’s information security, and duplicate information in the webpage information is removed to avoid waste of transmission resources.
对浏览器数据包进行封装处理,生成轻量级数据交换格式(JavaScript ObjectNotation,以下简称json格式)文件。json语言采用完全独立于语音的文本格式,并且使用类似常用语言家族的习惯,这些特性使得json格式方便阅读和编写,同时利于及其解析及生成。因此,本发明实施例中,将浏览器数据包处理成json格式的文件,以便浏览器数据包能够在不同的设备上展示。The browser data packet is encapsulated to generate a lightweight data exchange format (JavaScript ObjectNotation, hereinafter referred to as json format) file. The json language adopts a text format that is completely independent of speech, and uses habits similar to common language families. These features make the json format easy to read and write, and at the same time facilitate its analysis and generation. Therefore, in the embodiment of the present invention, the browser data packet is processed into a file in json format, so that the browser data packet can be displayed on different devices.
另外,本发明实施例对浏览器数据包进行加密处理,以保证浏览数据包的安全,避免不法分子利用浏览器数据包非法掌握浏览器用户的相关信息。在对浏览器数据包进行处理时,本发明实施例可以选择上文介绍的处理方式中的一种或几种对浏览器数据包进行处理。图3示出了根据本发明一个优选实施例的对浏览器数据包进行处理的处理流程图。图3所示的流程图中,对浏览器数据包进行了上文介绍的三种处理方式。参见图3,该流程至少包括步骤S302至步骤S306。In addition, the embodiment of the present invention encrypts the browser data packet to ensure the security of the browsing data packet and prevent criminals from using the browser data packet to illegally obtain relevant information of the browser user. When processing the browser data packet, the embodiment of the present invention may select one or more of the processing methods introduced above to process the browser data packet. Fig. 3 shows a flow chart of processing browser data packets according to a preferred embodiment of the present invention. In the flowchart shown in FIG. 3 , the browser data packets are processed in the three ways described above. Referring to Fig. 3, the process includes at least step S302 to step S306.
步骤S302、对浏览器数据包执行过滤处理。Step S302, performing filtering processing on the browser data packet.
具体地,对浏览器数据包执行过滤操作时,至少包括执行以下三项操作:Specifically, when performing filtering operations on browser data packets, at least the following three operations are performed:
1、排除浏览器数据包中的非http和/或http安全版的网页信息;1. Exclude non-http and/or http secure version web page information in the browser data packet;
2、删除浏览器数据包中含有的隐私信息,例如浏览器用户在网页中输入的用户名和/或用户密码等信息;2. Delete the private information contained in the browser data package, such as the user name and/or user password entered by the browser user in the web page;
3、去除浏览器数据包中的重复信息。3. Remove the repeated information in the browser data packet.
步骤S304、对浏览器数据包进行封装处理。Step S304, encapsulating the browser data packet.
具体地,本例中,对浏览器数据包进行封装处理,生成json格式文件。例如,生成的文件的格式为:Specifically, in this example, the browser data packet is encapsulated to generate a json format file. For example, the format of the generated file is:
步骤S306、使用高级加密标准(Advanced Encryption Standard,以下简称AES)对浏览器书包进行加密处理,流程结束。Step S306, encrypting the browser school bag by using Advanced Encryption Standard (Advanced Encryption Standard, hereinafter referred to as AES), and the flow ends.
具体地,本发明实施例可以采用和浏览器的服务器端约定的密钥对浏览器数据包进行加密,以保证浏览器的服务器端接收到浏览器书包之后,能够根据约定的密钥进行解密处理。Specifically, in the embodiment of the present invention, the browser data packet can be encrypted using the key agreed with the browser server, so as to ensure that after the browser server receives the browser school bag, it can decrypt it according to the agreed key. .
需要说明的是,上文介绍的三种对浏览器数据包进行处理的方式仅为本发明实施例优选的对浏览器数据包进行处理的方式,并非对本发明的限制。It should be noted that the three methods for processing browser data packets introduced above are only preferred methods for processing browser data packets in the embodiment of the present invention, and are not limitations of the present invention.
当对浏览器数据包进行处理之后,本发明实施例将浏览器数据包上传至浏览器的服务器端。具体地,在上传浏览器数据包至浏览器的服务器端时,本发明实施例添加校验字段值浏览器数据包,以保证浏览器数据包的数据正确性以及数据完整性。并且,本发明实施例中优选采用http post(一种请求体格式)上传浏览器数据包至浏览器的服务器端。采用http post进行上传操作时,对上传的浏览器数据包的数据大小无限制,另外该种上传方式中,被上传的浏览器数据包存放于请求的消息主体内,并且使用特定的编码格式进行编码,因此,具有较高的安全性。After the browser data packet is processed, the embodiment of the present invention uploads the browser data packet to the server end of the browser. Specifically, when uploading the browser data packet to the server of the browser, the embodiment of the present invention adds a check field value to the browser data packet to ensure data correctness and data integrity of the browser data packet. Moreover, in the embodiment of the present invention, it is preferable to use http post (a request body format) to upload the browser data packet to the server end of the browser. When using http post to upload, there is no limit to the data size of the uploaded browser data packet. In addition, in this upload method, the uploaded browser data packet is stored in the message body of the request, and is processed using a specific encoding format. Encoding, therefore, has higher security.
实施例一Embodiment one
为将上文各优选实施例提供的应用于第一浏览器的数据传输方法阐述得更加清楚明白,现提供一个优选实施例对本发明实施例的数据传输方法进行介绍。图4示出了根据本发明一个优选实施例的数据传输方法的处理流程图。参见图4,该流程至少包括步骤S402至步骤S410。In order to clarify the data transmission method applied to the first browser provided by the above preferred embodiments, a preferred embodiment is now provided to introduce the data transmission method of the embodiment of the present invention. Fig. 4 shows a processing flowchart of a data transmission method according to a preferred embodiment of the present invention. Referring to Fig. 4, the process at least includes step S402 to step S410.
步骤S402、接收来自浏览器用户的关闭指令,根据预设操作命令确定是否获取第一浏览器当前时刻已打开的所有网页信息。若是,执行步骤S404,若否,执行步骤S410。Step S402 , receiving a closing instruction from the browser user, and determining whether to obtain information on all webpages currently opened by the first browser according to a preset operation command. If yes, execute step S404; if not, execute step S410.
具体地,本例中,预设操作命令包括缺省操作命令和/或浏览器用户预先设置的操作命令。其中,缺省指令包括拒绝上传所有网页信息的指令、上传所有网页信息的指令,以及显示操作选项以询问用户是否上传的指令。而用户预先设置的操作命令可以是预先设置拒绝上传所有网页信息,可以是预先设置上传所有网页信息,还可以是预先设置每次接收到关闭指令时显示操作选项以对是否上传网页信息进行询问。Specifically, in this example, the preset operation commands include default operation commands and/or operation commands preset by the browser user. Wherein, the default instruction includes an instruction of refusing to upload all webpage information, an instruction of uploading all webpage information, and an instruction of displaying operation options to ask the user whether to upload. The user's preset operation command can be preset to refuse to upload all webpage information, can be preset to upload all webpage information, and can also be preset to display operation options to inquire whether to upload webpage information every time a closing instruction is received.
步骤S404、根据第一浏览器当前时刻已打开的所有网页信息生成浏览器数据包。Step S404, generating a browser data packet according to information of all webpages currently opened by the first browser.
具体地,获取接收到来自浏览器用户的关闭指令时第一浏览器已打开的所有网页信息,并添加所有网页信息的属性信息(如操作指令)至所有网页信息,生成浏览器数据包。Specifically, obtain all webpage information that the first browser has opened when receiving the closing instruction from the browser user, and add attribute information (such as operation instructions) of all webpage information to all webpage information to generate a browser data packet.
步骤S406、对浏览器数据包进行处理。Step S406, processing the browser data packet.
具体地,首先对浏览器数据包执行过滤处理,排除浏览器书包中的非http和/或http安全版的网页信息,删除浏览器数据包中浏览器用户的用户名称和/或用户密码等用户信息,并去除浏览器数据包中的重复信息。其次,对浏览器数据包执行封装处理,生成json格式文件。最后,对浏览器数据包执行加密处理。Specifically, first perform filtering processing on the browser data packet, exclude non-http and/or http security version webpage information in the browser bag, and delete the user name and/or user password of the browser user in the browser data packet. information, and remove duplicate information in browser packets. Second, perform encapsulation processing on the browser data packet to generate a json format file. Finally, an encryption process is performed on the browser packet.
步骤S408、上传浏览器数据包至浏览器的服务器端。Step S408, uploading the browser data package to the server side of the browser.
当上传浏览器数据包至浏览器的服务器端,添加校验字段至浏览器数据包,以保证浏览器数据包的完整性,并且采用http post方式上传浏览器数据包至浏览器的服务器端。When uploading the browser data packet to the server side of the browser, add a verification field to the browser data packet to ensure the integrity of the browser data packet, and upload the browser data packet to the browser server side by means of http post.
步骤S410、关闭第一浏览器,流程结束。Step S410, close the first browser, and the process ends.
基于上文各优选实施例提供的应用于第一浏览器的数据传输方法,基于同一发明构思,本发明实施例提供了一种应用于浏览器的服务器端的数据传输方法。图5示出了根据本发明一个实施例的应用于浏览器的服务器端的数据传输方法。参见图5,该流程至少包括步骤S502至步骤S506。Based on the data transmission method applied to the first browser provided by the above preferred embodiments and based on the same inventive concept, the embodiment of the present invention provides a data transmission method applied to the server side of the browser. FIG. 5 shows a data transmission method applied to a server side of a browser according to an embodiment of the present invention. Referring to Fig. 5, the process at least includes step S502 to step S506.
步骤S502、接收第一浏览器上传的浏览器数据包,将其与浏览器用户登录身份标识ID对应存储至数据库,其中,浏览器数据包中包括第一浏览器的所有网页信息及其属性信息;Step S502, receiving the browser data packet uploaded by the first browser, and storing it in the database corresponding to the browser user login identity ID, wherein the browser data packet includes all webpage information and attribute information of the first browser ;
步骤S504、当接收到携带有浏览器用户登录ID的数据请求消息,获取与浏览器用户登录ID对应的浏览器数据包;Step S504, when receiving the data request message carrying the browser user login ID, obtain the browser data packet corresponding to the browser user login ID;
步骤S506、发送应答消息至第二浏览器,其中,应答消息中携带有与浏览器用户登录ID对应的浏览器数据包。Step S506 , sending a response message to the second browser, wherein the response message carries a browser data packet corresponding to the browser user login ID.
依据本发明实施例的数据传输方法,能够接收第一浏览器上传的浏览器数据包,将其与浏览器用户的登录ID对应存储至数据库。当接收到携带有浏览器用户登录ID的数据请求消息,获取与浏览器用户登录ID对应的浏览器数据包,并发送应答消息至第二浏览器,其中,应答消息中携带有与浏览器用户的登录ID对应的浏览器数据包。因此,依据本发明实施例的数据传输方法能够将接收到浏览器用户的关闭指令时浏览器打开的网页信息保存至浏览器的服务器端,当用户再次登录浏览器时,无需重复多次的查找等操作即能够直接继续进行之前中断的操作,如视频播放、音乐播放、文本阅读等,简化用户操作,提升用户体验。According to the data transmission method of the embodiment of the present invention, the browser data packet uploaded by the first browser can be received, and stored in the database corresponding to the login ID of the browser user. When receiving the data request message carrying the browser user login ID, obtain the browser data packet corresponding to the browser user login ID, and send a response message to the second browser, wherein the response message carries the browser user login ID. The browser packet corresponding to the login ID. Therefore, the data transmission method according to the embodiment of the present invention can save the webpage information opened by the browser to the server side of the browser when receiving the closing instruction from the browser user, and when the user logs in to the browser again, there is no need to repeat multiple search Waiting for operations can directly continue the previously interrupted operations, such as video playback, music playback, text reading, etc., simplifying user operations and improving user experience.
上文提及,本发明实施例中,当接收到来自第二浏览器的数据请求消息,发送携带有与浏览器用户登录ID对应的浏览器数据包的应答消息至第二浏览器,以在第二浏览器侧打开浏览器数据包中的网页信息,则浏览器用户能够在第二浏览器中继续之前中断的各种操作。为保证浏览器用户在第二浏览器继续中断的操作时,在第二浏览器侧打开的是最近一次用户中断操作时的场景(如视频最近一次的播放进度或者文本最新的阅读进度),在将接收到的浏览器数据包存储至数据库时,本发明实施例优选添加时间戳信息至浏览器数据包,并保存添加时间戳信息完成的浏览器数据包至数据库。当根据第二浏览器的数据请求消息,返回对应的浏览器数据包至第二浏览器时,可以根据浏览器数据包的时间戳信息在第二浏览器侧打开浏览器数据包中的网页信息,还可以是根据时间戳信息对浏览器数据包中的网页信息进行列表显示,以供用户选择开启需要的时间的网页信息。As mentioned above, in the embodiment of the present invention, when a data request message from the second browser is received, a response message carrying a browser data packet corresponding to the browser user login ID is sent to the second browser to When the second browser side opens the web page information in the browser data packet, the browser user can continue various operations that were interrupted before in the second browser. In order to ensure that the browser user continues the interrupted operation in the second browser, what is opened on the second browser side is the scene when the user interrupted the operation last time (such as the latest playback progress of the video or the latest reading progress of the text), in When storing the received browser data packet in the database, the embodiment of the present invention preferably adds time stamp information to the browser data packet, and saves the browser data packet with the added time stamp information in the database. When the corresponding browser data packet is returned to the second browser according to the data request message of the second browser, the web page information in the browser data packet can be opened on the second browser side according to the timestamp information of the browser data packet , it is also possible to list and display the webpage information in the browser data packet according to the time stamp information, so that the user can choose to open the webpage information at the required time.
另外,本发明实施例中,还可以接收来自第一浏览器的连接建立请求,其中,该连接建立请求中携带有第一浏览器的标识信息以及第二浏览器的标识信息。根据接收到的连接建立请求,建立第一浏览器与第二浏览器的关联关系并保存,则第二浏览器能够根据建立的关联关系对第一浏览器的浏览器数据包进行还原。例如,第一浏览器为电脑设备上登录的浏览器,第二浏览器为手机设备上登录的浏览器,当第一浏览器与第二浏览器建立关联关系之后,浏览器用户在家里的第一浏览器上阅读小说,当需要上班时,可以关闭第一浏览器,打开第二浏览器,则在第二浏览器中能够还原用户之前阅读的小说,以及已经阅读的进度,以便用户能够通过手机设备在上班途中继续阅读该小说。In addition, in the embodiment of the present invention, a connection establishment request from the first browser may also be received, wherein the connection establishment request carries identification information of the first browser and identification information of the second browser. According to the connection establishment request received, establish and save the association relationship between the first browser and the second browser, and then the second browser can restore the browser data package of the first browser according to the established association relationship. For example, the first browser is the browser logged in on the computer device, and the second browser is the browser logged in on the mobile phone device. After the first browser and the second browser establish an association relationship, the browser user will When reading novels on a browser, when you need to go to work, you can close the first browser and open the second browser, then the novels you have read before and the progress you have read can be restored in the second browser, so that users can pass The mobile device continues to read the novel on the way to work.
由上例可以看出,第一浏览器与第二浏览器可能处于不同类型的设备,而实际操作中,由于第一浏览器与第二浏览器处于不同类型的设备,或者第一浏览器与第二浏览器为不同类型的浏览器等原因,在第一浏览器中显示的网页信息的格式可能无法直接在第二浏览器中执行显示或者打开或者还原等操作。因此,本发明实施例优选接收到第一浏览器上传的浏览器数据包之后,对浏览器数据包中的所有网页信息进行格式转换,得到转换结果,即转换后的浏览器数据包,并且该转换后的浏览器数据包能够通过运行在不同类型的设备上的第二浏览器进行显示。It can be seen from the above example that the first browser and the second browser may be in different types of devices, but in actual operation, since the first browser and the second browser are in different types of devices, or the first browser and the Because the second browser is a different type of browser, the format of the webpage information displayed in the first browser may not be directly displayed, opened or restored in the second browser. Therefore, in the embodiment of the present invention, after receiving the browser data packet uploaded by the first browser, the format conversion is performed on all webpage information in the browser data packet to obtain the conversion result, that is, the converted browser data packet, and the The converted browser data package can be displayed by a second browser running on a different type of device.
基于上文各优选实施例提供的数据传输方法,基于同一发明构思,本发明实施例提供了一种数据显示方法,应用于第二浏览器。图6示出了根据本发明一个实施例的数据显示方法的处理流程图。参见图6,该流程至少包括步骤S602至步骤S606。Based on the data transmission methods provided by the above preferred embodiments and based on the same inventive concept, an embodiment of the present invention provides a data display method, which is applied to the second browser. Fig. 6 shows a processing flowchart of a data display method according to an embodiment of the present invention. Referring to Fig. 6, the process includes at least step S602 to step S606.
步骤S602、使用浏览器用户的登录身份标识信息ID登录本浏览器时,发送携带有浏览器用户登录ID的数据请求消息至浏览器的服务器端,由浏览器的服务器端获取与用户登录ID对应的浏览器数据包,其中,浏览器数据包中包括网页信息及其属性信息;Step S602, when using the browser user's login identity information ID to log in to the browser, send a data request message carrying the browser user's login ID to the server side of the browser, and the browser's server side obtains the information corresponding to the user's login ID. A browser data packet, wherein the browser data packet includes web page information and its attribute information;
步骤S604、接收浏览器的服务器端返回的应答消息,其中,应答消息中携带有与浏览器数据包;Step S604, receiving a response message returned by the server end of the browser, wherein the response message carries a browser data packet;
步骤S606、根据浏览器数据包中的属性信息对网页信息进行显示。Step S606, displaying the webpage information according to the attribute information in the browser data packet.
在一个优选实施例中,根据浏览器数据包中的属性信息对网页信息进行显示,包括:当属性信息包括操作指令,根据操作指令对网页信息进行处理,其中,操作指令包括以下至少之一:打开网页信息指令、编辑网页信息指令、还原网页状态指令;对处理结果进行显示。In a preferred embodiment, displaying the webpage information according to the attribute information in the browser data packet includes: when the attribute information includes an operation instruction, processing the webpage information according to the operation instruction, wherein the operation instruction includes at least one of the following: Open web page information command, edit web page information command, restore web page status command; display processing results.
在一个优选实施例中,还原网页状态指令至少包括以下任意之一:游戏类网页中,还原接收关闭指令时游戏关卡的环境;视频类网页中,还原接收关闭指令时视频播放的进度;音乐类网页中,还原接收关闭指令时音乐播放的进度;文本类网页中,还原接收关闭指令时文本阅读的进度;地图类网页中,还原接收关闭指令时地图类网页显示地址的地图。In a preferred embodiment, the instruction to restore the state of the webpage includes at least any one of the following: in the game webpage, restore the environment of the game level when receiving the closing instruction; in the video webpage, restore the progress of video playback when receiving the closing instruction; In the web page, restore the progress of music playback when receiving the closing command; in the text web page, restore the progress of text reading when receiving the closing command; in the map web page, restore the map of the address displayed on the map web page when receiving the closing command.
基于上文各优选实施例提供的数据传输方法、数据显示方法,基于同一发明构思,本发明实施例提供了一种浏览器,用于实现上文提及的第一浏览器执行的操作以及应用于第一浏览器的数据传输方法。图7示出了根据本发明一个实施例的第一浏览器的结构示意图。参见图7,本发明实施例的第一浏览器至少包括:登录模块710、接收模块720、确定模块730、获取模块740以及上传模块750。Based on the data transmission method and data display method provided by the above preferred embodiments, and based on the same inventive concept, this embodiment of the present invention provides a browser, which is used to implement the operations and applications performed by the first browser mentioned above A data transmission method based on the first browser. Fig. 7 shows a schematic structural diagram of a first browser according to an embodiment of the present invention. Referring to FIG. 7 , the first browser in the embodiment of the present invention includes at least: a login module 710 , a receiving module 720 , a determining module 730 , an obtaining module 740 and an uploading module 750 .
现介绍本发明实施例的第一浏览器的各器件或组成的功能以及各部分间的连接关系:Now introduce the functions of each device or composition of the first browser of the embodiment of the present invention and the connection relationship between each part:
登录模块710,适于使用浏览器用户的登录身份标识信息ID登录本浏览器;The login module 710 is suitable for logging into the browser using the login identity information ID of the browser user;
接收模块720,适于收到来自用户的关闭指令;The receiving module 720 is adapted to receive a closing instruction from the user;
确定模块730,与登录模块710以及接收模块720分别耦合,适于使用浏览器用户的登录ID登录本浏览器之后,当接收到关闭指令,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息;The determining module 730 is coupled with the login module 710 and the receiving module 720 respectively, and is adapted to use the browser user's login ID to log in to the browser, and when a closing instruction is received, determine whether to obtain the browser's current moment has been completed according to the preset operation command. Information about all web pages opened;
获取模块740,与确定模块730相耦合,适于若是,获取所有网页信息,并添加所有网页信息的属性信息至所有网页信息,生成浏览器数据包;The acquisition module 740, coupled with the determination module 730, is suitable for obtaining all webpage information if so, and adding attribute information of all webpage information to all webpage information to generate a browser data packet;
上传模块750,与获取模块740相耦合,适于上传浏览器数据包至浏览器的服务器端。The upload module 750, coupled with the acquisition module 740, is suitable for uploading the browser data package to the server end of the browser.
在一个优选的实施例中,登录模块710还适于:In a preferred embodiment, the login module 710 is also suitable for:
当本浏览器的状态值发生改变,则确定浏览器用户的登录ID登录成功。When the status value of the browser changes, it is determined that the login ID of the browser user has successfully logged in.
在一个优选的实施例中,预设操作命令包括缺省操作命令和/或浏览器用户预先设置的操作命令。In a preferred embodiment, the preset operation commands include default operation commands and/or operation commands preset by the browser user.
在一个优选的实施例中,确定模块730还适于:In a preferred embodiment, the determining module 730 is further adapted to:
根据预设操作命令显示操作选项,以供浏览器用户进行选择,其中,操作选项包括获取所有网页信息选项、拒绝获取所有网页信息选项;Display operation options according to preset operation commands for the browser user to choose, wherein the operation options include the option of obtaining all webpage information and the option of refusing to obtain all webpage information;
接收来自浏览器用户的选择指令,根据选择指令确定是否获取本浏览器当前时刻已打开的所有网页信息。A selection instruction from the browser user is received, and it is determined whether to obtain information on all webpages currently opened by the browser according to the selection instruction.
在一个优选的实施例中,属性信息包括操作指令。In a preferred embodiment, the attribute information includes operation instructions.
图8示出了根据本发明一个优选实施例的第一浏览器的结构示意图。参见图8,本发明实施例中,上传模块750还包括:Fig. 8 shows a schematic structural diagram of a first browser according to a preferred embodiment of the present invention. Referring to Fig. 8, in the embodiment of the present invention, the upload module 750 also includes:
处理单元751,适于对浏览器数据包进行处理,The processing unit 751 is adapted to process the browser data packet,
其中,对浏览器数据包进行处理的步骤包括以下至少之一:Wherein, the step of processing the browser data packet includes at least one of the following:
对浏览器数据包进行过滤处理,其中,过滤处理至少包括以下任意之一:过滤非超文本传输协议http网页信息和/或http安全版网页信息、删除浏览器数据包中的浏览器用户的个人信息数据、去除浏览器数据包中的重复信息;Filtering browser data packets, wherein the filtering processing includes at least any of the following: filtering non-hypertext transfer protocol http webpage information and/or http security version webpage information, deleting browser user's personal information in browser data packets Information data, removing duplicate information in browser data packets;
对浏览器数据包进行封装处理,生成轻量级数据交换格式json格式文件;Encapsulate browser data packets to generate lightweight data exchange format json format files;
对浏览器数据包进行加密处理;Encrypt browser data packets;
上传单元752,适于添加校验字段至数据包;以及An upload unit 752, adapted to add a check field to the data packet; and
采用请求体格式http post上传浏览器数据包至浏览器的服务器端。Use the request body format http post to upload the browser data package to the server side of the browser.
在一个优选的实施例中,第一浏览器还包括:In a preferred embodiment, the first browser also includes:
接收模块720,还适于接收来自浏览器用户的连接建立指令,其中,连接建立指令中携带有使用浏览器用户的ID登录的其他浏览器的标识信息;The receiving module 720 is further adapted to receive a connection establishment instruction from the browser user, wherein the connection establishment instruction carries identification information of other browsers logged in using the browser user's ID;
上传模块750,还适于发送连接建立请求至浏览器的服务器端,其中,连接建立请求中携带有本浏览器的标识信息以及其他浏览器的标识信息。The uploading module 750 is further adapted to send a connection establishment request to the browser server, wherein the connection establishment request carries identification information of the browser and identification information of other browsers.
基于上文各优选实施例提供的数据传输方法,基于同一发明构思,本发明实施例还提供了一种浏览器的服务器,用于实现应用于浏览器的服务器侧的数据传输方法。图9示出了根据本发明一个实施例的浏览器的服务器的结构示意图。参见图9,本发明实施例的浏览器的服务器至少包括:接收模块910、存储模块920、获取模块930以及发送模块940。Based on the data transmission methods provided by the above preferred embodiments and based on the same inventive concept, the embodiment of the present invention also provides a browser server, which is used to implement the data transmission method applied to the server side of the browser. Fig. 9 shows a schematic structural diagram of a browser server according to an embodiment of the present invention. Referring to FIG. 9 , the server of the browser in the embodiment of the present invention includes at least: a receiving module 910 , a storage module 920 , an acquiring module 930 and a sending module 940 .
现介绍本发明实施例的浏览器的服务器的各器件或组成的功能以及各部分间的连接关系:Now introduce the functions of each device or composition of the server of the browser in the embodiment of the present invention and the connection relationship between each part:
接收模块910,适于接收第一浏览器上传的浏览器数据包,其中,浏览器数据包中包括第一浏览器的所有网页信息及其属性信息;The receiving module 910 is adapted to receive the browser data packet uploaded by the first browser, wherein the browser data packet includes all webpage information and attribute information of the first browser;
存储模块920,与接收模块910相耦合,适于将浏览器数据包与浏览器用户登录身份标识信息ID对应存储至数据库;The storage module 920, coupled with the receiving module 910, is adapted to store the browser data packet and the browser user login identity information ID in the database correspondingly;
接收模块910,还适于接收到来自第二浏览器的、携带有浏览器用户登录ID的数据请求消息;The receiving module 910 is further adapted to receive a data request message carrying a browser user login ID from the second browser;
获取模块930,与接收模块910相耦合,适于当接收模块接收到数据请求消息,获取与用户登录ID对应的浏览器数据包;The obtaining module 930 is coupled with the receiving module 910, and is adapted to obtain the browser data packet corresponding to the user login ID when the receiving module receives the data request message;
发送模块940,与获取模块930相耦合,适于发送应答消息至第二浏览器,其中,应答消息中携带有浏览器数据包。The sending module 940, coupled with the obtaining module 930, is adapted to send a response message to the second browser, wherein the response message carries a browser data packet.
在一个优选的实施例中,存储模块920还适于:In a preferred embodiment, the storage module 920 is also suitable for:
添加时间戳信息至浏览器数据包;Add timestamp information to the browser packet;
保存添加时间戳信息完成的浏览器数据包至数据库。Save the browser packet with the timestamp information added to the database.
在一个优选的实施例中,还包括:In a preferred embodiment, also include:
接收模块910,还适于接收来自第一浏览器的连接建立请求,其中,连接建立请求中携带有第一浏览器的标识信息以及第二浏览器的标识信息;The receiving module 910 is further adapted to receive a connection establishment request from the first browser, wherein the connection establishment request carries identification information of the first browser and identification information of the second browser;
存储模块920,还适于根据连接建立请求建立第一浏览器与第二浏览器的关联关系并保存,以供第二浏览器根据关联关系对第一浏览器的浏览器数据包进行还原。The storage module 920 is further adapted to establish and store an association relationship between the first browser and the second browser according to the connection establishment request, so that the second browser can restore the browser data package of the first browser according to the association relationship.
在一个优选的实施例中,存储模块920还适于:In a preferred embodiment, the storage module 920 is also suitable for:
对浏览器数据包携带的、第一浏览器的所有网页信息进行格式转换,得到转换结果,其中,转换结果能够通过运行在不同类型的设备上的第二浏览器进行显示;以及,performing format conversion on all webpage information of the first browser carried in the browser data packet to obtain a conversion result, wherein the conversion result can be displayed by a second browser running on a different type of device; and,
保存转换结果至数据库。Save the conversion result to the database.
基于上文各优选实施例提供的数据显示方法,基于同一发明构思,本发明实施例还提供了一种第二浏览器,用于实现数据显示方法。图10示出了根据本发明一个实施例的第二浏览器的结构示意图。参见图10,本发明实施例的第二浏览器至少包括:登录模块1010、发送模块1020、接收模块1030以及显示模块1040。Based on the data display methods provided by the above preferred embodiments and based on the same inventive concept, an embodiment of the present invention further provides a second browser for implementing the data display method. Fig. 10 shows a schematic structural diagram of a second browser according to an embodiment of the present invention. Referring to FIG. 10 , the second browser in the embodiment of the present invention includes at least: a login module 1010 , a sending module 1020 , a receiving module 1030 and a display module 1040 .
现介绍本发明实施例的第二浏览器的各器件或组成的功能以及各部分间的连接关系:Now introduce the functions of each device or composition of the second browser of the embodiment of the present invention and the connection relationship between each part:
登录模块1010,适于使用浏览器用户的登录身份标识信息ID登录本浏览器;The login module 1010 is adapted to log in the browser using the login identity information ID of the browser user;
发送模块1020,与登录模块1010相耦合,适于登录模块登录本浏览器时,发送携带有浏览器用户登录ID的数据请求消息至浏览器的服务器端,由浏览器的服务器端获取与浏览器用户登录ID对应的浏览器数据包,其中,浏览器数据包中包括网页信息及其属性信息;The sending module 1020 is coupled with the login module 1010, and is suitable for sending a data request message carrying the browser user login ID to the server side of the browser when the login module logs in to the browser, and the server side of the browser obtains the same information as the browser. A browser data packet corresponding to the user login ID, wherein the browser data packet includes webpage information and its attribute information;
接收模块1030,适于接收浏览器的服务器端返回的应答消息,其中,应答消息中携带有浏览器数据包;The receiving module 1030 is adapted to receive a response message returned by the server end of the browser, wherein the response message carries a browser data packet;
显示模块1040,与接收模块1030相耦合,适于根据浏览器数据包中的属性信息对网页信息进行显示。The display module 1040, coupled with the receiving module 1030, is adapted to display webpage information according to the attribute information in the browser data packet.
在一个优选的实施例中,显示模块1040还适于:In a preferred embodiment, the display module 1040 is also suitable for:
当属性信息包括操作指令,根据操作指令对网页信息进行处理,其中,操作指令包括以下至少之一:打开网页信息指令、编辑网页信息指令、还原网页状态指令;以及When the attribute information includes an operation instruction, the webpage information is processed according to the operation instruction, wherein the operation instruction includes at least one of the following: an instruction to open the webpage information, an instruction to edit the webpage information, and an instruction to restore the status of the webpage; and
对处理结果进行显示。Display the processing results.
基于上文各优选实施例提供的数据传输方法、数据显示方法以及对应的装置(第一浏览器、第二浏览器以及浏览器的服务器),基于同一发明构思,本发明实施例还提供了一种数据传输系统。图11示出了根据本发明一个实施例的数据传输系统的结构示意图。参见图11,本发明实施例的数据传输系统包括第一浏览器1110,浏览器的服务器1120以及第二浏览器1130。Based on the data transmission method, data display method and corresponding devices (the first browser, the second browser and the server of the browser) provided by the above preferred embodiments, and based on the same inventive concept, the embodiment of the present invention also provides a A data transmission system. Fig. 11 shows a schematic structural diagram of a data transmission system according to an embodiment of the present invention. Referring to FIG. 11 , the data transmission system of the embodiment of the present invention includes a first browser 1110 , a browser server 1120 and a second browser 1130 .
现介绍本发明实施例的数据传输系统的各器件或组成的功能以及各部分间的连接关系:Now introduce the functions of each device or component of the data transmission system of the embodiment of the present invention and the connection relationship between each part:
第一浏览器1110,适于使用浏览器用户的登录身份标识信息ID登录本浏览器;接收到来自浏览器用户的关闭指令,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息;若是,获取所有网页信息,并添加所有网页信息的属性信息至所有网页信息,生成浏览器数据包;上传浏览器数据包至浏览器的服务器端;The first browser 1110 is adapted to use the login identity information ID of the browser user to log in to the browser; after receiving a closing instruction from the browser user, it is determined whether to obtain all the browsers that have been opened at the current moment according to the preset operation command. webpage information; if so, obtain all webpage information, and add attribute information of all webpage information to all webpage information, generate browser data packet; upload browser data packet to the server end of browser;
浏览器的服务器1120,与第一浏览器1110以及第二浏览器1130分别耦合,适于接收第一浏览器上传的浏览器数据包,将其与浏览器用户登录ID对应存储至数据库;当接收到来自第二浏览器的、携带有浏览器用户登录ID的数据请求消息,获取与浏览器用户登录ID对应的浏览器数据包;发送应答消息至第二浏览器,其中,应答消息中携带有浏览器数据包;The server 1120 of the browser is respectively coupled with the first browser 1110 and the second browser 1130, and is suitable for receiving the browser data packet uploaded by the first browser, and correspondingly storing it in the database with the browser user login ID; Receive the data request message that carries the browser user login ID from the second browser, obtain the browser data packet corresponding to the browser user login ID; send a response message to the second browser, wherein the response message carries browser packets;
第二浏览器1130,适于使用浏览器用户的登录ID登录时,发送数据请求消息至浏览器的服务器端;接收浏览器的服务器端返回的应答消息,其中,应答消息中携带有与浏览器数据包;根据浏览器数据包中的属性信息对网页信息进行显示。The second browser 1130 is suitable for sending a data request message to the server end of the browser when logging in with the login ID of the browser user; receiving the response message returned by the server end of the browser, wherein the response message carries Data packet; display webpage information according to the attribute information in the browser data packet.
根据上述任意一个优选实施例或多个优选实施例的组合,本发明实施例能够达到如下有益效果:According to any one of the above preferred embodiments or a combination of multiple preferred embodiments, the embodiments of the present invention can achieve the following beneficial effects:
依据本发明实施例的数据传输方法,能够使用浏览器用户的登录身份标识信息ID登录本浏览器,在接收到来自浏览器用户的关闭指令时,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息。若是,本发明实施例获取所有网页信息,并添加所有网页信息的属性信息至所有网页信息,生成浏览器数据包,以及上传浏览器数据包至浏览器的服务器端。由此可知,依据本发明实施例的数据传输方法能够解决现有技术中在根据用户的关闭指令关闭本浏览器的所有网页信息时无法自动保存网页信息的问题。本发明实施例中,当接收到浏览器用户的关闭指令,并根据预设操作确定获取本浏览器当前时刻已打开的所有网页信息时,能够将当前时刻已打开的所有网页信息及其属性信息打包成浏览器数据包,并上传至服务器端,则当用户需要继续对本次关闭的网页信息进行浏览等操作时,在再次登录浏览器时,能够依据本次上传的数据包对关闭时的网页信息进行还原,避免用户重新查找网页,以及重新查找网页中上一次浏览或者观看或者阅读的进度,提高用户的操作效率,提升用户体验。According to the data transmission method of the embodiment of the present invention, the login identity information ID of the browser user can be used to log in to the browser, and when a closing instruction from the browser user is received, it is determined whether to obtain the current status of the browser according to the preset operation command. Information about all web pages that have been opened at any time. If so, the embodiment of the present invention acquires all webpage information, adds attribute information of all webpage information to all webpage information, generates a browser data packet, and uploads the browser data packet to the server end of the browser. It can be seen that the data transmission method according to the embodiment of the present invention can solve the problem in the prior art that the webpage information cannot be automatically saved when all the webpage information of the browser is closed according to the closing instruction of the user. In the embodiment of the present invention, when receiving the closing instruction from the browser user and determining to acquire all the webpage information that the browser has opened at the current moment according to the preset operation, all the webpage information and its attribute information that have been opened at the current moment can be obtained Packaged into a browser data package and uploaded to the server, when the user needs to continue to browse the closed web page information, when logging in to the browser again, the closed page information can be corrected according to the uploaded data package. The web page information is restored to prevent the user from re-searching the web page and re-finding the progress of the last browsing or viewing or reading in the web page, improving the user's operation efficiency and user experience.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的装置或者设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the device or device according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
至此,本领域技术人员应认识到,虽然本文已详尽示出和描述了本发明的多个示例性实施例,但是,在不脱离本发明精神和范围的情况下,仍可根据本发明公开的内容直接确定或推导出符合本发明原理的许多其他变型或修改。因此,本发明的范围应被理解和认定为覆盖了所有这些其他变型或修改。So far, those skilled in the art should appreciate that, although a number of exemplary embodiments of the present invention have been shown and described in detail herein, without departing from the spirit and scope of the present invention, the disclosed embodiments of the present invention can still be used. Many other variations or modifications consistent with the principles of the invention are directly identified or derived from the content. Accordingly, the scope of the present invention should be understood and deemed to cover all such other variations or modifications.
本发明还公开了A1.一种数据传输方法,包括:The present invention also discloses A1. A data transmission method, comprising:
使用浏览器用户的登录身份标识信息ID登录本浏览器;Use the browser user's login identity information ID to log in to the browser;
接收到来自所述浏览器用户的关闭指令,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息;receiving a closing instruction from the browser user, and determining whether to acquire all the webpage information that the browser has opened at the current moment according to the preset operation command;
若是,获取所述所有网页信息,并添加所述所有网页信息的属性信息至所述所有网页信息,生成浏览器数据包;If so, obtain all the webpage information, and add the attribute information of all the webpage information to the all webpage information to generate a browser data packet;
上传所述浏览器数据包至浏览器的服务器端。Upload the browser data package to the server side of the browser.
A2.根据A1所述的方法,其中,所述使用浏览器用户的登录身份标识信息ID登录本浏览器,包括:A2. The method according to A1, wherein the logging in to the browser using the login identity information ID of the browser user includes:
当本浏览器的状态值发生改变,则确定所述浏览器用户的登录ID登录成功。When the status value of the browser changes, it is determined that the login ID of the browser user has successfully logged in.
A3.根据A1或A2所述的方法,其中,所述预设操作命令包括缺省操作命令和/或所述浏览器用户预先设置的操作命令。A3. The method according to A1 or A2, wherein the preset operation command includes a default operation command and/or an operation command preset by the browser user.
A4.根据A3所述的方法,其中,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息,包括:A4. The method according to A3, wherein, according to the preset operation command, it is determined whether to obtain all the webpage information that the browser has opened at the current moment, including:
根据预设操作命令显示操作选项,以供所述浏览器用户进行选择,其中,所述操作选项包括获取所述所有网页信息选项、拒绝获取所述所有网页信息选项;Displaying operation options according to a preset operation command for selection by the browser user, wherein the operation options include the option of obtaining the information of all webpages and the option of refusing to obtain the information of all webpages;
接收来自所述浏览器用户的选择指令,根据所述选择指令确定是否获取本浏览器当前时刻已打开的所有网页信息。A selection instruction from the browser user is received, and according to the selection instruction, it is determined whether to obtain information on all webpages currently opened by the browser.
A5.根据A1至A4任一项所述的方法,其中,获上传所述浏览器数据包至浏览器的服务器侧之前,还包括:A5. The method according to any one of A1 to A4, wherein, before uploading the browser data packet to the server side of the browser, it also includes:
对所述浏览器数据包进行处理,processing the browser data packet,
其中,对所述浏览器数据包进行处理的步骤包括以下至少之一:Wherein, the step of processing the browser data packet includes at least one of the following:
对所述浏览器数据包进行过滤处理,其中,所述过滤处理至少包括以下任意之一:过滤非超文本传输协议http网页信息和/或http安全版网页信息、删除所述浏览器数据包中的所述浏览器用户的个人信息数据、去除所述浏览器数据包中的重复信息;Perform filtering processing on the browser data packet, wherein the filtering processing includes at least any one of the following: filtering non-hypertext transfer protocol http web page information and/or http security version web page information, deleting the browser data packet personal information data of the browser user, and remove duplicate information in the browser data packet;
对所述浏览器数据包进行封装处理,生成轻量级数据交换格式json格式文件;Encapsulating the browser data packet to generate a lightweight data exchange format json format file;
对所述浏览器数据包进行加密处理。Encrypt the browser data packet.
A6.根据A5所述的方法,其中,上传所述数据包至所述浏览器的服务器端,包括:A6. The method according to A5, wherein uploading the data packet to the server side of the browser includes:
添加校验字段至所述浏览器数据包;Adding a check field to the browser packet;
采用请求体格式http post上传所述浏览器数据包至所述浏览器的服务器端。The browser data packet is uploaded to the server end of the browser by using the request body format http post.
A7.根据A1至A6任一项所述的方法,其中,接收到来自所述浏览器用户的关闭指令之前,还包括:A7. The method according to any one of A1 to A6, wherein, before receiving the closing instruction from the browser user, further comprising:
接收来自所述浏览器用户的连接建立指令,其中,所述连接建立指令中携带有使用所述浏览器用户的登录ID登录的其他浏览器的标识信息;receiving a connection establishment instruction from the browser user, wherein the connection establishment instruction carries identification information of other browsers logged in using the browser user's login ID;
发送连接建立请求至所述浏览器的服务器端,其中,所述连接建立请求中携带有本浏览器的标识信息以及所述其他浏览器的标识信息。Sending a connection establishment request to the server side of the browser, wherein the connection establishment request carries identification information of the browser and identification information of the other browsers.
A8.根据A1至A7任一项所述的方法,其中,所述属性信息包括操作指令。A8. The method according to any one of A1 to A7, wherein the attribute information includes an operation instruction.
A9.根据A1至A8任一项所述的方法,其中,所述所有网页信息的类型包括以下至少之一:A9. The method according to any one of A1 to A8, wherein the types of all webpage information include at least one of the following:
游戏类网页信息;Game web page information;
视频类网页信息;Video web page information;
音乐类网页信息;Music web page information;
文本类网页信息;Text web page information;
地图类网页信息。Map web page information.
A10.根据A9所述的方法,其中,所述操作指令包括以下至少之一:A10. The method according to A9, wherein the operation instruction includes at least one of the following:
打开网页信息指令;Open web page information command;
编辑网页信息指令;Edit web page information instructions;
还原网页状态指令,其中,所述还原网页状态指令至少包括:Restore the web page state instruction, wherein, the restore web page state instruction at least includes:
游戏类网页中,还原接收所述关闭指令时游戏关卡的环境;In the game webpage, restore the environment of the game level when receiving the closing command;
视频类网页中,还原接收所述关闭指令时视频播放的进度;In video webpages, restore the progress of video playback when receiving the closing instruction;
音乐类网页中,还原接收所述关闭指令时音乐播放的进度;In music webpages, restore the progress of music playback when receiving the closing instruction;
文本类网页中,还原接收所述关闭指令时文本阅读的进度;In the text type webpage, restore the progress of text reading when receiving the closing instruction;
地图类网页中,还原接收所述关闭指令时所述地图类网页显示地址的地图。In the map-type webpage, the map of the address displayed on the map-type webpage when the closing instruction is received is restored.
本发明还公开了B11.一种数据传输方法,包括:The present invention also discloses B11. A data transmission method, comprising:
接收第一浏览器上传的浏览器数据包,将其与浏览器用户登录身份标识ID对应存储至数据库,其中,所述浏览器数据包中包括所述第一浏览器的所有网页信息及其属性信息;Receive the browser data packet uploaded by the first browser, and store it in the database corresponding to the browser user login identity ID, wherein the browser data packet includes all webpage information and attributes of the first browser information;
当接收到来自第二浏览器的、携带有所述浏览器用户登录ID的数据请求消息,获取与所述浏览器用户登录ID对应的浏览器数据包;When receiving a data request message carrying the browser user login ID from the second browser, obtaining a browser data packet corresponding to the browser user login ID;
发送应答消息至所述第二浏览器,其中,所述应答消息中携带有与所述浏览器用户登录ID对应的浏览器数据包。sending a response message to the second browser, wherein the response message carries a browser data packet corresponding to the browser user login ID.
B12.根据B11所述的方法,其中,所述接收第一浏览器上传的浏览器数据包,将其与浏览器用户登录ID对应存储至数据库,包括:B12. according to the method described in B11, wherein, described receiving the browser packet uploaded by the first browser, it is correspondingly stored to the database with the browser user login ID, including:
添加时间戳信息至所述浏览器数据包;adding timestamp information to said browser packet;
保存添加时间戳信息完成的浏览器数据包至所述数据库。Save the browser data package in which the time stamp information is added to the database.
B13.根据B11或B12所述的方法,其中,还包括:B13. The method according to B11 or B12, further comprising:
接收来自所述第一浏览器的连接建立请求,其中,所述连接建立请求中携带有所述第一浏览器的标识信息以及所述第二浏览器的标识信息;receiving a connection establishment request from the first browser, wherein the connection establishment request carries identification information of the first browser and identification information of the second browser;
根据所述连接建立请求建立所述第一浏览器与所述第二浏览器的关联关系并保存,以供所述第二浏览器根据所述关联关系对所述第一浏览器的浏览器数据包进行还原。Establish and save the association relationship between the first browser and the second browser according to the connection establishment request, so that the second browser can process the browser data of the first browser according to the association relationship package to restore.
B14.根据B11至B13任一项所述的方法,其中,所述接收第一浏览器上传的浏览器数据包之后,还包括:B14. The method according to any one of B11 to B13, wherein, after receiving the browser data packet uploaded by the first browser, it also includes:
对所述浏览器数据包携带的、所述第一浏览器的所有网页信息进行格式转换,得到转换结果,其中,所述转换结果能够通过运行在不同类型的设备上的所述第二浏览器进行显示;performing format conversion on all webpage information of the first browser carried in the browser data packet to obtain a conversion result, wherein the conversion result can be passed through the second browser running on a different type of device to display;
保存转换结果至所述数据库。Save the conversion result to the database.
本发明还公开了C15.一种数据显示方法,包括:The present invention also discloses C15. A data display method, comprising:
使用浏览器用户的登录身份标识信息ID登录本浏览器时,发送携带有所述浏览器用户登录ID的数据请求消息至浏览器的服务器端,由所述浏览器的服务器端获取与所述用户登录ID对应的浏览器数据包,其中,所述浏览器数据包中包括网页信息及其属性信息;When using the login identity information ID of the browser user to log in to the browser, send a data request message carrying the browser user login ID to the server end of the browser, and the server end of the browser obtains the information related to the user. A browser data packet corresponding to the login ID, wherein the browser data packet includes webpage information and attribute information thereof;
接收所述浏览器的服务器端返回的述应答消息,其中,所述应答消息中携带有与所述浏览器数据包;receiving the response message returned by the server end of the browser, wherein the response message carries a data packet related to the browser;
根据所述浏览器数据包中的属性信息对所述网页信息进行显示。The webpage information is displayed according to the attribute information in the browser data packet.
C16.根据C15所述的方法,其中,根据所述浏览器数据包中的属性信息对所述网页信息进行显示,包括:C16. The method according to C15, wherein displaying the web page information according to the attribute information in the browser data packet includes:
当所述属性信息包括操作指令,根据所述操作指令对所述网页信息进行处理,其中,所述操作指令包括以下至少之一:打开网页信息指令、编辑网页信息指令、还原网页状态指令;When the attribute information includes an operation instruction, the webpage information is processed according to the operation instruction, wherein the operation instruction includes at least one of the following: an instruction to open webpage information, an instruction to edit webpage information, and an instruction to restore webpage status;
对处理结果进行显示。Display the processing results.
C17.根据C16所述的方法,其中,所述还原网页状态指令至少包括以下任意之一:C17. according to the method described in C16, wherein, described restoration web page state instruction comprises any one of following at least:
游戏类网页中,还原接收所述关闭指令时游戏关卡的环境;In the game webpage, restore the environment of the game level when receiving the closing command;
视频类网页中,还原接收所述关闭指令时视频播放的进度;In video webpages, restore the progress of video playback when receiving the closing instruction;
音乐类网页中,还原接收所述关闭指令时音乐播放的进度;In music webpages, restore the progress of music playback when receiving the closing instruction;
文本类网页中,还原接收所述关闭指令时文本阅读的进度;In the text type webpage, restore the progress of text reading when receiving the closing instruction;
地图类网页中,还原接收所述关闭指令时所述地图类网页显示地址的地图。In the map-type webpage, the map of the address displayed on the map-type webpage when the closing instruction is received is restored.
本发明还公开了D18.一种浏览器,包括:The present invention also discloses D18. A browser, comprising:
登录模块,适于使用浏览器用户的登录身份标识信息ID登录本浏览器;A login module, adapted to use the browser user's login identity information ID to log in to the browser;
接收模块,适于收到来自所述用户的关闭指令;a receiving module adapted to receive a closing instruction from the user;
确定模块,适于使用所述浏览器用户的登录ID登录本浏览器之后,当接收到所述关闭指令,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息;The determining module is adapted to use the login ID of the browser user to log into the browser, and when the closing instruction is received, determine whether to obtain all the webpage information that the browser has opened at the current moment according to the preset operation command;
获取模块,适于若是,获取所述所有网页信息,并添加所述所有网页信息的属性信息至所述所有网页信息,生成浏览器数据包;The obtaining module is adapted to obtain all the webpage information if so, and add the attribute information of all the webpage information to the all webpage information to generate a browser data packet;
上传模块,适于上传所述浏览器数据包至浏览器的服务器端。The upload module is suitable for uploading the browser data package to the server end of the browser.
D19.根据D18所述的浏览器,其中,所述登录模块还适于:D19. The browser according to D18, wherein the login module is further adapted to:
当所述本浏览器的状态值发生改变,则确定所述浏览器用户的登录ID登录成功。When the state value of the browser changes, it is determined that the login ID of the browser user has successfully logged in.
D20.根据D18或D19所述的浏览器,其中,所述预设操作命令包括缺省操作命令和/或所述浏览器用户预先设置的操作命令。D20. The browser according to D18 or D19, wherein the preset operation command includes a default operation command and/or an operation command preset by the browser user.
D21.根据D20所述的浏览器,其中,所述确定模块还适于:D21. The browser according to D20, wherein the determining module is further adapted to:
根据预设操作命令显示操作选项,以供所述浏览器用户进行选择,其中,所述操作选项包括获取所述所有网页信息选项、拒绝获取所述所有网页信息选项;Displaying operation options according to a preset operation command for selection by the browser user, wherein the operation options include the option of obtaining the information of all webpages and the option of refusing to obtain the information of all webpages;
接收来自所述浏览器用户的选择指令,根据所述选择指令确定是否获取本浏览器当前时刻已打开的所有网页信息。A selection instruction from the browser user is received, and according to the selection instruction, it is determined whether to obtain information on all webpages currently opened by the browser.
D22.根据D18至D21任一项所述的浏览器,其中,所述上传模块还包括:D22. The browser according to any one of D18 to D21, wherein the upload module also includes:
处理单元,适于对所述浏览器数据包进行处理,a processing unit adapted to process the browser data packet,
其中,对所述浏览器数据包进行处理的步骤包括以下至少之一:Wherein, the step of processing the browser data packet includes at least one of the following:
对所述浏览器数据包进行过滤处理,其中,所述过滤处理至少包括以下任意之一:过滤非超文本传输协议http网页信息和/或http安全版网页信息、删除所述浏览器数据包中的所述浏览器用户的个人信息数据、去除所述浏览器数据包中的重复信息;Perform filtering processing on the browser data packet, wherein the filtering processing includes at least any one of the following: filtering non-hypertext transfer protocol http web page information and/or http security version web page information, deleting the browser data packet personal information data of the browser user, and remove duplicate information in the browser data packet;
对所述浏览器数据包进行封装处理,生成轻量级数据交换格式json格式文件;Encapsulating the browser data packet to generate a lightweight data exchange format json format file;
对所述浏览器数据包进行加密处理;Encrypting the browser data packet;
上传单元,适于添加校验字段至所述数据包;以及an upload unit adapted to add a check field to said data packet; and
采用请求体格式http post上传所述浏览器数据包至所述浏览器的服务器端。The browser data packet is uploaded to the server end of the browser by using the request body format http post.
D23.根据D18至D22任一项所述的浏览器,其中,还包括:D23. The browser according to any one of D18 to D22, further comprising:
所述接收模块,还适于接收来自所述浏览器用户的连接建立指令,其中,所述连接建立指令中携带有使用所述浏览器用户的登录ID登录的其他浏览器的标识信息;The receiving module is further adapted to receive a connection establishment instruction from the browser user, wherein the connection establishment instruction carries identification information of other browsers logged in using the browser user's login ID;
所述上传模块,还适于发送连接建立请求至所述浏览器的服务器端,其中,所述连接建立请求中携带有本浏览器的标识信息以及所述其他浏览器的标识信息。The uploading module is further adapted to send a connection establishment request to the server of the browser, wherein the connection establishment request carries identification information of the browser and identification information of the other browsers.
D24.根据D18至D23任一项所述的浏览器,其中,所述属性信息包括操作指令。D24. The browser according to any one of D18 to D23, wherein the attribute information includes an operation instruction.
本发明还公开了E25.一种浏览器的服务器,包括:The present invention also discloses E25. A browser server, comprising:
接收模块,适于接收第一浏览器上传的浏览器数据包,其中,所述浏览器数据包中包括所述第一浏览器的所有网页信息及其属性信息;The receiving module is adapted to receive a browser data packet uploaded by the first browser, wherein the browser data packet includes all webpage information and attribute information of the first browser;
存储模块,适于将所述浏览器数据包与浏览器用户登录身份标识信息ID对应存储至数据库;A storage module, adapted to store the browser data packet and the browser user login identity information ID in a database correspondingly;
所述接收模块,还适于接收到来自第二浏览器的、携带有所述浏览器用户登录ID的数据请求消息;The receiving module is further adapted to receive a data request message carrying the browser user login ID from the second browser;
获取模块,适于当所述接收模块接收到所述数据请求消息,获取与所述用户登录ID对应的浏览器数据包;The obtaining module is adapted to obtain the browser data packet corresponding to the user login ID when the receiving module receives the data request message;
发送模块,适于发送应答消息至所述第二浏览器,其中,所述应答消息中携带有所述浏览器数据包。The sending module is adapted to send a response message to the second browser, wherein the browser data packet is carried in the response message.
E26.根据E25所述的浏览器的服务器,其中,所述存储模块还适于:E26. The browser server according to E25, wherein the storage module is also suitable for:
添加时间戳信息至所述浏览器数据包;adding timestamp information to said browser packet;
保存添加时间戳信息完成的浏览器数据包至所述数据库。Save the browser data package in which the time stamp information is added to the database.
E27.根据E25或E26所述的浏览器的服务器,其中,还包括:E27. The browser server according to E25 or E26, further comprising:
所述接收模块,还适于接收来自所述第一浏览器的连接建立请求,其中,所述连接建立请求中携带有所述第一浏览器的标识信息以及所述第二浏览器的标识信息;The receiving module is further adapted to receive a connection establishment request from the first browser, wherein the connection establishment request carries identification information of the first browser and identification information of the second browser ;
所述存储模块,还适于根据所述连接建立请求建立所述第一浏览器与所述第二浏览器的关联关系并保存,以供所述第二浏览器根据所述关联关系对所述第一浏览器的浏览器数据包进行还原。The storage module is further adapted to establish and store an association relationship between the first browser and the second browser according to the connection establishment request, so that the second browser can use the association relationship to the The first browser's browser packets are restored.
E28.根据E25至E27任一项所述的浏览器的服务器,其中,所述存储模块还适于:E28. The browser server according to any one of E25 to E27, wherein the storage module is also suitable for:
对所述浏览器数据包携带的、所述第一浏览器的所有网页信息进行格式转换,得到转换结果,其中,所述转换结果能够通过运行在不同类型的设备上的所述第二浏览器进行显示;以及performing format conversion on all webpage information of the first browser carried in the browser data packet to obtain a conversion result, wherein the conversion result can be passed through the second browser running on a different type of device to display; and
保存转换结果至所述数据库。Save the conversion result to the database.
本发明还公开了F29.一种浏览器,包括:The present invention also discloses F29. A browser, comprising:
登录模块,适于使用浏览器用户的登录身份标识信息ID登录本浏览器;A login module, adapted to use the browser user's login identity information ID to log in to the browser;
发送模块,适于所述登录模块登录本浏览器时,发送携带有所述浏览器用户登录ID的数据请求消息至浏览器的服务器端,由所述浏览器的服务器端获取与所述浏览器用户登录ID对应的浏览器数据包,其中,所述浏览器数据包中包括网页信息及其属性信息;The sending module is suitable for sending a data request message carrying the browser user login ID to the server end of the browser when the login module logs in to the browser, and the server end of the browser obtains the information related to the browser. The browser data packet corresponding to the user login ID, wherein the browser data packet includes webpage information and attribute information thereof;
接收模块,适于接收所述浏览器的服务器端返回的所述应答消息,其中,所述应答消息中携带有所述浏览器数据包;The receiving module is adapted to receive the response message returned by the server end of the browser, wherein the response message carries the browser data packet;
显示模块,适于根据所述浏览器数据包中的属性信息对所述网页信息进行显示。The display module is adapted to display the webpage information according to the attribute information in the browser data packet.
F30.根据F29所述的浏览器,其中,所述显示模块还适于:F30. The browser according to F29, wherein the display module is further adapted to:
当所述属性信息包括操作指令,根据所述操作指令对所述网页信息进行处理,其中,所述操作指令包括以下至少之一:打开网页信息指令、编辑网页信息指令、还原网页状态指令;以及When the attribute information includes an operation instruction, the webpage information is processed according to the operation instruction, wherein the operation instruction includes at least one of the following: an instruction to open webpage information, an instruction to edit webpage information, and an instruction to restore webpage status; and
对处理结果进行显示。Display the processing results.
本发明还公开了G31.一种数据传输系统,包括如D18至D24任一项所述的第一浏览器,如E25至E28任一项所述的浏览器的服务器以及如F29或F30所述的第二浏览器,其中,The present invention also discloses G31. A data transmission system, comprising the first browser as described in any one of D18 to D24, the server of the browser as described in any one of E25 to E28, and the server as described in F29 or F30 The second browser of the , where,
所述第一浏览器,适于使用浏览器用户的登录身份标识信息ID登录本浏览器;接收到来自所述浏览器用户的关闭指令,根据预设操作命令确定是否获取本浏览器当前时刻已打开的所有网页信息;若是,获取所述所有网页信息,并添加所述所有网页信息的属性信息至所述所有网页信息,生成浏览器数据包;上传所述浏览器数据包至浏览器的服务器端;The first browser is adapted to use the browser user's login identity information ID to log in to the browser; receives a closing instruction from the browser user, and determines whether to obtain the browser's current time status according to a preset operation command. All the webpage information opened; if so, obtain the all webpage information, and add the attribute information of the all webpage information to the described all webpage information, generate a browser data packet; upload the browser data packet to the server of the browser end;
所述浏览器的服务器,适于接收所述第一浏览器上传的所述浏览器数据包,将其与所述浏览器用户登录ID对应存储至数据库;当接收到来自所述第二浏览器的、携带有所述浏览器用户登录ID的数据请求消息,获取与所述浏览器用户登录ID对应的浏览器数据包;发送应答消息至所述第二浏览器,其中,所述应答消息中携带有所述浏览器数据包;The server of the browser is adapted to receive the browser data packet uploaded by the first browser, and store it in a database corresponding to the browser user login ID; A data request message carrying the browser user login ID, obtaining a browser data packet corresponding to the browser user login ID; sending a response message to the second browser, wherein in the response message carrying the browser data packet;
所述第二浏览器,适于使用所述浏览器用户的登录ID登录时,发送所述数据请求消息至所述浏览器的服务器端;接收所述浏览器的服务器端返回的所述应答消息,其中,所述应答消息中携带有与所述浏览器数据包;根据所述浏览器数据包中的属性信息对所述网页信息进行显示。The second browser is suitable for sending the data request message to the server end of the browser when logging in using the login ID of the browser user; receiving the response message returned by the server end of the browser , wherein, the response message carries the browser data packet; and the webpage information is displayed according to the attribute information in the browser data packet.
Claims (26)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410665916.9A CN104410614B (en) | 2014-11-19 | 2014-11-19 | Data transmission, display methods, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410665916.9A CN104410614B (en) | 2014-11-19 | 2014-11-19 | Data transmission, display methods, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104410614A CN104410614A (en) | 2015-03-11 |
CN104410614B true CN104410614B (en) | 2018-12-14 |
Family
ID=52648212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410665916.9A Expired - Fee Related CN104410614B (en) | 2014-11-19 | 2014-11-19 | Data transmission, display methods, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104410614B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10536556B2 (en) * | 2016-05-19 | 2020-01-14 | Microsoft Technology Licensing, Llc | Automation of browsing mode switching |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102510384A (en) * | 2011-11-23 | 2012-06-20 | 深圳市无线开锋科技有限公司 | Personal data sharing interactive processing method and server |
CN102981705A (en) * | 2012-11-09 | 2013-03-20 | 北京奇虎科技有限公司 | Server-side browser implementing method and server |
CN103024060A (en) * | 2012-12-20 | 2013-04-03 | 中国科学院深圳先进技术研究院 | Open type cloud computing monitoring system for large scale cluster and method thereof |
CN103631827A (en) * | 2012-08-29 | 2014-03-12 | 腾讯科技(深圳)有限公司 | Method and system for synchronizing webpage information |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040049673A1 (en) * | 2002-09-05 | 2004-03-11 | Docomo Communications Laboratories Usa, Inc. | Apparatus and method for a personal cookie repository service for cookie management among multiple devices |
CN101847150A (en) * | 2009-03-26 | 2010-09-29 | 北京搜狗科技发展有限公司 | Browser status synchronization method and device |
CN101924779B (en) * | 2009-06-15 | 2014-10-08 | 北京搜狗科技发展有限公司 | Method, equipment and system for sharing resources by browser clients |
CN102185915B (en) * | 2011-04-27 | 2014-11-05 | 惠州Tcl移动通信有限公司 | Mobile device and webpage loading method thereof |
CN103457905B (en) * | 2012-05-28 | 2015-09-09 | 腾讯科技(深圳)有限公司 | Method of data synchronization, system and equipment |
CN103678374A (en) * | 2012-09-17 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Browser and method for restoring closed pages of browser |
CN103955478B (en) * | 2014-03-31 | 2016-08-31 | 北京奇虎科技有限公司 | Buttoned-up web page tag and/or the display packing of browser window and device |
-
2014
- 2014-11-19 CN CN201410665916.9A patent/CN104410614B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102510384A (en) * | 2011-11-23 | 2012-06-20 | 深圳市无线开锋科技有限公司 | Personal data sharing interactive processing method and server |
CN103631827A (en) * | 2012-08-29 | 2014-03-12 | 腾讯科技(深圳)有限公司 | Method and system for synchronizing webpage information |
CN102981705A (en) * | 2012-11-09 | 2013-03-20 | 北京奇虎科技有限公司 | Server-side browser implementing method and server |
CN103024060A (en) * | 2012-12-20 | 2013-04-03 | 中国科学院深圳先进技术研究院 | Open type cloud computing monitoring system for large scale cluster and method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104410614A (en) | 2015-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6351737B2 (en) | Upload form attachment | |
JP2017504857A (en) | Document management and collaboration system | |
CN104536973B (en) | The method and browser client of picture recognition | |
CN104468774B (en) | Method for exhibiting data and cloud disk client applied to cloud disk client | |
US20140344707A1 (en) | Information Distribution Method and Device | |
CN104391974B (en) | The processing method of browser and its favorites data | |
US10347286B2 (en) | Displaying session audit logs | |
CN106254553A (en) | A kind of document transmission processing method and apparatus | |
CN103631916B (en) | Method and device for downloading downloadable resources | |
US20190294823A1 (en) | Security Systems and Methods for Social Networking | |
US9727753B2 (en) | Watermark access/control system and method | |
WO2016070718A1 (en) | Method, device, and browser for file downloading | |
US10032006B2 (en) | Copyright generation and storage utility | |
CN104978537B (en) | The collocation method and device of a kind of document access authority | |
CN102957696A (en) | Data processing method and device | |
US10063590B1 (en) | Secure message protocol | |
CN116132715A (en) | Method and device for video tracing and security verification | |
CN104361007A (en) | Browser and processing method for browser favorites | |
US9633228B1 (en) | Verifiable media system and method | |
CN104598651A (en) | Method and apparatus for managing favorite on mobile terminal | |
JP5622472B2 (en) | Job search information providing system, job search information providing system web server, job search information providing system control method, and job search information providing system program | |
CN104346460B (en) | Carry out the method, apparatus and browser client of file download | |
CN105138274A (en) | Resource obtaining method of cloud disk and resource obtaining device of cloud disk | |
CN104410614B (en) | Data transmission, display methods, apparatus and system | |
CN103530549B (en) | File/applied program processing method on communication terminal and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220715 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181214 |