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
- client
- 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 57
- 230000005540 biological transmission Effects 0.000 claims abstract description 17
- 235000014510 cooky Nutrition 0.000 claims description 54
- 238000001514 detection method Methods 0.000 claims description 15
- 241000283074 Equus asinus Species 0.000 claims description 8
- 230000005611 electricity Effects 0.000 claims description 8
- 230000001360 synchronised effect Effects 0.000 claims description 8
- 238000004088 simulation Methods 0.000 claims description 6
- 238000012790 confirmation Methods 0.000 claims 1
- 238000003860 storage Methods 0.000 abstract description 20
- 239000002699 waste material Substances 0.000 abstract description 5
- 238000012546 transfer Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 21
- 238000012545 processing Methods 0.000 description 18
- 238000005516 engineering process Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 239000002775 capsule Substances 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 230000005577 local transmission Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000011068 loading method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000003825 pressing Methods 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
Abstract
The invention discloses a kind of method, apparatus and browser carrying out file download.Wherein, method includes:It detects the file download request information that client-side is initiated based on the first agreement, and determines and the download first download for downloading file progress first server side is asked to the download solicited message;The identification information of user according to the client-side logs on to first server side, and the download solicited message is uploaded first server side;The state and/or result information that first server side is downloaded file according to the download solicited message send back the client-side and are shown and/or accessed.The method and system of the present invention improve download, share efficiency of transmission and speed, resource data is simplified to download, storage, upload and share, reduce the occupancy to system, network and transfer resource and waste, save user time and cost, reduces the dependence to high performance environments.
Description
Technical field
The present invention relates to data downloading technology fields, and in particular to carries out the method, apparatus and browser of file download.
Background technology
In internet, browser access be it is a kind of it is most common effectively obtain various information and data by way of.
And in the prior art, realize internet data file it is online, it is offline download, shared, cloud service, cloud storage, the technologies such as cloud disk
Gradually grow up, extend space, the time of personal storage, becomes easily personal network's hard disk, professional storage tool, people
Can safely download whenever and wherever possible, store data and capsule information.Enriching and being convenient for sharing to obtain online or offline
It is various to download resource, also, download Internet technologies, the users such as acquisition file using cloud service, browser access and do not need
The entity disk of storage capsule information is taken with oneself, but easily can equally be obtained oneself by internet from high in the clouds and deposited
The information of storage, offer possesses flexibility and the download service of new generation of on-demand function, out of control of cost to prevent, and can be full
The continually changing business center of gravity of foot and laws and regulations requirement are formed by diversified demand.Including following characteristics:1, safe and secret:Password
It is informed at any time with handset binding, space access information;2, super large memory space:Unlimited single file size supports 10TB to exclusively enjoy
Storage;3, good friend is shared:Easily shared by extraction code;Etc..
But in the prior art, by various informations such as browser access downloading data resource, download files, often via clear
Device of looking at directly logs in and executes locally downloading operation on the server with the requested data resource downloaded, when necessary again on
It passes to cloud disk and makes a backup store or share resource etc., in this way, downloading the performance (packet for preserving involved network to being locally stored
Include transmission speed efficiency, the local transmission of data, storage and system resource etc.), the state of network environment, provide data resource
The performance of server, local storage device and its performance have higher requirement, and work as and the cloud disk of vast capacity is needed to deposit
When storing up or sharing resource, from the local data resource for uploading bigger, requirement is also further increased to the performance of network, is caused mutually
Networking and the consuming of local transmission resource are excessive, waste transimission and storage resource and waste the time of user, and its transmission
Speed, efficiency are also relatively low, download and storage mode is cumbersome, slow, of high cost.
Invention content
In view of the above problems, it is proposed that the present invention overcoming prior art defect in order to provide one kind, solve the above problems or
The method and browser device of data storage are carried out in the browser that person solves the above problems at least partly.
One side according to the present invention provides a kind of method carrying out file download comprising:Detect client
The file download request information that side group is initiated in the first agreement, and determine and download first is asked to the download solicited message
Download the download that file carries out first server side;The identification information of user according to the client-side logs on to first service
Device side, and the download solicited message is uploaded into first server side;By first server side according to the download solicited message
The state and/or result information be downloaded to file sends back the client-side and is shown and/or accessed.
Optionally, first agreement includes:Http protocol and other Extended Protocols;Wherein, other Extended Protocols also wrap
It includes:BT download protocols, electricity donkey ed2k download protocols, sudden peal of thunder download protocol.
Optionally, the file download request information that client-side is initiated based on the first agreement is detected, including:Browser pair
Analyzed and determined in each request data that client-side is sent out, in the presence of the determination request data based on
The file download request information and the download solicited message that one agreement is initiated ask the download first address for downloading file
URL。
Optionally it is determined that asking download first to download file the download solicited message carries out first server side
Download, including:Judge that the user of client-side confirms the selection for the file download request information initiated based on the first agreement;
When the download for selecting to be confirmed as, triggers to start and ask download first to download file progress the download solicited message
The download of first server side.
Optionally, judge that the selection of file download request information of the user of client-side to being initiated based on the first agreement is true
Recognize, including:The file download request information and the download solicited message initiated based on the first agreement are asked under download first
The address URL of published article part, generates and downloads pop-up;Judge that multiple triggerings of the user of client-side in the download pop-up are downloaded
Entrance in the entrance that selects, to confirm the download for starting user and needing according to the entrance;Offline download is the multiple triggering
One in the entrance of download, when the selection is confirmed as downloading offline, triggering, which starts, asks the download solicited message
First downloaded downloads the download that file carries out first server side.
Optionally, the identification information according to the user of the client-side logs on to first server side, including:Judge visitor
Whether the user of family end side has logged on browser;If it is the state for being not logged in browser, then the user of client-side is first led to
It crosses password and user name and carries out browser login, obtain the legal identification information for belonging to login user, also, by the legal mark
Know information to be written in the cookie data that first server corresponds to website, in login user first server, read
Cookie data and directly log in first server;If it is the state for having logged on browser, then directly according to client-side
The identification information of login user of browser log on to first server side.
Optionally, it obtains and belongs to the legal identification information of login user, also, the legal identification information is written to the
One server corresponds in the cookie data of website, in login user first server, reads cookie data and directly steps on
First server is recorded, including:The legal identification information includes:Current browser user Q.T strings, first server is according to current
The current browser user Q.T strings that browser transmission comes are completed to be generated and returned to after first server logs in currently clear
Look at the certification token of device;Wherein, user Q.T strings and certification token have timeliness;Based on the current of write-in cookie data
Browser client Q.T strings and certification token, log in first server, form browser and are mutually related with first server
Login status.
Optionally, and by the download solicited message first server side is uploaded, including:It at least uploads and downloads solicited message
The download first address URL for downloading file is asked, so that first server can offline be downloaded using the URL;Or
Person, browser are carried out parsing the seed BT download address URL informations obtained in its description information, be uploaded to the download file
File is downloaded in first server side so that first server carries out seed BT;Alternatively, using the download file as seed BT texts
Part uploads to the first server and is parsed and preserved.
Optionally, further include:First server is according to the MD5 values of the URL of the download file of upload and is stored in the
After the MD5 values of URL in the download resource of one server are compared, determine whether first server preserves the corresponding download
The download resource of file;Local client directly is arrived into the quick unloading of download resource (clear pass) when there is corresponding download resource
Side, otherwise, first server according to data server where the URL of the download file of upload from the download resource carry out from
Line is downloaded.
Optionally, further include:Before executing offline download, the browser of client-side first carries out the download ring of no cookie
It simulates in border;If without the failed download under cookie, the offline download of first server side cannot be carried out, it can only be in client
Side is downloaded.
Optionally, the state and/or knot first server side being downloaded file according to the download solicited message
Fruit information sends back the client-side and is shown and/or accessed, including:First server side returns to the shape of synchronous download
State and/or result information;Wherein, result information is included in the URL for the file of first server side generation downloaded offline;User
Can be downloaded from first server side to native client end side using the URL or share the URL, so as to other user into
Row is downloaded.
Other side according to the present invention provides a kind of device carrying out file download, wherein including:Detection is single
Member, the file download request information initiated based on the first agreement for detecting client-side, and determine and the download is asked
Information asks download first to download the download that file carries out first server side;Unit is logged in, according to the client-side
The identification information of user log on to first server side, and the download solicited message is uploaded into first server side;It returns
Unit, the state and/or result information that first server side is downloaded file according to the download solicited message are sent
The client-side is returned to be shown and/or accessed.
Optionally, first agreement includes:Http protocol and other Extended Protocols;Wherein, other Extended Protocols also wrap
It includes:BT download protocols, electricity donkey ed2k download protocols, sudden peal of thunder download protocol.
Optionally, detection unit further includes:Browser analyzes each request data that client-side is sent out
Judge, is asked with the file download request information and the download initiated based on the first agreement in the presence of the determination request data
Information is asked to ask the download first address URL for downloading file.
Optionally, detection unit further includes:Judge the user of client-side to the file download initiated based on the first agreement
The selection of solicited message confirms;When the download for selecting to be confirmed as, triggering, which starts, asks down the download solicited message
First carried downloads the download that file carries out first server side.
Optionally, detection unit further includes:The file download request information initiated based on the first agreement and the download are asked
Information asks the download first address URL for downloading file, generates and downloads pop-up;Judge the user of client-side under described
The entrance selected in the entrance that multiple triggerings in pop-up are downloaded is carried, to confirm the download for starting user and needing according to the entrance;
One in the entrance downloaded for the multiple triggering is downloaded offline, selects to be confirmed as downloading offline when described, triggering startup pair
The solicited message of downloading asks download first to download the download that file carries out first server side.
Optionally, logging in unit further includes:Judge whether the user of client-side has logged on browser;If it is not stepping on
The state of browser is recorded, then the user of client-side first passes through password and user name carries out browser login, and acquisition belongs to login
The legal identification information of user, also, the legal identification information is written to the cookie numbers that first server corresponds to website
In, in login user first server, reads cookie data and directly log in first server;If it is having logged on
The state of browser then directly logs on to first service according to the identification information of the login user of the browser of client-side
Device side.
Optionally, logging in unit further includes:The legal identification information includes:Current browser user Q.T strings, the first clothes
Business device according to current browser transmission come the current browser user Q.T string complete first server login after generate simultaneously
Return to the certification token of current browser;Wherein, user Q.T strings and certification token have timeliness;Based on write-in
The current browser user Q.T strings and certification token of cookie data, log in first server, form browser and the first clothes
Business device is mutually related login status.
Optionally, logging in unit further includes:At least uploading download solicited message asks download first to download file
Address URL, so that first server can offline be downloaded using the URL;Alternatively, browser carries out the download file
Parsing obtains the seed BT download address URL informations in its description information, first server side is uploaded to, so as to first server
It carries out seed BT and downloads file;It is carried out alternatively, the download file is uploaded to the first server as seed BT files
It parses and preserves.
Optionally, logging in unit further includes:First server according to the MD5 values of the URL of the download file of upload with
After the MD5 values for the URL being stored in the download resource of first server are compared, determine whether first server preserves correspondence
The download resource for downloading file;When there is corresponding download resource directly by the quick unloading of download resource (clear pass) to originally
Ground client-side, otherwise, first server is according to data service where the URL from the download resource of the download file of upload
Device is downloaded offline.
Optionally, logging in unit further includes:Before executing offline download, the browser of client-side first carries out no cookie
Download environment simulation;If without the failed download under cookie, the offline download of first server side cannot be carried out, it can only
It is downloaded in client-side.
Optionally, returning unit, including:First server side returns to the state and/or result information of synchronous download;Its
In, result information is included in the URL for the file of first server side generation downloaded offline;User can use the URL from the
One server side is downloaded native client end side or shares the URL, so that other user is downloaded.
Another aspect according to the present invention provides a kind of browser using the above method.
Another aspect according to the present invention provides a kind of browser device with above-mentioned apparatus.
Compared with prior art, method and system of the invention are combined the (knot of such as cloud service with server in browser
Close), carry out data resource multimode download and cloud storage, simplify browser to access obtain resource downloading, storage, on
The troublesome operation during sharing is passed, the occupancy to system and transfer resource, local client, network, server etc. is reduced
And waste, user time and cost are saved, is reduced to network, local device, server (including cloud server/cloud clothes
Be engaged in device) etc. high performance environments dependence, improve the efficiency and speed shared, transmitted, realize simple and convenient data
Resource accesses the resource downloaded and share download, extends function and the utilization of cloud disk and browser.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention,
And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field
Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows general flow chart according to one embodiment of the method for the invention;
Fig. 2 shows detail flowcharts according to one embodiment of the method for the invention;
Fig. 3 shows download pop-up schematic diagram according to the present invention;
Fig. 4 shows the embodiment flow for determining the download for carrying out first server side according to the method for the present invention;
Fig. 5 shows the embodiment flow chart for judging that browser logs according to the method for the present invention;
Fig. 6 A~6B are shown according to the method for the present invention and the schematic diagram of an application scenarios of system;
Fig. 7 show according to the method for the present invention about the second pass an embodiment flow chart;And
Fig. 8 shows the structure diagram of one embodiment of the apparatus according to the invention.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Technical scheme of the present invention can be applied to through data resources such as the files that is carried out during browser access
The scenes such as download, collect, storing, sharing, the program be associated with browser and cloud service (Cloud Server download offline clear pass etc.,
Dropbox/cloud disk, photograph album, cloud collection etc.), resource energy efficient association is downloaded by browser access and utilization whenever and wherever possible can be safe
Resource is shared and downloaded to Cloud Server/cloud disk/cloud storage etc. of storage data so that downloads, shares the speed and efficiency of resource
Height, it is small to the dependence of the resources such as device systems network and transmission and environment, it can be by the resource root to having downloaded or having preserved
It realizes that the second passes according to solicited message, reduces the download and addressing of repetition, reduce the occupancy to these environmental resources and waste.
As shown in Figure 1, Fig. 1 is general flow chart according to one embodiment of the method for the invention.
A kind of carry out document down loading method, including:Step S110 detects the text that client-side is initiated based on the first agreement
Part downloads solicited message, and determines that asking download first to download file the download solicited message carries out first server
The download of side;The identification information of step S120, the user according to the client-side log on to first server side, and will be described
It downloads solicited message and uploads first server side;Step S130, by first server side according to the download solicited message to text
The state and/or result information that part is downloaded send back the client-side and are shown and/or accessed.
Wherein, first agreement includes:Http protocol and other Extended Protocols;And other Extended Protocols include:Under BT
Carry agreement, electricity donkey ed2k download protocols, sudden peal of thunder download protocol.These agreements can be in the case where user sends out the data resource of access
When carrying request, processing is downloaded using corresponding agreement.Such as offline download can be according to http protocol by first server
The server for being linked to offer data resource is downloaded;BT download protocols include the application to p2p agreements and change, more
People shares same data recourse requests to this and downloads, then its efficiency of transmission is faster, etc..
Detail flowchart according to an embodiment of the invention as shown in Figure 2.
Step S210, browser analyzes and determines each request data that client-side is sent out, to determine
The file download request information initiated based on the first agreement and the download solicited message in the presence of request data is stated to be asked
First downloaded downloads the address URL of file.
Specifically, when the user of client-side carries out the access of data resource by browser, user can select browser
The various objects loaded on the page are such as:Link (network address), button, icon, picture, file etc. are operated.The operation
Including such as various:It clicks, double-click button, icon, link etc., or dragging picture, document etc., or after having selected corresponding object
(being such as highlighted), indication item such as is downloaded, preserves at the operations in pressing right mouse button popup menu selection menu item.These behaviour
Make correspondence and sends out corresponding request data.
Browser analyzes and determines each request data, determines in which request data it is to need to carry out file
The download solicited message of download, also, the download solicited message is initiated based on the first agreement, such as:It is sent out based on http protocol
The offline download solicited message risen, or solicited message, etc. is locally-downloaded based on what BT download protocols were initiated.
Can include the address URL for the first download file that request is downloaded, such as in downloading solicited message:Where browser
Local parsing goes out the address URL of the first download file, directly to be downloaded the file into from corresponding server by the address URL
It is local, or the address URL is transmitted to first server, it is confirmed whether by first server saved (in such as database
Storage) URL corresponds to first and downloads file, the second pass to it is local or by first server according to the address from corresponding server
Download the file into first server and execute offline download, etc..It is then desired to which this that be downloaded of determination first downloads file
Address URL.
As a result, in client-side, request data can be analyzed and determined to obtain down by browser when user accesses
Solicited message and its address URL of the first download file are carried, as testing result, in turn, can be initiated based on the first agreement
File download request information and the download solicited message ask the download first address URL for downloading file, generate and download bullet
Window.Pop-up is downloaded as shown in Figure 3.
Step S220 judges selection of the user of client-side to the file download request information initiated based on the first agreement
Confirm, when the download for selecting to be confirmed as, triggering starts asks first time downloaded published article to the download solicited message
Part carries out the download of first server side.
In one embodiment, judge that the user of client-side believes the file download request initiated based on the first agreement
The selection of breath confirms, including the determination of the method for the present invention as shown in Figure 4 asks download to the download solicited message
First downloads the embodiment flow that file carries out the download of first server side:
Step S410 judges to select in the entrance that multiple triggerings of the user of client-side in the download pop-up are downloaded
Entrance, with according to the entrance confirm start user need download;
Step 420, offline download is one in the entrance that the multiple triggering is downloaded, when the selection is confirmed as offline
It downloads, triggers to start and ask download first to download under file progress first server side the download solicited message
It carries.
As shown in figure 3, including in pop-up:It is offline to download to cloud disk, download the download such as (being directly downloaded to local) triggerings
Entrance, to be downloaded first download address (network address) URL of file, title, file size etc. all in the download pop-up.Visitor
The user of family end side has issued in browser access and downloads solicited message and detected by browser, activation downloading process production
After the raw pop-up, if user selects the entrance in the pop-up, offline downloading portal is clicked, i.e. the entrance of selection determines
User needs to do the offline download.User, which triggers, as a result, is actuated under the first server side of the first download file
It carries.Such as:Cloud disk is downloaded to offline, which is Cloud Server, so that it may with by the Cloud Server side, according to this document
Address URL, size etc. execute offline download, from the shared or server of sharing data resource indicated by this document address
It downloads and obtains this document.
Such as:Downloader belongs to browser program, according to testing result, provides the download dialog and (is downloaded shown in Fig. 3
Pop-up), offline download is executed according to the URL and file size detected from browser host process, cloud disk, that is, cloud takes in association
Business device (first server) determines that asking download first to download file progress first the download solicited message takes
Hereafter the download of business device side can go data server to be downloaded offline according to the URL by cloud disk, when cloud disk is downloaded,
Just only it is to provide dialog box (display download progress, download list of state etc.) and embedded cloud download button.
The example of an application scenarios of the invention as shown in Fig. 6 A, 6B, 3:The user of client-side is to current browser
Data on institute's accession page send out file download request, and downloader is obtained to the data on current browser institute accession page
The order of request is downloaded, for example, after choosing data object (download solicited message to be downloaded first and download file), clicks mouse
It marks right button popup menu and selects down operation indication item, send out the order (downloading solicited message) of the request, then, pop-up dialogue
Frame (Fig. 3).The downloader extracts corresponding information, such as file size, number according to request, to the file to be downloaded
According to the address link URL of particular content subordinate server, file extension, etc., shown in pop-up.Then, user can be with
Selection is clicked " download " button and is directly locally-downloaded, or selection " downloading to cloud disk offline " button is gone by cloud disk under execution
It carries.Wherein, it is locally-downloaded if executing, it, can be with reselection cloud disk during be locally-downloaded or after being locally-downloaded and having executed
This document being locally-downloaded is also passed to cloud disk and shares/share (display on the right of such as Fig. 6 B downloaders for other users by storage
Cloud button).And if executing " downloading to cloud disk offline ", it is determined that carry out the download of cloud disk side.It can be continuous by breakpoint
Biography or the mode of polynary transmission, local directly downloaded from cloud storage end server where executing browser store to the same of local
When, cloud storage end executes offline download from server where the data according to corresponding information and stores, and by the local
The part of the data stored is not downloaded before being transmitted from cloud storage end server.
Step S230, judges whether the user of client-side has logged on browser.
The identification information of user according to the client-side logs on to first server side, first to judge client-side
Whether user has logged on the browser in access browser.In above-mentioned application scenarios example, to carry out under cloud disk side
It carries, it is also necessary to judge the login status of browser and cloud disk.
In one embodiment, before the download for carrying out first server side, i.e., if it is determined that user has selected offline
Cloud disk is downloaded to, can first carry out the download environment mould of no cookie in the browser side of client-side before offline download
Quasi- (it is primary to simulate the request), it is determined whether offline download can succeed, to provide the judging result whether downloaded offline,
Wherein, if without the failed download under cookie, the offline download of first server side cannot be carried out, it can only be in client-side
It is downloaded.
It determines the download for carrying out first server side, and can be downloaded offline, first determine whether browser logs in.
If being not logged in or even unregistered, current browser user can be prompted by being logined or registered with realizations such as name, passwords.Its
In, after registering browser account number, user can obtain browser and the browser of login user is supplied to identify, such as:Current browsing
Device user Q.T strings;Then, which logs on to first server (for the first time) using user Q.T strings through browser, the
The string is written in the corresponding website cookie of one server and returns to cookie to browser, while being also written in cookie
One server is supplied to the certification token of login user.In this way, browser and first server are associated.
In an embodiment, the implementation for judging that browser logs according to the method for the present invention is given as shown in Figure 5
Example flow chart.
Step S510, if it is the state for being not logged in browser, then the user of client-side first passes through password and user name
Browser login is carried out, obtains and belongs to the legal identification information of login user, also, the legal identification information is written to the
One server corresponds in the cookie data of website, in login user first server, reads cookie data and directly steps on
Record first server.
When user is not logged in, login interface input account number (user name, password etc.) is provided, acquisition belongs to current browser
The legal identification information of login user, and the legal identification information is written to the cookie data that first server corresponds to website
In, when user logs in/access the first server through browser, the cookie data that browser carries can be by first service
Device is read, and is determined the legal identification information in the cookie data, is associated with current browser and the first server, from
And certification is directly logged onto the first server.
Wherein, legal identification information includes:User's Q.T strings of the registration user of current browser, and, first server
According to current browser transmission come current browser user Q.T strings complete to generate and return after first server logs in
To the certification token of current browser;Wherein, user Q.T strings and certification token time-effectiveness;
Wherein, current browser user Q.T strings and certification token based on write-in cookie data, log in first service
Device forms browser and first server and is mutually related login status.
Step S520, if it is the state for having logged on browser, then directly according to the login of the browser of client-side
The identification information of user logs on to first server side.
Browser is in the state that has logged on, need the download for carrying out first server side, then current browser is stepped on
The identification information for employing family is legal identification information, directly will
Step S240 is at least uploaded and is downloaded the address URL that solicited message asks the download first download file, so as to the
One server can offline be downloaded using the URL;Alternatively, browser carries out parsing to the download file obtains its description
Seed BT download address URL informations in information, upload to first server side, so that first server carries out seed BT downloads
File;It is parsed and is preserved alternatively, the download file is uploaded to the first server as seed BT files.
By taking the offline download of http protocol as an example, due to downloading the first time published article that can determine that it to be downloaded in solicited message
The address URL of part and this document is logging on to first server and when first server side is downloaded offline, at least will on
The address URL for passing this document, so that the first server can find the data server of offer this document resource according to the URL
Or Resource Server, it is downloaded offline.The information about the file to be downloaded uploaded can also include text other than URL
Part content, file name, file size etc..
It, can be first in the browser of client-side to downloading by taking the download initiated based on the first agreement is when BT is downloaded as an example
The seed BT that document analysis obtains description information downloads URL information, then is uploaded to first server side group and downloads URL letters in the BT
Breath carries out BT downloads;Alternatively, file will be downloaded as seed, first server is uploaded to, by being preserved after its parsing.
Further, first server can also make requests on client-side according to download solicited message the file of download
" second biography " operates, and further promotes the efficiency downloaded, and reduces the wasting of resources and occupancy.Shown in Figure 7 is according to the present invention
Method passes an embodiment flow chart about the second.
Step S710, first server is according to the MD5 values of the URL of the download file of upload and is stored in first service
After the MD5 values of URL in the download resource of device are compared, determine whether first server preserves the corresponding download file
Download resource.
The quick unloading of download resource (clear pass) is directly arrived native client by step S720 when there is corresponding download resource
End side, otherwise, first server are carried out according to data server where the URL from the download resource of the download file of upload
It is offline to download.
Step S250, first server side return to the state and/or result information of synchronous download;Wherein, result information
It is included in the URL for the file of first server side generation downloaded offline.
In one embodiment, the percentage information that the synchronization download state that first server side returns such as is downloaded,
Result information such as success or failure, carrying out which processing, generate offline download address file URL etc., can
Back to client-side user is shown to by modes such as pop-up, dialog boxes.
In turn, user can be downloaded to native client end side from first server side using the URL or be shared this
URL (is such as uploaded), so that other user is downloaded.
The login of browser directly logs in first server and is executed by it offline download as a result, is being stored with phase
When the file resource to be downloaded answered, the second passes data file, improves efficiency of transmission and speed, saves download time, reduces
To the resource occupation of network system transmission device etc., not necessarily to the high-performance of the environment such as local system resource, network transmission
There are dependences.And when without the resource to be downloaded, under the servers off-line where second server, that is, resource data
Carry without influencing and occupying local system and transfer resource, meanwhile, it is local when sharing file resource to first server, also without
It need to all upload, it is only necessary to which the file of first server preservation can be matched to by uploading URL etc., and other users can be simply and easily
Share or share this document.
The present invention also provides a kind of devices carrying out file download.As shown in Figure 8 is according to an embodiment of the invention
The structure diagram of device.The system 800 includes:
Detection unit 810, the file download request information initiated based on the first agreement for detecting client-side, and really
It is fixed that download first download for downloading file progress first server side is asked to the download solicited message.Specific processing and
Function referring to step S110 description.
Log in unit 820, the identification information of the user according to the client-side logs on to first server side, and by institute
It states and downloads solicited message upload first server side.Specific processing and function are referring to the description of step S120.
Returning unit 830, the state that first server side is downloaded file according to the download solicited message and/
Or result information sends back the client-side and is shown and/or accessed.Specific processing and function retouching referring to step S130
It states.
Wherein, first agreement includes:Http protocol and other Extended Protocols;Wherein, other Extended Protocols further include:
BT download protocols, electricity donkey ed2k download protocols, sudden peal of thunder download protocol.
Detection unit 810 further includes:Browser analyzes and determines each request data that client-side is sent out,
With the file download request information initiated based on the first agreement and download request letter in the presence of the determination request data
Breath asks the download first address URL for downloading file, specific processing and function referring to the description of step S210;And sentence
The user of disconnected client-side confirms the selection for the file download request information initiated based on the first agreement, when the selection confirms
For download, triggering, which starts, asks download first to download file progress first server side the download solicited message
It downloads, specific processing and function are referring to the description of step S220.
Detection unit 810 further includes:The file download request information and the download solicited message initiated based on the first agreement
The download first address URL for downloading file is asked, generates and downloads pop-up, specific processing and function retouching referring to step S220
It states;The entrance selected in the entrance that multiple triggerings of the user of client-side in the download pop-up are downloaded is judged, with basis
The entrance confirms the description of the download for starting user's needs, specific processing and function referring to step S410;Offline download is described
One in the entrance that multiple triggerings are downloaded, when the selection is confirmed as downloading offline, triggering starts asks to believe to the download
Breath asks download first to download the download that file carries out first server side, and specific processing and function are referring to step S420's
Description.
Logging in unit 820 further includes:Judge whether the user of client-side has logged on browser, specific processing and function
Referring to the description of step S230;Wherein, if it is the state for being not logged in browser, then the user of client-side first pass through password and
User name carries out browser login, obtains the legal identification information for belonging to login user, also, the legal identification information is write
Enter in the cookie data for corresponding to website to first server, in login user first server, read cookie data and
First server is directly logged in,;Specific processing and function are referring to the description of step S510;If it is the shape for having logged on browser
State then directly logs on to first server side, specifically according to the identification information of the login user of the browser of client-side
Handle the description referring to step S520 with function.Wherein, the legal identification information includes:Current browser user Q.T strings, the
One server according to current browser transmission come the current browser user Q.T string complete first server log in after give birth to
At and return to the certification token of current browser;Wherein, user Q.T strings and certification token have timeliness, specific to handle
With function referring to the description of step S230, S510;Based on the current browser user Q.T strings of write-in cookie data and certification
Token logs in first server, forms browser and first server and is mutually related login status, specific processing and work(
It can be referring to the description of step S230, S520.
In addition, login unit 820 further includes:At least uploading download solicited message asks download first to download file
Address URL, so that first server can offline be downloaded using the URL;Alternatively, browser carries out the download file
Parsing obtains the seed BT download address URL informations in its description information, first server side is uploaded to, so as to first server
It carries out seed BT and downloads file;It is carried out alternatively, the download file is uploaded to the first server as seed BT files
It parses and preserves.Specific processing and function are referring to the description of step S240;And first server is according to the download of upload
After the MD5 values of the URL of file are compared with the MD5 values of the URL in the download resource for being stored in first server, first is determined
Whether server preserves the description of the corresponding download resource for downloading file, specific processing and function referring to step S710;When
Native client end side, otherwise, first service directly are arrived into the quick unloading of download resource (clear pass) when having corresponding download resource
Device is downloaded offline according to data server where the URL from the download resource of the download file of upload, specific to handle
With function referring to the description of step S720.
Logging in unit 820 further includes:Before executing offline download, the browser of client-side first carries out under no cookie
Carry environmental simulation;If without the failed download under cookie, the offline download of first server side cannot be carried out, it can only be in visitor
Family end side is downloaded.Specific processing and function are referring to the description of step S230.
Returning unit 830 further includes:First server side returns to the state and/or result information of synchronous download;Wherein,
Result information is included in the URL for the file of first server side generation downloaded offline;User can use the URL from the first clothes
Business device side is downloaded native client end side or shares the URL, so that other user is downloaded.Specific processing and function
Referring to the description of step S250.
The present invention also provides a kind of browsers and one kind of the method for the progress file download using the aforementioned present invention
The browser device of the device of progress file download with the aforementioned present invention.
Function, processing procedure realized by the device, browser and browser device of the present embodiment etc. is substantially corresponding
In earlier figures 1 to embodiment of the method shown in Fig. 7, therefore not detailed place in the description of the present embodiment, it may refer to aforementioned implementation
Related description in example, this will not be repeated here.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment
Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors
Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice
Some in the device of microprocessor or digital signal processor (DSP) to realize backup log according to the ... of the embodiment of the present invention
Or some or all functions of whole components.The present invention is also implemented as one for executing method as described herein
Partly or completely equipment or program of device (for example, computer program and computer program product).Such realization is originally
The program of invention can may be stored on the computer-readable medium, or can be with the form of one or more signal.In this way
Signal can download and obtain from internet website, either provide on carrier signal or provide in any other forms.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch
To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame
Claim.
One embodiment of the present of invention discloses A1, a kind of method carrying out file download comprising:Detect client
The file download request information that side group is initiated in the first agreement, and determine and download first is asked to the download solicited message
Download the download that file carries out first server side;The identification information of user according to the client-side logs on to first service
Device side, and the download solicited message is uploaded into first server side;By first server side according to the download solicited message
The state and/or result information be downloaded to file sends back the client-side and is shown and/or accessed.A2, such as A1
The method, wherein first agreement includes:Http protocol and other Extended Protocols;Wherein, other Extended Protocols also wrap
It includes:BT download protocols, electricity donkey ed2k download protocols, sudden peal of thunder download protocol.A3, the method as described in A1, wherein detect client
The file download request information that end side is initiated based on the first agreement, including:Browser client-side is sent out each ask
Data are asked to be analyzed and determined, with the file download request initiated based on the first agreement in the presence of the determination request data
Information and the download solicited message ask the download first address URL for downloading file.A4, the method as described in A1, wherein
It determines and the download first download for downloading file progress first server side is asked to the download solicited message, including:Sentence
The user of disconnected client-side confirms the selection for the file download request information initiated based on the first agreement;When the selection confirms
For download, triggering, which starts, asks download first to download file progress first server side the download solicited message
It downloads.A5, the method as described in A4, wherein judge that the user of client-side asks the file download initiated based on the first agreement
The selection of information is asked to confirm, including:The file download request information and the download solicited message initiated based on the first agreement are asked
The first of the download address URL for downloading file is sought, generates and downloads pop-up;Judge the user of client-side in the download pop-up
The entrance downloaded of multiple triggerings in the entrance that selects, to confirm the download for starting user and needing according to the entrance;It is offline to download
One in the entrance downloaded for the multiple triggering, when the selection is confirmed as downloading offline, triggering starts to the download
Solicited message asks download first to download the download that file carries out first server side.The method of A6, such as A1, wherein according to
Log on to first server side according to the identification information of the user of the client-side, including:Judge client-side user whether
Have logged on browser;If it is the state for being not logged in browser, then the user of client-side first pass through password and user name into
Row browser logs in, and obtains the legal identification information for belonging to login user, also, the legal identification information is written to first
Server corresponds in the cookie data of website, in login user first server, reads cookie data and directly logs in
First server;If it is the state for having logged on browser, then directly according to the login user of the browser of client-side
The identification information logs on to first server side.A7, the method as described in A6, wherein acquisition belongs to the legal of login user
Identification information, also, the legal identification information is written in the cookie data that first server corresponds to website, it is logging in
When user's first server, reads cookie data and directly log in first server, including:The legal identification information packet
It includes:Current browser user Q.T string, first server according to current browser transmission come the current browser user Q.T
String completes the certification token of be generated and returned to current browser after first server logs in;Wherein, user Q.T goes here and there and recognizes
Demonstrate,proving token has timeliness;Current browser user Q.T strings and certification token based on write-in cookie data, log in first
Server forms browser and first server and is mutually related login status.A8, the method as described in A1, wherein and will
The download solicited message uploads first server side, including:Download solicited message is at least uploaded to ask under download first
The address URL of published article part, so that first server can offline be downloaded using the URL;Alternatively, browser is to the download
File carries out parsing and obtains seed BT download address URL informations in its description information, first server side is uploaded to, so as to the
One server carries out seed BT and downloads file;Alternatively, uploading to first clothes using the download file as seed BT files
Business device is parsed and is preserved.A9, the method as described in A1, wherein further include:First server is according to the download of upload
After the MD5 values of the URL of file are compared with the MD5 values of the URL in the download resource for being stored in first server, first is determined
Whether server preserves the corresponding download resource for downloading file;When there is corresponding download resource directly by the download resource
Native client end side is arrived in quick unloading (clear pass), and otherwise, first server is according to the URL of the download file of upload under this
Data server where carrying resource is downloaded offline.A10, the method as described in A1, wherein further include:In the case where executing offline
Before load, the browser of client-side first carries out the download environment simulation of no cookie;If without the failed download under cookie,
The offline download that cannot carry out first server side, can only be downloaded in client-side.A11, the method as described in A1,
In, state and/or result information that first server side is downloaded file according to the download solicited message are sent back
The client-side is shown and/or is accessed, including:First server side returns to the state and/or result of synchronous download
Information;Wherein, result information is included in the URL for the file of first server side generation downloaded offline;User can use should
URL is downloaded to native client end side from first server side or shares the URL, so that other user is downloaded.
One embodiment of the present of invention discloses B12, a kind of device carrying out file download, wherein including:Detection is single
Member, the file download request information initiated based on the first agreement for detecting client-side, and determine and the download is asked
Information asks download first to download the download that file carries out first server side;Unit is logged in, according to the client-side
The identification information of user log on to first server side, and the download solicited message is uploaded into first server side;It returns
Unit, the state and/or result information that first server side is downloaded file according to the download solicited message are sent
The client-side is returned to be shown and/or accessed.B13, the device as described in B12, wherein first agreement includes:
Http protocol and other Extended Protocols;Wherein, other Extended Protocols further include:It is BT download protocols, electricity donkey ed2k download protocols, fast
Thunder download protocol.B14, the device as described in B12, wherein detection unit further includes:Browser sends out client-side every
One request data is analyzed and determined, under the file initiated based on the first agreement in the presence of the determination request data
It carries solicited message and the download solicited message asks the download first address URL for downloading file.B15, the dress as described in B12
It sets, wherein detection unit further includes:Judge the user of client-side to the file download request information initiated based on the first agreement
Selection confirm;When the download for selecting to be confirmed as, triggering starts asks download first to the download solicited message
Download the download that file carries out first server side.B16, the device as described in B15, wherein detection unit further includes:Based on
The file download request information and the download solicited message that one agreement is initiated ask the download first address for downloading file
URL is generated and is downloaded pop-up;Judge to select in the entrance that multiple triggerings of the user of client-side in the download pop-up are downloaded
Entrance, with according to the entrance confirm start user need download;Offline download is in the multiple entrance for triggering and downloading
One, when it is described selection be confirmed as downloading offline, triggering start to it is described download solicited message asks download first under
Part of publishing papers carries out the download of first server side.The device of B17, such as B12, wherein logging in unit further includes:Judge client-side
User whether have logged on browser;If it is the state for being not logged in browser, then the user of client-side first passes through password
Browser login is carried out with user name, obtains and belongs to the legal identification information of login user, also, by the legal identification information
It is written in the cookie data that first server corresponds to website, in login user first server, reads cookie data
And directly log in first server;If it is the state for having logged on browser, then directly according to the browser of client-side
The identification information of login user logs on to first server side.B18, the device as described in B17, wherein log in unit also
Including:The legal identification information includes:Current browser user Q.T string, first server according to current browser transmission come
The current browser user Q.T string complete first server log in after be generated and returned to current browser certification
token;Wherein, user Q.T strings and certification token have timeliness;Current browser user based on write-in cookie data
Q.T goes here and there and certification token, logs in first server, forms browser and first server and is mutually related login status.
B19, the device as described in B12, wherein logging in unit further includes:It at least uploads and downloads solicited message asks download first
The address URL for downloading file, so that first server can offline be downloaded using the URL;Alternatively, browser is under described
Published article part carries out parsing the seed BT download address URL informations obtained in its description information, uploads to first server side, so as to
First server carries out seed BT and downloads file;Alternatively, uploading to described first using the download file as seed BT files
Server is parsed and is preserved.B20, the device as described in B19, wherein logging in unit further includes:First server is according to upper
The MD5 values and the MD5 values for the URL being stored in the download resource of first server of the URL of the download file passed is compared
After relatively, determine whether first server preserves the corresponding download resource for downloading file;It is straight when there is corresponding download resource
It connects and native client end side is arrived into the quick unloading of download resource (clear pass), otherwise, first server is according to the download of upload
Data server where the URL of file from the download resource is downloaded offline.B21, the device as described in B12, wherein log in
Unit further includes:Before executing offline download, the browser of client-side first carries out the download environment simulation of no cookie;If
Without the failed download under cookie, then the offline download of first server side cannot be carried out, can only be downloaded in client-side.
B22, the device as described in B12, wherein returning unit, including:First server side return synchronous download state and/or
Result information;Wherein, result information is included in the URL for the file of first server side generation downloaded offline;User can make
It is downloaded from first server side to native client end side with the URL or shares the URL, so that other user carries out down
It carries.
One embodiment of the present of invention discloses C23, a kind of browser using the method as described in A1-A11.
One embodiment of the present of invention disclose D24, it is a kind of include the device as described in B12-B22 browser device.
Claims (22)
1. a kind of method carrying out file download comprising:
It detects the file download request information that client-side is initiated based on the first agreement, and determines to the download solicited message
Download first is asked to download the download that file carries out first server side;
The identification information of user according to the client-side logs on to first server side, and will be in the download solicited message
Pass first server side;
The state and/or result information that first server side is downloaded file according to the download solicited message are sent back
The client-side is shown and/or is accessed;
Wherein, the method further includes:
The browser of client-side first carries out the download environment simulation of no cookie;
If the download success under no cookie, carries out the offline download of first server side;
If without the failed download under cookie, the offline download of first server side cannot be carried out, it can only be in client-side
It is downloaded.
2. the method for claim 1, wherein first agreement includes:
Http protocol and other Extended Protocols;Wherein,
Other Extended Protocols further include:BT download protocols, electricity donkey ed2k download protocols, sudden peal of thunder download protocol.
3. the method for claim 1, wherein detecting the file download request that client-side is initiated based on the first agreement
Information, including:
Browser analyzes and determines each request data that client-side is sent out, with institute in the determination request data
The existing file download request information initiated based on the first agreement and the download solicited message ask download first to download
The address URL of file.
First time downloaded published article is asked to the download solicited message 4. the method for claim 1, wherein determining
Part carries out the download of first server side, including:
Judge that the user of client-side confirms the selection for the file download request information initiated based on the first agreement;
When the download for selecting to be confirmed as, triggering, which starts, asks download first to download file the download solicited message
Carry out the download of first server side.
5. method as claimed in claim 4, wherein judge the user of client-side under the file initiated based on the first agreement
The selection confirmation of solicited message is carried, including:
The file download request information and the download solicited message initiated based on the first agreement ask first time downloaded published article
The address URL of part generates and downloads pop-up;
The entrance selected in the entrance that multiple triggerings of the user of client-side in the download pop-up are downloaded is judged, with basis
The entrance, which confirms, starts the download that user needs;
Offline one downloaded in the entrance downloaded for the multiple triggering, when the selection is confirmed as downloading offline, triggering is opened
It is dynamic that download first download for downloading file progress first server side is asked to the download solicited message.
6. the method for claim 1, wherein the identification information according to the user of the client-side logs on to the first clothes
Business device side, including:
Judge whether the user of client-side has logged on browser;
If it is the state for being not logged in browser, then the user of client-side first passes through password and user name carries out browser and steps on
Record obtains the legal identification information for belonging to login user, also, the legal identification information is written to first server and is corresponded to
In the cookie data of website, in login user first server, reads cookie data and directly log in first server;
If it is the state for having logged on browser, then directly according to the mark of the login user of the browser of client-side
Information registration is to first server side.
7. method as claimed in claim 6, wherein obtain and belong to the legal identification information of login user, also, by the conjunction
Method identification information is written in the cookie data that first server corresponds to website, in login user first server, is read
Cookie data and directly log in first server, including:
The legal identification information includes:Current browser user Q.T string, first server according to current browser transmission come
The current browser user Q.T strings complete the certification of be generated and returned to current browser after first server logs in
token;Wherein, user Q.T strings and certification token have timeliness;
Current browser user Q.T strings and certification token based on write-in cookie data, log in first server, are formed clear
Looking at device and first server is mutually related login status.
8. first server side the method for claim 1, wherein and by the download solicited message is uploaded, including:
It at least uploads and downloads the address URL that solicited message asks the download first download file, so that first server can be with
It is downloaded offline using the URL;Alternatively,
Browser carries out parsing the seed BT download address URL informations obtained in its description information to the download file, uploads
To first server side, file is downloaded so that first server carries out seed BT;Alternatively, using the download file as seed BT
File uploads to the first server and is parsed and preserved.
9. the method for claim 1, wherein further including:
First server is according to the MD5 values of the URL of the download file of upload and is stored in the download resource of first server
In URL MD5 values be compared after, determine whether first server preserves the corresponding download resource for downloading file;
The download resource is quickly directly dumped into native client end side, otherwise, first service when there is corresponding download resource
Device is downloaded offline according to data server where the URL from the download resource of the download file of upload.
10. the method for claim 1, wherein by first server side according to the download solicited message to file into
The state and/or result information that row is downloaded send back the client-side and are shown and/or accessed, including:
First server side returns to the state and/or result information of synchronous download;Wherein,
Result information is included in the URL for the file of first server side generation downloaded offline;
User can be downloaded to native client end side from first server side using the URL or be shared the URL, so as to other
User be downloaded.
11. a kind of device carrying out file download, wherein including:
Detection unit, the file download request information initiated based on the first agreement for detecting client-side, and determine to institute
It states and downloads the download that solicited message asks the download first download file to carry out first server side;
Log in unit, the identification information of the user according to the client-side logs on to first server side, and by the download
Solicited message uploads first server side;
Returning unit, the state and/or result that first server side is downloaded file according to the download solicited message
Information sends back the client-side and is shown and/or accessed;
Wherein, described device be additionally operable to client-side browser first carry out no cookie download environment simulation;If nothing
Download success under cookie, then carry out the offline download of first server side;If without the failed download under cookie, no
The offline download that can carry out first server side, can only be downloaded in client-side.
12. according to the devices described in claim 11, wherein first agreement includes:Http protocol and other Extended Protocols;
Wherein, other Extended Protocols further include:BT download protocols, electricity donkey ed2k download protocols, sudden peal of thunder download protocol.
13. according to the devices described in claim 11, wherein detection unit further includes:
Browser analyzes and determines each request data that client-side is sent out, with institute in the determination request data
The existing file download request information initiated based on the first agreement and the download solicited message ask download first to download
The address URL of file.
14. device as claimed in claim 11, wherein detection unit further includes:
Judge that the user of client-side confirms the selection for the file download request information initiated based on the first agreement;
When the download for selecting to be confirmed as, triggering, which starts, asks download first to download file the download solicited message
Carry out the download of first server side.
15. device as claimed in claim 14, wherein detection unit further includes:
The file download request information and the download solicited message initiated based on the first agreement ask first time downloaded published article
The address URL of part generates and downloads pop-up;
The entrance selected in the entrance that multiple triggerings of the user of client-side in the download pop-up are downloaded is judged, with basis
The entrance, which confirms, starts the download that user needs;
Offline one downloaded in the entrance downloaded for the multiple triggering, when the selection is confirmed as downloading offline, triggering is opened
It is dynamic that download first download for downloading file progress first server side is asked to the download solicited message.
16. device as claimed in claim 11, wherein logging in unit further includes:
Judge whether the user of client-side has logged on browser;
If it is the state for being not logged in browser, then the user of client-side first passes through password and user name carries out browser and steps on
Record obtains the legal identification information for belonging to login user, also, the legal identification information is written to first server and is corresponded to
In the cookie data of website, in login user first server, reads cookie data and directly log in first server;
If it is the state for having logged on browser, then directly according to the mark of the login user of the browser of client-side
Information registration is to first server side.
17. device as claimed in claim 16, wherein logging in unit further includes:
The legal identification information includes:Current browser user Q.T string, first server according to current browser transmission come
The current browser user Q.T strings complete the certification of be generated and returned to current browser after first server logs in
token;Wherein, user Q.T strings and certification token have timeliness;
Current browser user Q.T strings and certification token based on write-in cookie data, log in first server, are formed clear
Looking at device and first server is mutually related login status.
18. device as claimed in claim 11, wherein logging in unit further includes:
It at least uploads and downloads the address URL that solicited message asks the download first download file, so that first server can be with
It is downloaded offline using the URL;Alternatively,
Browser carries out parsing the seed BT download address URL informations obtained in its description information to the download file, uploads
To first server side, file is downloaded so that first server carries out seed BT;Alternatively, using the download file as seed BT
File uploads to the first server and is parsed and preserved.
19. device as claimed in claim 11, wherein logging in unit further includes:
First server is according to the MD5 values of the URL of the download file of upload and is stored in the download resource of first server
In URL MD5 values be compared after, determine whether first server preserves the corresponding download resource for downloading file;
The download resource is quickly directly dumped into native client end side, otherwise, first service when there is corresponding download resource
Device is downloaded offline according to data server where the URL from the download resource of the download file of upload.
20. device as claimed in claim 12, wherein returning unit, including:
First server side returns to the state and/or result information of synchronous download;Wherein,
Result information is included in the URL for the file of first server side generation downloaded offline;
User can be downloaded to native client end side from first server side using the URL or be shared the URL, so as to other
User be downloaded.
21. a kind of browser using such as any one of claim 1-10 the methods.
22. a kind of includes the browser device of the device as described in any one of claim 11-20.
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 document access method, server, client and system |
CN109871410A (en) * | 2019-02-14 | 2019-06-11 | 深圳市盟天科技有限公司 | A kind of method, apparatus of data assembling storage, server, storage medium |
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 |
CN112612977A (en) * | 2020-12-15 | 2021-04-06 | 京东数字科技控股股份有限公司 | 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 | |
Subramanian et al. | Hands-On RESTful API Design Patterns and Best Practices: Design, develop, and deploy highly adaptable, scalable, and secure RESTful web APIs | |
AU2015258733B2 (en) | Methods and systems for web content generation | |
US10659566B1 (en) | Demo recording utility | |
CN105045887B (en) | The system and method for mixed mode cross-domain data interaction | |
CN103617191B (en) | Use the hardware-accelerated method and browser for realizing that browser renders | |
CN104426925B (en) | Web page resources acquisition methods and device | |
US20140344707A1 (en) | Information Distribution Method and Device | |
WO2017107620A1 (en) | Method and system for loading page data | |
US9712622B2 (en) | Techniques to manage state information for a web service | |
US20150304412A1 (en) | Browser and system for download and download method | |
WO2017020110A1 (en) | Methods and systems for wysiwyg web content generation | |
US10893091B2 (en) | Management of asynchronous content post and media file transmissions | |
CN104346464A (en) | Processing method and device of webpage element information and browser client | |
CN105302815B (en) | The filter method and device of the uniform resource position mark URL of webpage | |
CN104615700A (en) | Method for collecting webpage objects in browser, browser client side and system | |
CN107783996A (en) | A kind of method and apparatus for sharing files | |
CN104346465A (en) | Method and device for saving web page elements, and browser client | |
US9503551B2 (en) | Hybrid native networked applications | |
KR20150135439A (en) | Unifying cloud services for online sharing | |
US11729248B2 (en) | Web application component migration to a cloud computing system | |
CN103685498B (en) | The loading method and browser device of a kind of wallpaper | |
CN104123143A (en) | User control loading system and method | |
CN104346460B (en) | Carry out the method, apparatus and browser client of file download | |
CN110020297A (en) | A kind of loading method of web page contents, apparatus and system |
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 |
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. |
|
TR01 | Transfer of patent right |