CN104348919B - Carry out the method, apparatus and browser of file download - Google Patents
Carry out the method, apparatus and browser of file download Download PDFInfo
- Publication number
- CN104348919B CN104348919B CN201410642969.9A CN201410642969A CN104348919B CN 104348919 B CN104348919 B CN 104348919B CN 201410642969 A CN201410642969 A CN 201410642969A CN 104348919 B CN104348919 B CN 104348919B
- Authority
- CN
- China
- Prior art keywords
- download
- server
- file
- user
- browser
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 235000014510 cooky Nutrition 0.000 claims description 48
- 238000001514 detection method Methods 0.000 claims description 17
- 230000001360 synchronised effect Effects 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 abstract description 17
- 239000002699 waste material Substances 0.000 abstract description 6
- 230000006870 function Effects 0.000 description 22
- 238000012545 processing Methods 0.000 description 20
- 238000012546 transfer Methods 0.000 description 6
- 238000012790 confirmation Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000005577 local transmission Effects 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 230000003213 activating effect Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000001105 regulatory effect Effects 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/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种进行文件下载的方法、装置和浏览器。其中,方法包括:检测到客户端侧基于第一协议发起的文件下载请求信息,并确定对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载;依据所述客户端侧的用户的标识信息登录到第一服务器侧,并将所述下载请求信息上传第一服务器侧;将第一服务器侧依据所述下载请求信息对文件进行下载的状态和/或结果信息发送回所述客户端侧进行显示和/或访问。本发明的方法及系统提高了下载、分享传输效率和速度,简化了资源数据下载、存储、上传分享,减少了对系统、网络及传输资源的占用和浪费,节省了用户时间和成本,降低了对高性能环境的依赖性。
The invention discloses a method, device and browser for file download. Wherein, the method includes: detecting the file download request information initiated by the client side based on the first protocol, and determining to download the first download file requested by the download request information on the first server side; according to the client side The identification information of the user on the side logs into the first server side, and uploads the download request information to the first server side; and sends back the status and/or result information that the first server side downloads the file according to the download request information The client side performs display and/or access. The method and system of the present invention improve downloading and sharing transmission efficiency and speed, simplify resource data downloading, storage, uploading and sharing, reduce occupation and waste of system, network and transmission resources, save user time and cost, and reduce Dependency on high-performance environments.
Description
技术领域technical field
本发明涉及数据下载技术领域,具体涉及进行文件下载的方法、装置和浏览器。The invention relates to the technical field of data downloading, in particular to a method, device and browser for file downloading.
背景技术Background technique
在互联网中,通过浏览器访问是一种最常见的有效获取各种信息和数据的方式。而现有技术中,实现互联网数据文件在线、离线下载、共享、云服务、云存储、云盘等技术也逐步发展起来,扩展了个人存储的空间、时间,成为便捷的个人网络硬盘、专业存储工具,人们可以随时随地安全地下载、存放数据和重要资料。丰富并便于分享可在线或离线获得的各种可下载资源,并且,利用云服务、浏览器访问下载获得文件等互联网技术,用户不需要把储存重要资料的实体磁盘带在身上,却一样可以通过互联网,轻松从云端获取自己所存储的信息,其提供拥有灵活性和按需功能的新一代下载服务,从而防止了成本失控,并能满足不断变化的业务重心及法规要求所形成的多样化需求。包括以下特点:1、安全保密:密码和手机绑定、空间访问信息随时告知;2、超大存储空间:不限单个文件大小,支持10TB独享存储;3、好友共享:通过提取码轻松分享;等等。On the Internet, accessing through a browser is the most common way to effectively obtain various information and data. In the existing technology, technologies such as online and offline downloading, sharing, cloud services, cloud storage, and cloud disks of Internet data files have gradually developed, expanding the space and time of personal storage, and becoming convenient personal network hard disks and professional storage. tools, people can safely download and store data and important materials anytime, anywhere. Rich and easy to share various downloadable resources that can be obtained online or offline, and using Internet technologies such as cloud services and browser access to download and obtain files, users do not need to carry physical disks that store important data with them, but they can also pass The Internet, which can easily obtain the information stored by itself from the cloud, provides a new generation of download services with flexibility and on-demand functions, thereby preventing costs from getting out of control, and meeting the diverse needs formed by changing business priorities and regulatory requirements . Including the following features: 1. Security and confidentiality: the password is bound to the mobile phone, and the space access information is notified at any time; 2. Large storage space: no limit to the size of a single file, and supports 10TB exclusive storage; 3. Sharing with friends: easy sharing by extracting the code; and many more.
但现有技术中,通过浏览器访问下载数据资源、下载文件等各类信息,往往经由浏览器直接登录具有被请求下载的数据资源的服务器上执行下载到本地的操作,必要时再上传到云盘进行备份存储或分享资源等,这样,对本地存储下载保存所涉及的网络的性能(包括传输速度效率、数据的本地传输、存储和系统资源等)、网络环境的状态、提供数据资源的服务器的性能、本地的存储设备及其性能,均有较高的要求,而当需要超大容量的云盘来存储或分享资源时,从本地上传更大的数据资源,对网络的性能也进一步增加了要求,导致互联网和本地传输资源的耗费过大、浪费传输和存储资源以及浪费用户的时间,而其传输的速度、效率也相对低下,下载和存储方式繁琐、缓慢,成本高。However, in the prior art, when accessing various information such as downloaded data resources and downloaded files through a browser, the browser is often used to directly log in to the server with the requested data resources to download to the local operation, and then upload to the cloud if necessary. In this way, the performance of the network involved in downloading and saving local storage (including transmission speed efficiency, local transmission of data, storage and system resources, etc.), the state of the network environment, and the server providing data resources The performance of the local storage device and its performance all have high requirements, and when a large-capacity cloud disk is required to store or share resources, uploading larger data resources locally will further increase the performance of the network. Requirements lead to excessive consumption of Internet and local transmission resources, waste of transmission and storage resources, and waste of user time, while the transmission speed and efficiency are relatively low, and the download and storage methods are cumbersome, slow, and costly.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服现有技术缺陷,解决上述问题或者至少部分地解决上述问题的浏览器中进行数据存储的方法及浏览器装置。In view of the above problems, the present invention is proposed to provide a method for storing data in a browser and a browser device that overcome the defects of the prior art, solve the above problems, or at least partially solve the above problems.
依据本发明的一个方面,提供了一种进行文件下载的方法,其包括:检测到客户端侧基于第一协议发起的文件下载请求信息,并确定对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载;依据所述客户端侧的用户的标识信息登录到第一服务器侧,并将所述下载请求信息上传第一服务器侧;将第一服务器侧依据所述下载请求信息对文件进行下载的状态和/或结果信息发送回所述客户端侧进行显示和/或访问。According to one aspect of the present invention, a method for downloading a file is provided, which includes: detecting file download request information initiated by a client side based on a first protocol, and determining the first download requested by the download request information Download the file to the first server side; log in to the first server side according to the identification information of the user on the client side, and upload the download request information to the first server side; upload the first server side according to the downloaded The status and/or result information of file download by request information is sent back to the client side for display and/or access.
可选地,所述第一协议包括:HTTP协议和其他扩展协议;其中,其他扩展协议还包括:BT下载协议、电驴ed2k下载协议、迅雷下载协议。Optionally, the first protocol includes: HTTP protocol and other extended protocols; wherein, other extended protocols also include: BT download protocol, eDonkey ed2k download protocol, and Thunder download protocol.
可选地,检测到客户端侧基于第一协议发起的文件下载请求信息,包括:浏览器对于客户端侧发出的每一个请求数据进行分析判断,以确定所述请求数据中所存在的基于第一协议发起的文件下载请求信息和该下载请求信息所请求下载的第一下载文件的地址URL。Optionally, detecting the file download request information initiated by the client side based on the first protocol includes: the browser analyzes and judges each request data sent by the client side, so as to determine the file download request information based on the first protocol in the request data. The file download request information initiated by a protocol and the address URL of the first downloaded file requested to be downloaded by the download request information.
可选地,确定对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载,包括:判断客户端侧的用户对基于第一协议发起的文件下载请求信息的选择确认;当所述选择确认为的下载,触发启动对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载。Optionally, determining to download the first download file requested by the download request information on the first server side includes: judging whether the user on the client side has selected and confirmed the file download request information initiated based on the first protocol; When the selection is confirmed as download, triggering the downloading of the first download file requested by the download request information on the first server side.
可选地,判断客户端侧的用户对基于第一协议发起的文件下载请求信息的选择确认,包括:基于第一协议发起的文件下载请求信息和该下载请求信息所请求下载的第一下载文件的地址URL,生成下载弹窗;判断客户端侧的用户在所述下载弹窗上的多个触发下载的入口中选择的入口,以根据该入口确认启动用户需要的下载;离线下载为所述多个触发下载的入口中的一个,当所述选择确认为离线下载,触发启动对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载。Optionally, judging whether the user on the client side has selected and confirmed the file download request information initiated based on the first protocol includes: the file download request information initiated based on the first protocol and the first downloaded file requested to be downloaded by the download request information address URL to generate a download pop-up window; determine the entry selected by the user on the client side from a plurality of trigger download entries on the download pop-up window, so as to confirm and start the download required by the user according to the entry; the offline download is the described One of the multiple download-triggering entries, when the selection is confirmed as offline download, triggers the downloading of the first download file requested by the download request information on the first server side.
可选地,依据所述客户端侧的用户的标识信息登录到第一服务器侧,包括:判断客户端侧的用户是否已经登录浏览器;如果是未登录浏览器的状态,则客户端侧的用户先通过密码和用户名进行浏览器登录,获得属于登录用户的合法标识信息,并且,将所述合法标识信息写入到第一服务器对应网站的cookie数据中,在登录用户第一服务器时,读取cookie数据而直接登录第一服务器;如果是已经登录浏览器的状态,则直接根据客户端侧的浏览器的登录用户的所述标识信息登录到第一服务器侧。Optionally, logging in to the first server side according to the identification information of the user on the client side includes: judging whether the user on the client side has logged in to the browser; The user first logs in the browser through the password and user name, obtains the legal identification information belonging to the logged-in user, and writes the legal identification information into the cookie data of the website corresponding to the first server. When logging in to the user's first server, Read the cookie data and directly log in to the first server; if you have already logged in to the browser, log in to the first server side directly according to the identification information of the logged-in user of the browser on the client side.
可选地,获得属于登录用户的合法标识信息,并且,将所述合法标识信息写入到第一服务器对应网站的cookie数据中,在登录用户第一服务器时,读取cookie数据而直接登录第一服务器,包括:所述合法标识信息包括:当前浏览器用户Q.T串,第一服务器根据当前浏览器传递来的所述当前浏览器用户Q.T串完成第一服务器登录后所生成并返回给当前浏览器的认证token;其中,用户Q.T串和认证token具有时效性;基于写入cookie数据的当前浏览器用户Q.T串和认证token,登录第一服务器,形成浏览器与第一服务器相互关联的已登录状态。Optionally, legal identification information belonging to the logged-in user is obtained, and the legal identification information is written into the cookie data of the website corresponding to the first server, and when the user logs in to the first server, the cookie data is read to directly log in to the first server. A server, including: the legal identification information includes: the current browser user Q.T string, which is generated by the first server after completing the first server login according to the current browser user Q.T string passed by the current browser and returned to the current browser The authentication token of the server; wherein, the user Q.T string and the authentication token are time-sensitive; based on the current browser user Q.T string and the authentication token written in the cookie data, log in to the first server to form a browser and the first server. state.
可选地,并将所述下载请求信息上传第一服务器侧,包括:至少上传下载请求信息所请求下载的第一下载文件的地址URL,以便第一服务器可以使用该URL进行离线下载;或者,浏览器对所述下载文件进行解析获取其描述信息中的种子BT下载地址URL信息,上传到第一服务器侧,以便第一服务器进行种子BT下载文件;或者,将所述下载文件作为种子BT文件上传到所述第一服务器进行解析并保存。Optionally, uploading the download request information to the first server side includes: at least uploading the address URL of the first download file requested by the download request information, so that the first server can use the URL for offline download; or, The browser parses the downloaded file to obtain the URL information of the seed BT download address in its description information, uploads it to the first server side, so that the first server performs the seed BT download file; or, uses the downloaded file as the seed BT file upload to the first server for parsing and saving.
可选地,还包括:第一服务器根据上传的所述下载文件的URL的MD5值与保存在第一服务器的下载资源中的URL的MD5值进行比较后,确定第一服务器是否保存对应所述下载文件的下载资源;当有对应的下载资源时直接将该下载资源快速转存(妙传)到本地客户端侧,否则,第一服务器根据上传的所述下载文件的URL从该下载资源所在数据服务器进行离线下载。Optionally, it also includes: after the first server compares the MD5 value of the URL of the uploaded download file with the MD5 value of the URL stored in the download resource of the first server, determine whether the first server saves the The download resource of the download file; when there is a corresponding download resource, directly transfer the download resource to the local client side quickly, otherwise, the first server will start from the URL where the download resource is located according to the URL of the uploaded download file. Data server for offline download.
可选地,还包括:在执行离线下载前,客户端侧的浏览器先进行无cookie的下载环境模拟;如果无cookie下的下载失败,则不能进行第一服务器侧的离线下载,只能在客户端侧进行下载。Optionally, it also includes: before performing the offline download, the browser on the client side first simulates the download environment without cookies; download on the client side.
可选地,将第一服务器侧依据所述下载请求信息对文件进行下载的状态和/或结果信息发送回所述客户端侧进行显示和/或访问,包括:第一服务器侧返回同步的下载的状态和/或结果信息;其中,结果信息包括在第一服务器侧生成的离线下载的文件的URL;用户可以使用该URL从第一服务器侧进行下载到本地客户端侧或者分享该URL,以便别的用户进行下载。Optionally, sending the status and/or result information of the file downloaded by the first server side according to the download request information back to the client side for display and/or access, including: the first server side returns a synchronous download status and/or result information; wherein, the result information includes the URL of the offline downloaded file generated at the first server side; the user can use the URL to download from the first server side to the local client side or share the URL so that other users to download.
依据本发明的另一个方面,提供了一种进行文件下载的装置,其中,包括:检测单元,用于检测到客户端侧基于第一协议发起的文件下载请求信息,并确定对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载;登录单元,依据所述客户端侧的用户的标识信息登录到第一服务器侧,并将所述下载请求信息上传第一服务器侧;返回单元,将第一服务器侧依据所述下载请求信息对文件进行下载的状态和/或结果信息发送回所述客户端侧进行显示和/或访问。According to another aspect of the present invention, there is provided a device for downloading files, which includes: a detection unit, configured to detect file download request information initiated by the client side based on the first protocol, and determine the request for downloading The first download file requested by the information is downloaded on the first server side; the login unit logs in to the first server side according to the identification information of the user on the client side, and uploads the download request information to the first server side The return unit sends the status and/or result information of the file downloaded by the first server side according to the download request information back to the client side for display and/or access.
可选地,所述第一协议包括:HTTP协议和其他扩展协议;其中,其他扩展协议还包括:BT下载协议、电驴ed2k下载协议、迅雷下载协议。Optionally, the first protocol includes: HTTP protocol and other extended protocols; wherein, other extended protocols also include: BT download protocol, eDonkey ed2k download protocol, and Thunder download protocol.
可选地,检测单元还包括:浏览器对于客户端侧发出的每一个请求数据进行分析判断,以确定所述请求数据中所存在的基于第一协议发起的文件下载请求信息和该下载请求信息所请求下载的第一下载文件的地址URL。Optionally, the detection unit further includes: the browser analyzes and judges each request data sent by the client side, so as to determine the file download request information initiated based on the first protocol and the download request information in the request data. Address URL of the first downloaded file requested to be downloaded.
可选地,检测单元还包括:判断客户端侧的用户对基于第一协议发起的文件下载请求信息的选择确认;当所述选择确认为的下载,触发启动对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载。Optionally, the detection unit further includes: judging that the user on the client side confirms the selection and confirmation of the file download request information initiated based on the first protocol; when the selection is confirmed as a download, triggering and starting the download requested by the download request information The first downloaded file is downloaded on the first server side.
可选地,检测单元还包括:基于第一协议发起的文件下载请求信息和该下载请求信息所请求下载的第一下载文件的地址URL,生成下载弹窗;判断客户端侧的用户在所述下载弹窗上的多个触发下载的入口中选择的入口,以根据该入口确认启动用户需要的下载;离线下载为所述多个触发下载的入口中的一个,当所述选择确认为离线下载,触发启动对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载。Optionally, the detection unit further includes: generating a download pop-up window based on the file download request information initiated by the first protocol and the address URL of the first download file requested to be downloaded by the download request information; Download the entry selected from the multiple trigger download entries on the pop-up window, so as to confirm and start the download required by the user according to the entry; offline download is one of the multiple trigger download entries, when the selection is confirmed as offline download , triggering the downloading of the first download file requested by the download request information on the first server side.
可选地,登录单元还包括:判断客户端侧的用户是否已经登录浏览器;如果是未登录浏览器的状态,则客户端侧的用户先通过密码和用户名进行浏览器登录,获得属于登录用户的合法标识信息,并且,将所述合法标识信息写入到第一服务器对应网站的cookie数据中,在登录用户第一服务器时,读取cookie数据而直接登录第一服务器;如果是已经登录浏览器的状态,则直接根据客户端侧的浏览器的登录用户的所述标识信息登录到第一服务器侧。Optionally, the login unit also includes: judging whether the user on the client side has already logged in to the browser; The legal identification information of the user, and write the legal identification information into the cookie data of the website corresponding to the first server, when logging in to the user's first server, read the cookie data and directly log in to the first server; if already logged in The status of the browser is directly logged in to the first server side according to the identification information of the logged-in user of the browser on the client side.
可选地,登录单元还包括:所述合法标识信息包括:当前浏览器用户Q.T串,第一服务器根据当前浏览器传递来的所述当前浏览器用户Q.T串完成第一服务器登录后所生成并返回给当前浏览器的认证token;其中,用户Q.T串和认证token具有时效性;基于写入cookie数据的当前浏览器用户Q.T串和认证token,登录第一服务器,形成浏览器与第一服务器相互关联的已登录状态。Optionally, the login unit further includes: the legal identification information includes: the current browser user Q.T string, which is generated by the first server after logging in to the first server according to the current browser user Q.T string delivered by the current browser. The authentication token returned to the current browser; among them, the user Q.T string and the authentication token are time-sensitive; based on the current browser user Q.T string and the authentication token written in the cookie data, log in to the first server to form a mutual connection between the browser and the first server. The associated logged-in state.
可选地,登录单元还包括:至少上传下载请求信息所请求下载的第一下载文件的地址URL,以便第一服务器可以使用该URL进行离线下载;或者,浏览器对所述下载文件进行解析获取其描述信息中的种子BT下载地址URL信息,上传到第一服务器侧,以便第一服务器进行种子BT下载文件;或者,将所述下载文件作为种子BT文件上传到所述第一服务器进行解析并保存。Optionally, the login unit further includes: uploading at least the address URL of the first download file requested by the download request information, so that the first server can use the URL for offline download; or, the browser parses and obtains the download file The seed BT download address URL information in its description information is uploaded to the first server side, so that the first server performs the seed BT download file; or, the download file is uploaded to the first server as a seed BT file for parsing and save.
可选地,登录单元还包括:第一服务器根据上传的所述下载文件的URL的MD5值与保存在第一服务器的下载资源中的URL的MD5值进行比较后,确定第一服务器是否保存对应所述下载文件的下载资源;当有对应的下载资源时直接将该下载资源快速转存(妙传)到本地客户端侧,否则,第一服务器根据上传的所述下载文件的URL从该下载资源所在数据服务器进行离线下载。Optionally, the login unit further includes: the first server determines whether the first server saves the corresponding The download resource of the download file; when there is a corresponding download resource, the download resource is directly transferred to the local client side quickly, otherwise, the first server downloads from the download file according to the URL of the uploaded download file. The data server where the resources are located is downloaded offline.
可选地,登录单元还包括:在执行离线下载前,客户端侧的浏览器先进行无cookie的下载环境模拟;如果无cookie下的下载失败,则不能进行第一服务器侧的离线下载,只能在客户端侧进行下载。Optionally, the login unit also includes: before performing the offline download, the browser on the client side performs a cookie-free download environment simulation; Can be downloaded on the client side.
可选地,返回单元,包括:第一服务器侧返回同步的下载的状态和/或结果信息;其中,结果信息包括在第一服务器侧生成的离线下载的文件的URL;用户可以使用该URL从第一服务器侧进行下载到本地客户端侧或者分享该URL,以便别的用户进行下载。Optionally, the returning unit includes: the first server side returns the status and/or result information of the synchronous download; wherein, the result information includes the URL of the offline downloaded file generated on the first server side; the user can use the URL from The first server side downloads to the local client side or shares the URL so that other users can download.
依据本发明的再一个方面,提供了一种使用上述方法的浏览器。According to still another aspect of the present invention, a browser using the above method is provided.
依据本发明的又一个方面,提供了一种具有上述装置的浏览器装置。According to yet another aspect of the present invention, a browser device having the above device is provided.
与现有技术相比,本发明的方法及系统,在浏览器与服务器结合(如云服务的结合),进行数据资源的多方式下载和云存储,简化了浏览器对访问获得的资源下载、存储、上传分享过程中的繁琐操作,减少了对系统及传输资源、本地客户端、网络、服务器等的占用和浪费,节省了用户时间和成本,降低了对网络、本地设备、服务器(包括云端服务器/云服务器)等的高性能环境的依赖性,提高了分享、传输的效率和速度,实现了简单便捷的数据资源访问下载和分享下载的资源,扩展了云盘和浏览器的功能及运用。Compared with the prior art, the method and system of the present invention, in the combination of the browser and the server (such as the combination of cloud services), performs multi-mode downloading and cloud storage of data resources, which simplifies the downloading and storage of resources obtained by the browser for access. The cumbersome operations in the process of storage, uploading and sharing reduce the occupation and waste of system and transmission resources, local clients, networks, servers, etc., save user time and costs, and reduce the need for network, local equipment, servers (including cloud) Server/cloud server) and other high-performance environments improve the efficiency and speed of sharing and transmission, realize simple and convenient access to data resources, download and share downloaded resources, and expand the functions and applications of cloud disks and browsers .
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。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.
附图说明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 components. In the attached picture:
图1示出了根据本发明的方法的一个实施例总流程图;Fig. 1 shows a general flowchart of an embodiment of the method according to the present invention;
图2示出了根据本发明的方法的一个实施例的详细流程图;Fig. 2 shows a detailed flow chart according to one embodiment of the method of the present invention;
图3示出了根据本发明的一个下载弹窗示意图;Fig. 3 shows a schematic diagram of a download pop-up window according to the present invention;
图4示出了根据本发明的方法的确定进行第一服务器侧的下载的一实施例流程;Fig. 4 shows the process of an embodiment of determining to perform downloading on the first server side according to the method of the present invention;
图5示出了根据本发明的方法判断浏览器登录的一实施例流程图;Fig. 5 shows a flowchart of an embodiment of judging browser login according to the method of the present invention;
图6A~6B示出了根据本发明的方法及系统的一个应用场景的示意图;6A-6B show a schematic diagram of an application scenario of the method and system according to the present invention;
图7示出了根据本发明的方法的关于秒传一实施例流程图;以及Figure 7 shows a flow chart of an embodiment of the second transmission according to the method of the present invention; and
图8示出了根据本发明的装置的一个实施例的结构框图。Fig. 8 shows a structural block diagram of an embodiment of the device according to the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
本发明的技术方案可以应用于通过浏览器访问期间所进行的文件等数据资源的下载、收藏、存储、分享等场景,该方案关联了浏览器和云服务(云服务器离线下载妙传等、网盘/云盘、相册、云收藏等),通过浏览器访问下载资源能有效关联并利用随时随地可安全存放数据的云服务器/云盘/云存储等分享和下载资源,使得下载、分享资源的速度和效率高,对设备系统网络及传输等资源和环境的依赖性小,能由对已经下载或保存过的资源根据请求信息实现秒传,减少重复的下载和寻址,减少对这些环境资源的占用和浪费。The technical solution of the present invention can be applied to scenarios such as downloading, collecting, storing, and sharing of data resources such as files performed during browser access. Disks/cloud disks, photo albums, cloud collections, etc.), accessing downloaded resources through a browser can effectively associate and use cloud servers/cloud disks/cloud storage that can safely store data anytime and anywhere to share and download resources, making downloading and sharing resources easy High speed and efficiency, less dependence on resources and environments such as device system network and transmission, can realize instant transmission of resources that have been downloaded or saved according to request information, reduce repeated downloads and addressing, and reduce the need for these environmental resources occupation and waste.
如图1所示,图1是根据本发明的方法的一个实施例的总流程图。As shown in Fig. 1, Fig. 1 is a general flowchart of an embodiment of the method according to the present invention.
一种进行文件下载方法,包括:步骤S110,检测到客户端侧基于第一协议发起的文件下载请求信息,并确定对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载;步骤S120,依据所述客户端侧的用户的标识信息登录到第一服务器侧,并将所述下载请求信息上传第一服务器侧;步骤S130,将第一服务器侧依据所述下载请求信息对文件进行下载的状态和/或结果信息发送回所述客户端侧进行显示和/或访问。A method for downloading a file, comprising: step S110, detecting file download request information initiated by the client side based on a first protocol, and determining that the first download file requested to be downloaded by the download request information is to be downloaded by the first server side Download; step S120, log in to the first server side according to the identification information of the user on the client side, and upload the download request information to the first server side; step S130, upload the download request information to the first server side according to the download request information The status and/or result information of downloading the file is sent back to the client side for display and/or access.
其中,所述第一协议包括:HTTP协议和其他扩展协议;而其他扩展协议包括:BT下载协议、电驴ed2k下载协议、迅雷下载协议。这些协议可以在用户对访问的数据资源发出下载请求时,应用相应的协议进行下载处理。如离线下载,可以是根据HTTP协议由第一服务器链接到提供数据资源的服务器进行下载;BT下载协议包括了对p2p协议的应用和改变,越多人对该分享出同一数据资源请求下载,则其传输效率越快,等等。Wherein, the first protocol includes: HTTP protocol and other extended protocols; and other extended protocols include: BT download protocol, eDonkey ed2k download protocol, and Thunder download protocol. These protocols can apply corresponding protocols for download processing when the user sends a download request for the accessed data resource. Such as offline downloading, it can be downloaded according to the HTTP protocol from the first server to the server that provides the data resource; the BT download protocol includes the application and change of the p2p protocol, the more people request to download the same data resource shared, then The faster its transmission efficiency, and so on.
如图2所示的根据本发明的一个实施例的详细流程图。A detailed flowchart according to an embodiment of the present invention is shown in FIG. 2 .
步骤S210,浏览器对于客户端侧发出的每一个请求数据进行分析判断,以确定所述请求数据中所存在的基于第一协议发起的文件下载请求信息和该下载请求信息所请求下载的第一下载文件的地址URL。Step S210, the browser analyzes and judges each request data sent by the client side, so as to determine the file download request information initiated based on the first protocol and the first file download requested by the download request information in the request data. The address URL of the downloaded file.
具体地,客户端侧的用户通过浏览器进行数据资源的访问时,用户会选择浏览器页面上加载的各种对象如:链接(网络地址)、按钮、图标、图片、文件等等进行操作。该操作包括诸如各种:点击、双击按钮、图标、链接等,或拖动图片、文档等,或选中了相应的对象后(如高亮显示),按压鼠标右键弹出菜单选择菜单项中指示项进行下载、保存等操作。这些操作对应发出相应的请求数据。Specifically, when a user on the client side accesses data resources through a browser, the user will select various objects loaded on the browser page such as links (network addresses), buttons, icons, pictures, files, etc. to operate. This operation includes various types such as: click, double-click a button, icon, link, etc., or drag a picture, document, etc., or after selecting the corresponding object (such as highlighted), press the right mouse button to pop up a menu to select the indicated item in the menu item Perform operations such as downloading and saving. These operations correspond to sending the corresponding request data.
浏览器对每一个请求数据进行分析判断,确定哪些请求数据中是需要对文件进行下载的下载请求信息,并且,该下载请求信息是基于第一协议发起的,如:基于HTTP协议发起的离线下载请求信息,或基于BT下载协议发起的本地下载请求信息,等等。The browser analyzes and judges each request data to determine which request data is the download request information that needs to download the file, and the download request information is initiated based on the first protocol, such as: offline download initiated based on the HTTP protocol Request information, or local download request information initiated based on the BT download protocol, and so on.
在下载请求信息中,会包含请求下载的第一下载文件的地址URL,如:浏览器所在本地解析出该第一下载文件的地址URL,以便直接由该地址URL从对应的服务器下载文件到本地,或者将该地址URL传递到第一服务器,由第一服务器确认是否已经保存(如数据库中存储)了该URL对应第一下载文件,秒传到本地或由第一服务器根据该地址从对应的服务器下载文件到第一服务器而执行离线下载,等等。因而,需要确定要下载的该第一下载文件的地址URL。In the download request information, the address URL of the first download file requested to be downloaded will be included, such as: the address URL of the first download file is resolved locally by the browser, so that the file can be directly downloaded from the corresponding server to the local by the address URL , or pass the address URL to the first server, and the first server confirms whether the URL corresponding to the first download file has been saved (such as stored in the database), and then transmits it to the local in seconds or from the corresponding download file according to the address by the first server. The server downloads the file to the first server to perform an offline download, and so on. Therefore, it is necessary to determine the address URL of the first download file to be downloaded.
由此,在客户端侧,用户进行访问时可以由浏览器分析判断请求数据从而得到下载请求信息及其第一下载文件的地址URL,作为检测结果,进而,可以基于第一协议发起的文件下载请求信息和该下载请求信息所请求下载的第一下载文件的地址URL,生成下载弹窗。如图3所示下载弹窗。Thus, on the client side, when the user accesses, the browser can analyze and judge the request data to obtain the download request information and the address URL of the first downloaded file, as the detection result, and further, the file download initiated based on the first protocol can be obtained. The request information and the address URL of the first download file requested to be downloaded by the download request information generate a download pop-up window. Download the pop-up window as shown in Figure 3.
步骤S220,判断客户端侧的用户对基于第一协议发起的文件下载请求信息的选择确认,当所述选择确认为的下载,触发启动对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载。Step S220, judging that the user on the client side confirms the selection and confirmation of the file download request information initiated based on the first protocol, and when the selection is confirmed as a download, triggering the first download file requested to be downloaded by the download request information Downloading on the first server side.
在一个实施方式中,判断客户端侧的用户对基于第一协议发起的文件下载请求信息的选择确认,包括如图4所示的本发明的方法的确定对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载的一实施例流程:In one embodiment, judging that the user on the client side confirms the selection and confirmation of the file download request information initiated based on the first protocol includes determining whether the download request information requested by the download request information is determined by the method of the present invention as shown in FIG. 4 The process of an embodiment of downloading the first download file on the first server side:
步骤S410,判断客户端侧的用户在所述下载弹窗上的多个触发下载的入口中选择的入口,以根据该入口确认启动用户需要的下载;Step S410, judging the entry selected by the user on the client side from among the multiple download-triggering entries on the download pop-up window, so as to confirm and start the download required by the user according to the entry;
步骤420,离线下载为所述多个触发下载的入口中的一个,当所述选择确认为离线下载,触发启动对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载。Step 420, the offline download is one of the multiple trigger download entries, and when the selection is confirmed as offline download, the trigger starts to download the first download file requested by the download request information on the first server side .
如图3所示,弹窗上包括:离线下载到云盘、下载(即直接下载到本地)等触发下载的入口,要下载的第一下载文件的地址(网址)URL、名称、文件大小等都在该下载弹窗中。客户端侧的用户在浏览器访问时,发出了下载请求信息并由浏览器检测到,激活下载进程产生该弹窗后,若用户对该弹窗上的入口进行选择,点击离线下载入口,即选择的该入口确定用户需要做该离线下载。由此,用户触发了启动进行该第一下载文件的第一服务器侧的下载。如:离线下载到云盘,该第一服务器为云服务器,就可以由该云服务器侧,根据该文件的地址URL、大小等等执行离线下载,从该文件地址所指示的共享或分享数据资源的服务器上下载获取该文件。As shown in Figure 3, the pop-up window includes: offline download to cloud disk, download (that is, direct download to local) and other trigger download entries, the address (web address) URL, name, file size, etc. of the first download file to be downloaded It's all in the download popup. The user on the client side sends a download request message when accessing the browser and is detected by the browser. After activating the download process and generating the pop-up window, if the user selects the entry on the pop-up window and clicks the offline download entry, that is The selected entry determines that the user needs to do the offline download. Thus, the user triggers the downloading of the first download file on the first server side. Such as: offline download to cloud disk, the first server is a cloud server, and the cloud server can perform offline download according to the address URL, size, etc. of the file, and share or share data resources from the file address indicated download the file from the server.
例如:下载器,属于浏览器程序,根据检测结果,提供该下载对话框(图3所示下载弹窗),根据从浏览器主进程中检测到的URL和文件大小执行离线下载,关联上云盘即云服务器(第一服务器),即确定了对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载,此后,会由云盘去数据服务器根据该URL进行离线下载,当云盘下载的时候,就只是提供对话框(显示下载进度、状态的下载列表等)和嵌入的云下载按钮了。For example: the downloader, which belongs to the browser program, provides the download dialog box (the download pop-up window shown in Figure 3) according to the detection result, performs offline download according to the URL and file size detected from the main process of the browser, and associates with the cloud The disk is the cloud server (first server), that is, it is determined that the first download file requested by the download request information is downloaded on the first server side, after that, the cloud disk will go to the data server to perform offline download according to the URL , when the cloud disk is downloaded, it only provides a dialog box (displaying the download progress, the download list of the status, etc.) and the embedded cloud download button.
如图6A、6B、3所示本发明的一个应用场景的例子:客户端侧的用户对当前浏览器所访问页面上的数据发出文件下载请求,下载器获得对当前浏览器所访问页面上的数据的下载请求的命令,比如,选中数据对象(下载请求信息所要下载的第一下载文件)后,点击鼠标右键弹出菜单选择下载操作指示项,发出该请求的命令(下载请求信息),然后,弹出对话框(图3)。该下载器根据请求,对要进行下载的文件提取到相对应的信息,比如文件大小、数据具体内容所属服务器的地址链接URL、文件扩展名,等等,在弹窗中显示。然后,用户可以选择点击“下载”按钮即直接本地下载,或选择“离线下载到云盘”按钮即由云盘去执行下载。其中,若是执行本地下载,在本地下载期间或本地下载执行完之后,还可以再选择云盘存储,即将本地下载的该文件也传递到云盘供其他用户分享/共享(如图6B下载器右边显示云朵按钮)。而若是执行“离线下载到云盘”,则确定要进行云盘侧的下载。可以通过断点续传或多元传送的方式,执行浏览器所在本地从云存储端服务器直接下载存储到本地的同时,云存储端根据相对应的信息从所述数据所在服务器执行离线下载存储,并由所述本地从云存储端服务器传递之前未下载存储过的所述数据的部分。An example of an application scenario of the present invention as shown in Figures 6A, 6B, and 3: the user on the client side sends a file download request to the data on the page accessed by the current browser, and the downloader obtains the data on the page accessed by the current browser. The command of the download request of the data, for example, after selecting the data object (the first download file to be downloaded by the download request information), click the right mouse button to pop up a menu to select the download operation instruction item, send the command of the request (download request information), and then, A dialog box pops up (Figure 3). According to the request, the downloader extracts the corresponding information of the file to be downloaded, such as the file size, the address link URL of the server to which the specific content of the data belongs, the file extension, etc., and displays it in the pop-up window. Then, the user can choose to click the "Download" button to directly download locally, or select the "Offline download to cloud disk" button to perform the download from the cloud disk. Among them, if the local download is performed, during the local download or after the local download is executed, you can also choose cloud disk storage, and the file downloaded locally will also be transferred to the cloud disk for other users to share/share (as shown on the right side of the downloader in Figure 6B Show cloud button). And if you execute "offline download to cloud disk", make sure to download on the cloud disk side. By means of resuming transmission or multiple transfers, the browser directly downloads and stores from the cloud storage terminal server to the local area where the browser is located, and at the same time, the cloud storage terminal executes offline download and storage from the server where the data is located according to the corresponding information, and The part of the data that has not been downloaded and stored before is delivered by the local slave cloud storage server.
步骤S230,判断客户端侧的用户是否已经登录浏览器。Step S230, judging whether the user at the client side has logged in the browser.
依据所述客户端侧的用户的标识信息登录到第一服务器侧,先要判断客户端侧的用户在访问浏览器时是否已经登录该浏览器。呈上述应用场景例子,若要进行云盘侧的下载,还需要判断浏览器与云盘的登录状态。To log in to the first server side according to the identification information of the user at the client side, it is first necessary to determine whether the user at the client side has already logged in to the browser when accessing the browser. In the example of the above application scenario, if the download on the cloud disk side is to be performed, it is also necessary to determine the login status of the browser and the cloud disk.
在一个实施方式中,进行第一服务器侧的下载之前,即如果确定用户选择了离线下载到云盘,可以在离线下载之前,在客户端侧的浏览器侧先进行无cookie的下载环境模拟(模拟该请求一次),确定是否离线下载能够成功,以给出是否进行离线下载的判断结果,其中,如果无cookie下的下载失败,则不能进行第一服务器侧的离线下载,只能在客户端侧进行下载。In one embodiment, before the download on the first server side, that is, if it is determined that the user has selected offline download to the cloud disk, before the offline download, a cookie-free download environment simulation can be performed on the browser side of the client side ( Simulate the request once), determine whether the offline download can be successful, to give the judgment result of whether to perform offline download, wherein, if the download fails under no cookie, the offline download on the first server side cannot be performed, only the client side to download.
确定进行第一服务器侧的下载,并可以进行离线下载,首先判断浏览器是否登录。若未登录,甚至未注册,可以提示当前浏览器用户通过用名、密码等实现登录或者注册。其中,注册浏览器帐号后,用户会得到浏览器提供给登录用户的浏览器标识,例如:当前浏览器用户Q.T串;然后,该登录用户利用该用户Q.T串经浏览器登录到第一服务器(首次),在第一服务器对应的网站cookie中写入该串并返回cookie给浏览器,同时cookie中还写入了第一服务器提供给登录用户的认证token。这样,将浏览器和第一服务器关联起来。It is determined to perform the download on the first server side, and the offline download can be performed, and firstly, it is determined whether the browser is logged in. If you have not logged in or even registered, you can prompt the current browser user to log in or register by using a name, password, etc. Wherein, after registering the browser account, the user will obtain the browser identification provided by the browser to the logged-in user, for example: the current browser user Q.T string; then, the logged-in user utilizes the user Q.T string to log in to the first server via the browser ( For the first time), the string is written in the website cookie corresponding to the first server and the cookie is returned to the browser, and the authentication token provided by the first server to the login user is also written in the cookie. In this way, the browser is associated with the first server.
在一个实施方式,如图5所示给出了根据本发明的方法判断浏览器登录的一实施例流程图。In one embodiment, as shown in FIG. 5 , a flow chart of an embodiment of judging browser login according to the method of the present invention is given.
步骤S510,如果是未登录浏览器的状态,则客户端侧的用户先通过密码和用户名进行浏览器登录,获得属于登录用户的合法标识信息,并且,将所述合法标识信息写入到第一服务器对应网站的cookie数据中,在登录用户第一服务器时,读取cookie数据而直接登录第一服务器。Step S510, if the browser is not logged in, the user on the client side first logs in the browser through the password and user name, obtains the legal identification information belonging to the logged-in user, and writes the legal identification information into the first A server corresponds to the cookie data of the website, when the user logs in to the first server, reads the cookie data and directly logs in to the first server.
用户未登录时,提供登录界面输入帐号(用户名、密码等),获取属于当前浏览器的登录用户的合法标识信息,并将该合法标识信息写入到第一服务器对应网站的cookie数据中,在用户经浏览器登录/访问该第一服务器时,浏览器携带的cookie数据能够被第一服务器读取,确定该cookie数据中的合法标识信息,其关联着当前的浏览器和该第一服务器,从而认证直接登录到该第一服务器。When the user is not logged in, provide a login interface to input an account (user name, password, etc.), obtain the legal identification information of the logged-in user belonging to the current browser, and write the legal identification information into the cookie data of the corresponding website of the first server, When the user logs in/accesses the first server via the browser, the cookie data carried by the browser can be read by the first server to determine the legal identification information in the cookie data, which is associated with the current browser and the first server , so that the authentication directly logs in to the first server.
其中,合法标识信息包括:当前浏览器的注册用户的用户Q.T串,以及,第一服务器根据当前浏览器传递来的所述当前浏览器用户Q.T串完成第一服务器登录后所生成并返回给当前浏览器的认证token;其中,用户Q.T串和认证token有时效性;Wherein, the legal identification information includes: the user Q.T string of the registered user of the current browser, and the first server generates and returns to the current browser user Q.T string after completing the first server login according to the current browser user Q.T string passed by the current browser. The authentication token of the browser; among them, the user Q.T string and the authentication token are time-sensitive;
其中,基于写入cookie数据的当前浏览器用户Q.T串和认证token,登录第一服务器,形成浏览器与第一服务器相互关联的已登录状态。Wherein, based on the current browser user Q.T string written in the cookie data and the authentication token, log in to the first server to form a logged-in state in which the browser and the first server are associated with each other.
步骤S520,如果是已经登录浏览器的状态,则直接根据客户端侧的浏览器的登录用户的所述标识信息登录到第一服务器侧。Step S520, if the browser has already logged in, log in to the first server side directly according to the identification information of the logged-in user of the browser on the client side.
浏览器处于已经登录的状态,需要进行第一服务器侧的下载,则当前浏览器的登录用户的标识信息是合法标识信息,直接将The browser is in the logged-in state and needs to be downloaded from the first server side, then the identification information of the logged-in user of the current browser is legal identification information, and the
步骤S240,至少上传下载请求信息所请求下载的第一下载文件的地址URL,以便第一服务器可以使用该URL进行离线下载;或者,浏览器对所述下载文件进行解析获取其描述信息中的种子BT下载地址URL信息,上传到第一服务器侧,以便第一服务器进行种子BT下载文件;或者,将所述下载文件作为种子BT文件上传到所述第一服务器进行解析并保存。Step S240, at least upload the address URL of the first download file requested by the download request information, so that the first server can use the URL for offline download; or, the browser parses the download file to obtain the seed in its description information The BT download address URL information is uploaded to the first server side so that the first server can download the seed BT file; or upload the downloaded file as a seed BT file to the first server for parsing and saving.
以HTTP协议的离线下载为例,由于下载请求信息中能确定其要下载的第一下载文件和该文件的地址URL,在登录到第一服务器并在第一服务器侧进行离线下载时,至少要上传该文件的地址URL,以便该第一服务器能够根据该URL找到提供该文件资源的数据服务器或资源服务器,进行离线下载。上传的关于该要下载的文件的信息除了URL外还可以包括文件内容、文件名称、文件大小等等。Taking the offline download of the HTTP protocol as an example, since the first download file to be downloaded and the address URL of the file can be determined in the download request information, when logging in to the first server and performing offline download on the first server side, at least The address URL of the file is uploaded, so that the first server can find the data server or resource server providing the file resource according to the URL, and perform offline download. The uploaded information about the file to be downloaded may include file content, file name, file size, etc. in addition to the URL.
以基于第一协议发起的下载是BT下载时为例,可以先在客户端侧的浏览器对下载文件解析得到描述信息的种子BT下载URL信息,再上传给第一服务器侧基于该BT下载URL信息进行BT下载;或者,将下载文件作为种子,上传到第一服务器,由其解析后保存。Taking the download initiated based on the first protocol as a BT download as an example, the browser on the client side can first analyze the download file to obtain the seed BT download URL information describing the information, and then upload it to the first server side based on the BT download URL The information is downloaded via BitTorrent; or, the downloaded file is used as a seed and uploaded to the first server for analysis and storage.
进一步,第一服务器还可以根据下载请求信息对客户端侧进行请求下载的文件的“秒传”操作,进一步提升下载的效率,减小资源浪费和占用。参见图7所示的根据本发明的方法的关于秒传一实施例流程图。Furthermore, the first server can perform a "second transfer" operation of the file requested to be downloaded to the client side according to the download request information, so as to further improve download efficiency and reduce resource waste and occupation. Refer to the flow chart of an embodiment of the second transmission method according to the method of the present invention shown in FIG. 7 .
步骤S710,第一服务器根据上传的所述下载文件的URL的MD5值与保存在第一服务器的下载资源中的URL的MD5值进行比较后,确定第一服务器是否保存对应所述下载文件的下载资源。Step S710, after the first server compares the MD5 value of the URL of the uploaded download file with the MD5 value of the URL stored in the download resource of the first server, determine whether the first server saves the download file corresponding to the download file. resource.
步骤S720,当有对应的下载资源时直接将该下载资源快速转存(妙传)到本地客户端侧,否则,第一服务器根据上传的所述下载文件的URL从该下载资源所在数据服务器进行离线下载。Step S720, when there is a corresponding download resource, the download resource is directly quickly transferred (transmitted) to the local client side, otherwise, the first server performs the download from the data server where the download resource is located according to the URL of the uploaded download file. Download offline.
步骤S250,第一服务器侧返回同步的下载的状态和/或结果信息;其中,结果信息包括在第一服务器侧生成的离线下载的文件的URL。In step S250, the first server side returns the status and/or result information of the synchronized download; wherein, the result information includes the URL of the offline downloaded file generated on the first server side.
在一个实施方式中,第一服务器侧返回的同步下载状态如下载的百分比等信息,结果信息如成功或失败、正在进行哪项处理、生成的离线下载地址的文件的URL等,都可以返回到客户端侧,通过弹窗、对话框等方式,显示给用户。In one embodiment, the synchronous download status returned by the first server side, such as information such as the percentage of downloading, and result information such as success or failure, which process is in progress, the URL of the file of the generated offline download address, etc., can all be returned to On the client side, it is displayed to the user through pop-up windows, dialog boxes, etc.
进而,用户可以使用该URL从第一服务器侧进行下载到本地客户端侧或者分享该URL(如上传等),以便别的用户进行下载。Furthermore, the user can use the URL to download from the first server side to the local client side or share the URL (such as uploading, etc.) so that other users can download.
由此,浏览器的登录直接登录第一服务器并由其执行离线下载,在已经存储有相应的要下载的文件资源时,秒传数据文件,提高了传输效率和速度,节省了下载时间,减少了对网络系统传输设备等的资源占用,并不必对本地系统资源、网络传输等环境的高性能存在依赖性。而在无该要下载的资源时,其从第二服务器即资源数据所在的服务器离线下载而不影响和占用本地系统和传输资源,同时,本地在分享文件资源到第一服务器时,也无需全部上传,只需要上传URL等能匹配到第一服务器保存的文件,其他用户即可简单便捷地分享或共享该文件。Thus, the login of the browser directly logs in to the first server and performs offline download by it. When the corresponding file resource to be downloaded has been stored, the data file is transmitted in seconds, which improves the transmission efficiency and speed, saves download time, and reduces In order to avoid the resource occupation of network system transmission equipment, etc., there is no need to depend on the high performance of local system resources, network transmission and other environments. And when there is no resource to be downloaded, it can be downloaded offline from the second server, that is, the server where the resource data is located without affecting and occupying the local system and transmission resources. To upload, you only need to upload the URL and other files that can match the file saved on the first server, and other users can share or share the file simply and conveniently.
本发明还提供了一种进行文件下载的装置。如图8所示的根据本发明一实施例的装置的结构框图。该系统800包括:The invention also provides a device for downloading files. FIG. 8 is a structural block diagram of a device according to an embodiment of the present invention. The system 800 includes:
检测单元810,用于检测到客户端侧基于第一协议发起的文件下载请求信息,并确定对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载。具体处理和功能参见步骤S110的描述。The detection unit 810 is configured to detect the file download request information initiated by the client side based on the first protocol, and determine to download the first download file requested by the download request information on the first server side. For specific processing and functions, refer to the description of step S110.
登录单元820,依据所述客户端侧的用户的标识信息登录到第一服务器侧,并将所述下载请求信息上传第一服务器侧。具体处理和功能参见步骤S120的描述。The login unit 820 is configured to log in to the first server side according to the identification information of the user on the client side, and upload the download request information to the first server side. For specific processing and functions, refer to the description of step S120.
返回单元830,将第一服务器侧依据所述下载请求信息对文件进行下载的状态和/或结果信息发送回所述客户端侧进行显示和/或访问。具体处理和功能参见步骤S130的描述。The returning unit 830 is configured to send the status and/or result information of the file downloaded by the first server side according to the download request information back to the client side for display and/or access. For specific processing and functions, refer to the description of step S130.
其中,所述第一协议包括:HTTP协议和其他扩展协议;其中,其他扩展协议还包括:BT下载协议、电驴ed2k下载协议、迅雷下载协议。Wherein, the first protocol includes: HTTP protocol and other extension protocols; where, other extension protocols also include: BT download protocol, eDonkey ed2k download protocol, Thunder download protocol.
检测单元810还包括:浏览器对于客户端侧发出的每一个请求数据进行分析判断,以确定所述请求数据中所存在的基于第一协议发起的文件下载请求信息和该下载请求信息所请求下载的第一下载文件的地址URL,具体处理和功能参见步骤S210的描述;以及,判断客户端侧的用户对基于第一协议发起的文件下载请求信息的选择确认,当所述选择确认为的下载,触发启动对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载,具体处理和功能参见步骤S220的描述。The detection unit 810 also includes: the browser analyzes and judges each request data sent by the client side, so as to determine the file download request information initiated based on the first protocol and the download request information requested by the download request information in the request data. For the address URL of the first downloaded file, refer to the description of step S210 for specific processing and functions; , triggering the downloading of the first download file requested by the download request information on the first server side, and refer to the description of step S220 for specific processing and functions.
检测单元810还包括:基于第一协议发起的文件下载请求信息和该下载请求信息所请求下载的第一下载文件的地址URL,生成下载弹窗,具体处理和功能参见步骤S220的描述;判断客户端侧的用户在所述下载弹窗上的多个触发下载的入口中选择的入口,以根据该入口确认启动用户需要的下载,具体处理和功能参见步骤S410的描述;离线下载为所述多个触发下载的入口中的一个,当所述选择确认为离线下载,触发启动对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载,具体处理和功能参见步骤S420的描述。The detection unit 810 also includes: based on the file download request information initiated by the first protocol and the address URL of the first download file requested to be downloaded by the download request information, a download pop-up window is generated. For specific processing and functions, refer to the description of step S220; The user on the terminal side selects an entry from a plurality of download trigger entries on the download pop-up window, so as to confirm and start the download required by the user according to the entry. For specific processing and functions, refer to the description of step S410; One of the entrances for triggering downloading, when the selection is confirmed as offline downloading, triggering to start downloading the first download file requested by the download request information on the first server side, see step S420 for specific processing and functions describe.
登录单元820还包括:判断客户端侧的用户是否已经登录浏览器,具体处理和功能参见步骤S230的描述;其中,如果是未登录浏览器的状态,则客户端侧的用户先通过密码和用户名进行浏览器登录,获得属于登录用户的合法标识信息,并且,将所述合法标识信息写入到第一服务器对应网站的cookie数据中,在登录用户第一服务器时,读取cookie数据而直接登录第一服务器,;具体处理和功能参见步骤S510的描述;如果是已经登录浏览器的状态,则直接根据客户端侧的浏览器的登录用户的所述标识信息登录到第一服务器侧,具体处理和功能参见步骤S520的描述。其中,所述合法标识信息包括:当前浏览器用户Q.T串,第一服务器根据当前浏览器传递来的所述当前浏览器用户Q.T串完成第一服务器登录后所生成并返回给当前浏览器的认证token;其中,用户Q.T串和认证token具有时效性,具体处理和功能参见步骤S230、S510的描述;基于写入cookie数据的当前浏览器用户Q.T串和认证token,登录第一服务器,形成浏览器与第一服务器相互关联的已登录状态,具体处理和功能参见步骤S230、S520的描述。The login unit 820 also includes: judging whether the user on the client side has already logged in to the browser. For specific processing and functions, refer to the description of step S230; wherein, if the browser is not logged in, the user on the client side first passes the password and user name to log in the browser, obtain the legal identification information belonging to the logged-in user, and write the legal identification information into the cookie data of the website corresponding to the first server, and read the cookie data and directly Log in to the first server; refer to the description of step S510 for specific processing and functions; if you have already logged in to the browser, log in to the first server side directly according to the identification information of the logged-in user of the browser on the client side, specifically For processing and functions, refer to the description of step S520. Wherein, the legal identification information includes: the current browser user Q.T string, which is generated by the first server after logging in to the first server according to the current browser user Q.T string delivered by the current browser and returned to the current browser. token; wherein, the user Q.T string and the authentication token have timeliness, and the specific processing and functions refer to the description of steps S230 and S510; based on the current browser user Q.T string and the authentication token written into the cookie data, log in to the first server to form a browser For the logged-in status associated with the first server, refer to the description of steps S230 and S520 for specific processing and functions.
另外,登录单元820还包括:至少上传下载请求信息所请求下载的第一下载文件的地址URL,以便第一服务器可以使用该URL进行离线下载;或者,浏览器对所述下载文件进行解析获取其描述信息中的种子BT下载地址URL信息,上传到第一服务器侧,以便第一服务器进行种子BT下载文件;或者,将所述下载文件作为种子BT文件上传到所述第一服务器进行解析并保存。具体处理和功能参见步骤S240的描述;以及,第一服务器根据上传的所述下载文件的URL的MD5值与保存在第一服务器的下载资源中的URL的MD5值进行比较后,确定第一服务器是否保存对应所述下载文件的下载资源,具体处理和功能参见步骤S710的描述;当有对应的下载资源时直接将该下载资源快速转存(妙传)到本地客户端侧,否则,第一服务器根据上传的所述下载文件的URL从该下载资源所在数据服务器进行离线下载,具体处理和功能参见步骤S720的描述。In addition, the login unit 820 also includes: uploading at least the address URL of the first download file requested by the download request information, so that the first server can use the URL for offline download; or, the browser parses the download file to obtain its The seed BT download address URL information in the description information is uploaded to the first server side, so that the first server can download the seed BT file; or, upload the downloaded file as a seed BT file to the first server for parsing and saving . Refer to the description of step S240 for specific processing and functions; Whether to save the download resource corresponding to the download file, see the description of step S710 for specific processing and functions; when there is a corresponding download resource, directly transfer (transmit) the download resource to the local client side quickly, otherwise, the first The server performs offline downloading from the data server where the download resource is located according to the URL of the uploaded download file. For specific processing and functions, refer to the description of step S720.
登录单元820还包括:在执行离线下载前,客户端侧的浏览器先进行无cookie的下载环境模拟;如果无cookie下的下载失败,则不能进行第一服务器侧的离线下载,只能在客户端侧进行下载。具体处理和功能参见步骤S230的描述。The login unit 820 also includes: before performing the offline download, the browser on the client side first simulates the download environment without cookies; End-to-side download. For specific processing and functions, refer to the description of step S230.
返回单元830还包括:第一服务器侧返回同步的下载的状态和/或结果信息;其中,结果信息包括在第一服务器侧生成的离线下载的文件的URL;用户可以使用该URL从第一服务器侧进行下载到本地客户端侧或者分享该URL,以便别的用户进行下载。具体处理和功能参见步骤S250的描述。The returning unit 830 also includes: the first server side returns the status and/or result information of the synchronous download; wherein, the result information includes the URL of the offline downloaded file generated on the first server side; the user can use the URL to download from the first server side to download to the local client side or share the URL so that other users can download. For specific processing and functions, refer to the description of step S250.
本发明还提供了一种使用前述本发明的进行文件下载的方法的浏览器以及一种具有前述本发明的进行文件下载的装置的浏览器装置。The present invention also provides a browser using the method for downloading files of the present invention and a browser device having the device for downloading files of the present invention.
由于本实施例的装置、浏览器和浏览器装置所实现的功能、处理过程等基本相应于前述图1至图7所示的方法实施例,故本实施例的描述中未详尽之处,可以参见前述实施例中的相关说明,在此不做赘述。Since the functions and processing processes implemented by the device, browser, and browser device of this embodiment basically correspond to the method embodiments shown in FIGS. Refer to relevant descriptions in the foregoing embodiments, and details are not repeated here.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。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.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。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 following claims, any of the claimed embodiments may 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 for backing up logs according to the embodiment 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.
本发明的一个实施例公开了A1、一种进行文件下载的方法,其包括:检测到客户端侧基于第一协议发起的文件下载请求信息,并确定对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载;依据所述客户端侧的用户的标识信息登录到第一服务器侧,并将所述下载请求信息上传第一服务器侧;将第一服务器侧依据所述下载请求信息对文件进行下载的状态和/或结果信息发送回所述客户端侧进行显示和/或访问。A2、如A1所述的方法,其中,所述第一协议包括:HTTP协议和其他扩展协议;其中,其他扩展协议还包括:BT下载协议、电驴ed2k下载协议、迅雷下载协议。A3、如A1所述的方法,其中,检测到客户端侧基于第一协议发起的文件下载请求信息,包括:浏览器对于客户端侧发出的每一个请求数据进行分析判断,以确定所述请求数据中所存在的基于第一协议发起的文件下载请求信息和该下载请求信息所请求下载的第一下载文件的地址URL。A4、如A1所述的方法,其中,确定对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载,包括:判断客户端侧的用户对基于第一协议发起的文件下载请求信息的选择确认;当所述选择确认为的下载,触发启动对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载。A5、如A4所述的方法,其中,判断客户端侧的用户对基于第一协议发起的文件下载请求信息的选择确认,包括:基于第一协议发起的文件下载请求信息和该下载请求信息所请求下载的第一下载文件的地址URL,生成下载弹窗;判断客户端侧的用户在所述下载弹窗上的多个触发下载的入口中选择的入口,以根据该入口确认启动用户需要的下载;离线下载为所述多个触发下载的入口中的一个,当所述选择确认为离线下载,触发启动对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载。A6、如A1的方法,其中,依据所述客户端侧的用户的标识信息登录到第一服务器侧,包括:判断客户端侧的用户是否已经登录浏览器;如果是未登录浏览器的状态,则客户端侧的用户先通过密码和用户名进行浏览器登录,获得属于登录用户的合法标识信息,并且,将所述合法标识信息写入到第一服务器对应网站的cookie数据中,在登录用户第一服务器时,读取cookie数据而直接登录第一服务器;如果是已经登录浏览器的状态,则直接根据客户端侧的浏览器的登录用户的所述标识信息登录到第一服务器侧。A7、如A6所述的方法,其中,获得属于登录用户的合法标识信息,并且,将所述合法标识信息写入到第一服务器对应网站的cookie数据中,在登录用户第一服务器时,读取cookie数据而直接登录第一服务器,包括:所述合法标识信息包括:当前浏览器用户Q.T串,第一服务器根据当前浏览器传递来的所述当前浏览器用户Q.T串完成第一服务器登录后所生成并返回给当前浏览器的认证token;其中,用户Q.T串和认证token具有时效性;基于写入cookie数据的当前浏览器用户Q.T串和认证token,登录第一服务器,形成浏览器与第一服务器相互关联的已登录状态。A8、如A1所述的方法,其中,并将所述下载请求信息上传第一服务器侧,包括:至少上传下载请求信息所请求下载的第一下载文件的地址URL,以便第一服务器可以使用该URL进行离线下载;或者,浏览器对所述下载文件进行解析获取其描述信息中的种子BT下载地址URL信息,上传到第一服务器侧,以便第一服务器进行种子BT下载文件;或者,将所述下载文件作为种子BT文件上传到所述第一服务器进行解析并保存。A9、如A1所述的方法,其中,还包括:第一服务器根据上传的所述下载文件的URL的MD5值与保存在第一服务器的下载资源中的URL的MD5值进行比较后,确定第一服务器是否保存对应所述下载文件的下载资源;当有对应的下载资源时直接将该下载资源快速转存(妙传)到本地客户端侧,否则,第一服务器根据上传的所述下载文件的URL从该下载资源所在数据服务器进行离线下载。A10、如A1所述的方法,其中,还包括:在执行离线下载前,客户端侧的浏览器先进行无cookie的下载环境模拟;如果无cookie下的下载失败,则不能进行第一服务器侧的离线下载,只能在客户端侧进行下载。A11、如A1所述的方法,其中,将第一服务器侧依据所述下载请求信息对文件进行下载的状态和/或结果信息发送回所述客户端侧进行显示和/或访问,包括:第一服务器侧返回同步的下载的状态和/或结果信息;其中,结果信息包括在第一服务器侧生成的离线下载的文件的URL;用户可以使用该URL从第一服务器侧进行下载到本地客户端侧或者分享该URL,以便别的用户进行下载。An embodiment of the present invention discloses A1. A method for downloading a file, which includes: detecting the file download request information initiated by the client side based on the first protocol, and determining the first download requested by the download request information A download file is downloaded on the first server side; log in to the first server side according to the identification information of the user on the client side, and upload the download request information to the first server side; upload the first server side according to the The download request information sends back the status and/or result information of downloading the file to the client side for display and/or access. A2. The method described in A1, wherein the first protocol includes: HTTP protocol and other extended protocols; wherein, other extended protocols also include: BT download protocol, eDonkey ed2k download protocol, and Thunder download protocol. A3. The method as described in A1, wherein detecting the file download request information initiated by the client side based on the first protocol includes: the browser analyzes and judges each request data sent by the client side to determine the request The file download request information initiated based on the first protocol and the address URL of the first downloaded file requested to be downloaded by the download request information exist in the data. A4. The method as described in A1, wherein, determining to download the first download file requested by the download request information on the first server side includes: judging whether the user on the client side is interested in the file initiated based on the first protocol Confirmation of the selection of the download request information; when the selection is confirmed as download, triggering the downloading of the first download file requested by the download request information on the first server side. A5. The method as described in A4, wherein, judging whether the user on the client side has selected and confirmed the file download request information initiated based on the first protocol includes: the file download request information initiated based on the first protocol and the information contained in the download request information Request to download the address URL of the first download file to generate a download pop-up window; judge the entry selected by the user on the client side from a plurality of trigger download entries on the download pop-up window, to confirm the start-up user needs according to the entry downloading; offline downloading is one of the multiple trigger downloading entries, and when the selection is confirmed as offline downloading, triggering starts the downloading of the first download file requested by the download request information on the first server side. A6. The method as in A1, wherein, logging in to the first server side according to the identification information of the user on the client side includes: judging whether the user on the client side has logged in to the browser; if not logged in to the browser, Then the user on the client side first logs in the browser through the password and username, obtains the legal identification information belonging to the logged-in user, and writes the legal identification information into the cookie data of the corresponding website of the first server, and the logged-in user During the first server, read the cookie data and directly log in to the first server; if it is already logged into the browser, then directly log in to the first server side according to the identification information of the logged-in user of the browser on the client side. A7. The method as described in A6, wherein the legal identification information belonging to the logged-in user is obtained, and the legal identification information is written into the cookie data of the website corresponding to the first server, and when the user logs in to the first server, read Take the cookie data and directly log in to the first server, including: the legal identification information includes: the current browser user Q.T string, after the first server completes the first server login according to the current browser user Q.T string passed by the current browser The authentication token generated and returned to the current browser; wherein, the user Q.T string and the authentication token are time-sensitive; based on the current browser user Q.T string and the authentication token written in the cookie data, log in to the first server to form the browser and the second The logged-in status associated with a server. A8. The method as described in A1, wherein uploading the download request information to the first server side includes: at least uploading the address URL of the first download file requested by the download request information, so that the first server can use the The URL is downloaded offline; or, the browser parses the downloaded file to obtain the URL information of the seed BT download address in its description information, and uploads it to the first server side, so that the first server performs the seed BT download file; or, the The downloaded file is uploaded to the first server as a seed BT file for analysis and storage. A9. The method as described in A1, further comprising: after the first server compares the MD5 value of the URL of the uploaded download file with the MD5 value of the URL stored in the download resource of the first server, determine the first Whether a server saves the download resource corresponding to the download file; when there is a corresponding download resource, directly transfer the download resource to the local client side quickly, otherwise, the first server will URL for offline download from the data server where the download resource is located. A10, the method as described in A1, which also includes: before performing the offline download, the browser on the client side first simulates the download environment without cookies; The offline download of , can only be downloaded on the client side. A11. The method according to A1, wherein the status and/or result information of the file downloaded by the first server side according to the download request information is sent back to the client side for display and/or access, including: the first A server side returns the status and/or result information of the synchronous download; wherein, the result information includes the URL of the offline downloaded file generated on the first server side; the user can use the URL to download from the first server side to the local client side or share the URL so that other users can download it.
本发明的一个实施例公开了B12、一种进行文件下载的装置,其中,包括:检测单元,用于检测到客户端侧基于第一协议发起的文件下载请求信息,并确定对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载;登录单元,依据所述客户端侧的用户的标识信息登录到第一服务器侧,并将所述下载请求信息上传第一服务器侧;返回单元,将第一服务器侧依据所述下载请求信息对文件进行下载的状态和/或结果信息发送回所述客户端侧进行显示和/或访问。B13、如B12所述的装置,其中,所述第一协议包括:HTTP协议和其他扩展协议;其中,其他扩展协议还包括:BT下载协议、电驴ed2k下载协议、迅雷下载协议。B14、如B12所述的装置,其中,检测单元还包括:浏览器对于客户端侧发出的每一个请求数据进行分析判断,以确定所述请求数据中所存在的基于第一协议发起的文件下载请求信息和该下载请求信息所请求下载的第一下载文件的地址URL。B15、如B12所述的装置,其中,检测单元还包括:判断客户端侧的用户对基于第一协议发起的文件下载请求信息的选择确认;当所述选择确认为的下载,触发启动对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载。B16、如B15所述的装置,其中,检测单元还包括:基于第一协议发起的文件下载请求信息和该下载请求信息所请求下载的第一下载文件的地址URL,生成下载弹窗;判断客户端侧的用户在所述下载弹窗上的多个触发下载的入口中选择的入口,以根据该入口确认启动用户需要的下载;离线下载为所述多个触发下载的入口中的一个,当所述选择确认为离线下载,触发启动对所述下载请求信息所请求下载的第一下载文件进行第一服务器侧的下载。B17、如B12的装置,其中,登录单元还包括:判断客户端侧的用户是否已经登录浏览器;如果是未登录浏览器的状态,则客户端侧的用户先通过密码和用户名进行浏览器登录,获得属于登录用户的合法标识信息,并且,将所述合法标识信息写入到第一服务器对应网站的cookie数据中,在登录用户第一服务器时,读取cookie数据而直接登录第一服务器;如果是已经登录浏览器的状态,则直接根据客户端侧的浏览器的登录用户的所述标识信息登录到第一服务器侧。B18、如B17所述的装置,其中,登录单元还包括:所述合法标识信息包括:当前浏览器用户Q.T串,第一服务器根据当前浏览器传递来的所述当前浏览器用户Q.T串完成第一服务器登录后所生成并返回给当前浏览器的认证token;其中,用户Q.T串和认证token具有时效性;基于写入cookie数据的当前浏览器用户Q.T串和认证token,登录第一服务器,形成浏览器与第一服务器相互关联的已登录状态。B19、如B12所述的装置,其中,登录单元还包括:至少上传下载请求信息所请求下载的第一下载文件的地址URL,以便第一服务器可以使用该URL进行离线下载;或者,浏览器对所述下载文件进行解析获取其描述信息中的种子BT下载地址URL信息,上传到第一服务器侧,以便第一服务器进行种子BT下载文件;或者,将所述下载文件作为种子BT文件上传到所述第一服务器进行解析并保存。B20、如B19所述的装置,其中,登录单元还包括:第一服务器根据上传的所述下载文件的URL的MD5值与保存在第一服务器的下载资源中的URL的MD5值进行比较后,确定第一服务器是否保存对应所述下载文件的下载资源;当有对应的下载资源时直接将该下载资源快速转存(妙传)到本地客户端侧,否则,第一服务器根据上传的所述下载文件的URL从该下载资源所在数据服务器进行离线下载。B21、如B12所述的装置,其中,登录单元还包括:在执行离线下载前,客户端侧的浏览器先进行无cookie的下载环境模拟;如果无cookie下的下载失败,则不能进行第一服务器侧的离线下载,只能在客户端侧进行下载。B22、如B12所述的装置,其中,返回单元,包括:第一服务器侧返回同步的下载的状态和/或结果信息;其中,结果信息包括在第一服务器侧生成的离线下载的文件的URL;用户可以使用该URL从第一服务器侧进行下载到本地客户端侧或者分享该URL,以便别的用户进行下载。An embodiment of the present invention discloses B12, a device for downloading files, which includes: a detection unit, configured to detect the file download request information initiated by the client side based on the first protocol, and determine the request for the download request The first download file requested by the information is downloaded on the first server side; the login unit logs in to the first server side according to the identification information of the user on the client side, and uploads the download request information to the first server side The return unit sends the status and/or result information of the file downloaded by the first server side according to the download request information back to the client side for display and/or access. B13. The device as described in B12, wherein the first protocol includes: HTTP protocol and other extended protocols; wherein, other extended protocols also include: BT download protocol, eDonkey ed2k download protocol, and Thunder download protocol. B14. The device according to B12, wherein the detection unit further includes: the browser analyzes and judges each request data sent by the client side, so as to determine the file download initiated based on the first protocol existing in the request data The request information and the address URL of the first download file requested to be downloaded by the download request information. B15. The device as described in B12, wherein the detection unit further includes: judging that the user on the client side confirms the selection and confirmation of the file download request information initiated based on the first protocol; Download the first download file requested by the download request information on the first server side. B16. The device as described in B15, wherein the detection unit also includes: the address URL of the first download file requested to be downloaded based on the file download request information initiated by the first protocol and the download request information, generating a download pop-up window; judging the client The user on the terminal side selects an entry from among the multiple triggering downloading entries on the download pop-up window, so as to confirm and start the download required by the user according to the entry; offline downloading is one of the multiple triggering downloading entries, when The selection is confirmed as offline download, triggering the downloading of the first download file requested by the download request information on the first server side. B17, as the device of B12, wherein the login unit also includes: judging whether the user on the client side has logged into the browser; Log in, obtain the legal identification information belonging to the logged-in user, and write the legal identification information into the cookie data of the website corresponding to the first server, and when logging in to the user's first server, read the cookie data and directly log in to the first server ; If it is already logged into the browser, log in to the first server side directly according to the identification information of the logged-in user of the browser on the client side. B18. The device as described in B17, wherein the login unit further includes: the legal identification information includes: the current browser user Q.T string, and the first server completes the first server according to the current browser user Q.T string delivered by the current browser. An authentication token generated by a server after logging in and returned to the current browser; among them, the user Q.T string and authentication token are time-sensitive; based on the current browser user Q.T string and authentication token written in cookie data, log in to the first server and form A logged-in state in which the browser is associated with the first server. B19. The device as described in B12, wherein the login unit also includes: at least the address URL of the first download file requested to be downloaded by uploading the download request information, so that the first server can use the URL for offline download; Described download file is analyzed and obtains the seed BT download address URL information in its descriptive information, uploads to the first server side, so that the first server carries out seed BT download file; Or, uploads described download file as seed BT file to all The above-mentioned first server parses and saves. B20. The device according to B19, wherein the login unit further includes: after the first server compares the MD5 value of the URL of the uploaded download file with the MD5 value of the URL stored in the download resource of the first server, Determine whether the first server saves the download resource corresponding to the downloaded file; when there is a corresponding download resource, directly transfer the download resource to the local client side quickly, otherwise, the first server will The URL of the download file is downloaded offline from the data server where the download resource is located. B21, the device as described in B12, wherein, the login unit also includes: before performing offline download, the browser on the client side first simulates the download environment without cookie; if the download without cookie fails, the first download cannot be performed. The offline download on the server side can only be downloaded on the client side. B22. The device as described in B12, wherein the return unit includes: the first server side returns the status and/or result information of the synchronous download; wherein the result information includes the URL of the offline downloaded file generated at the first server side ; The user can use the URL to download from the first server side to the local client side or share the URL so that other users can download.
本发明的一个实施例公开了C23、一种使用如A1-A11所述的方法的浏览器。One embodiment of the present invention discloses C23, a browser using the methods described in A1-A11.
本发明的一个实施例公开了D24、一种包括如B12-B22所述的装置的浏览器装置。An embodiment of the invention discloses D24, a browser device comprising the device described in B12-B22.
Claims (22)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410642969.9A CN104348919B (en) | 2014-11-07 | 2014-11-07 | Carry out the method, apparatus and browser of file download |
PCT/CN2015/092584 WO2016070718A1 (en) | 2014-11-07 | 2015-10-22 | Method, device, and browser for file downloading |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410642969.9A CN104348919B (en) | 2014-11-07 | 2014-11-07 | Carry out the method, apparatus and browser of file download |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104348919A CN104348919A (en) | 2015-02-11 |
CN104348919B true CN104348919B (en) | 2018-09-21 |
Family
ID=52503701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410642969.9A Active CN104348919B (en) | 2014-11-07 | 2014-11-07 | Carry out the method, apparatus and browser of file download |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104348919B (en) |
WO (1) | WO2016070718A1 (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104348919B (en) * | 2014-11-07 | 2018-09-21 | 北京奇虎科技有限公司 | Carry out the method, apparatus and browser of file download |
CN106610966A (en) * | 2015-10-21 | 2017-05-03 | 阿里巴巴集团控股有限公司 | Information providing method and device |
CN105897835A (en) * | 2015-12-04 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Mobile terminal browser file transfer method and mobile terminal |
CN106210001A (en) * | 2016-06-29 | 2016-12-07 | 广州视睿电子科技有限公司 | remote file access method, server, client and system |
CN109871410A (en) * | 2019-02-14 | 2019-06-11 | 深圳市盟天科技有限公司 | A method, device, server, and storage medium for data assembly into a library |
CN111193772B (en) * | 2019-12-05 | 2022-04-05 | 商客通尚景科技(上海)股份有限公司 | File downloading method and server |
CN111309473A (en) * | 2020-01-17 | 2020-06-19 | 政采云有限公司 | Data downloading method, device, equipment and medium |
CN111711687B (en) * | 2020-06-15 | 2023-03-24 | 肖伟峰 | File data transmission and storage method |
CN114442902A (en) * | 2020-10-19 | 2022-05-06 | 深圳艾派网络科技股份有限公司 | Object storage breakpoint resume method and system |
CN112612977B (en) * | 2020-12-15 | 2024-07-16 | 京东科技控股股份有限公司 | Page display method, system, device, equipment and storage medium |
CN113612678B (en) * | 2021-07-15 | 2023-03-31 | 中标软件有限公司 | Safety protection method for downloading and using mail attachment |
CN114640666B (en) * | 2022-03-04 | 2023-07-25 | 微位(深圳)网络科技有限公司 | File sharing downloading method, electronic equipment and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075242A (en) * | 2006-12-25 | 2007-11-21 | 腾讯科技(深圳)有限公司 | System and method for acquiring webpage elements |
CN101610290A (en) * | 2009-07-22 | 2009-12-23 | 深圳市茁壮网络股份有限公司 | The method of download management and download management unit and download system |
CN103631916A (en) * | 2013-11-29 | 2014-03-12 | 北京奇虎科技有限公司 | Method and device for downloading downloadable resources |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101325561B (en) * | 2007-06-12 | 2012-01-04 | 阿里巴巴集团控股有限公司 | Method, apparatus and system for processing electronic mail |
TW201021491A (en) * | 2008-11-18 | 2010-06-01 | Inventec Corp | Download method under a server system and the system thereof |
CN104348919B (en) * | 2014-11-07 | 2018-09-21 | 北京奇虎科技有限公司 | Carry out the method, apparatus and browser of file download |
-
2014
- 2014-11-07 CN CN201410642969.9A patent/CN104348919B/en active Active
-
2015
- 2015-10-22 WO PCT/CN2015/092584 patent/WO2016070718A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075242A (en) * | 2006-12-25 | 2007-11-21 | 腾讯科技(深圳)有限公司 | System and method for acquiring webpage elements |
CN101610290A (en) * | 2009-07-22 | 2009-12-23 | 深圳市茁壮网络股份有限公司 | The method of download management and download management unit and download system |
CN103631916A (en) * | 2013-11-29 | 2014-03-12 | 北京奇虎科技有限公司 | Method and device for downloading downloadable resources |
Also Published As
Publication number | Publication date |
---|---|
WO2016070718A1 (en) | 2016-05-12 |
CN104348919A (en) | 2015-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104348919B (en) | Carry out the method, apparatus and browser of file download | |
JP6800184B2 (en) | Document management and collaboration system | |
RU2586878C2 (en) | System and method for remote control of web browser | |
US11314820B2 (en) | Systems and methods for web collaboration | |
WO2017114206A1 (en) | Method and device for processing short link, and short link server | |
US9912747B2 (en) | Browser and system for download and download method | |
JP2009116630A (en) | Web-screen sharing system, web-screen sharing terminal, and sharing program thereof | |
CN103631916B (en) | Method and device for downloading downloadable resources | |
US11240288B2 (en) | File transfer in a multi-node network | |
CN103634389A (en) | File transfer method, device and system between calculation device and mobile device | |
CN104468834B (en) | Carry out the method, apparatus and browser client of Cookie data processing | |
CN103888408B (en) | Upload the data to method and the device of social platform | |
JP6243006B2 (en) | Integration of cloud services for online sharing | |
CN103034727A (en) | System for intercepting pop-up window in webpage | |
CN104484386A (en) | Information sharing method and browser client | |
CN104615700A (en) | Method for collecting webpage objects in browser, browser client side and system | |
CN104346464A (en) | Processing method and device of webpage element information and browser client | |
CN102932471B (en) | Browser logon server and realize browser log in method and system | |
CN105553968A (en) | Method and device for realizing login by multiple accounts | |
CN102984218A (en) | Browser and login method thereof and login system thereof | |
CN104346460B (en) | Carry out the method, apparatus and browser client of file download | |
CN103678535A (en) | Browser and downloading method thereof | |
US9854053B1 (en) | Providing faster data access using multiple caching servers | |
CN104361094A (en) | Storage method and device for file in search result, and browser client | |
CN104504113A (en) | Method and device for processing information by mobile browser and mobile terminal |
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: 20220721 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. |