CN104537020A - Method for downloading file through browser and browser client side and device - Google Patents

Method for downloading file through browser and browser client side and device Download PDF

Info

Publication number
CN104537020A
CN104537020A CN201410797652.2A CN201410797652A CN104537020A CN 104537020 A CN104537020 A CN 104537020A CN 201410797652 A CN201410797652 A CN 201410797652A CN 104537020 A CN104537020 A CN 104537020A
Authority
CN
China
Prior art keywords
download
link
component
failed
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.)
Granted
Application number
CN201410797652.2A
Other languages
Chinese (zh)
Other versions
CN104537020B (en
Inventor
杨晓兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410797652.2A priority Critical patent/CN104537020B/en
Publication of CN104537020A publication Critical patent/CN104537020A/en
Application granted granted Critical
Publication of CN104537020B publication Critical patent/CN104537020B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for downloading a file through a browser, and relates to the technical field of browsers. The method includes the steps that after the current kernel of the browser triggers a downloading link, a downloading failure list is obtained; according to the downloading failure list, whether to switch a downloading module of another kernel or switch to a downloading module independent of the browser is selected and determined, and the downloading process is executed according to the downloading link; after the switched downloading module fails to execute the downloading process according to the downloading link, the state of the downloading failure is updated to the downloading failure list. Therefore, the problem that when a certain link is downloaded in the switched kernel, downloading fails all the time is solved, and the method has the advantages that after the kernel triggers the downloading link, the switching action likely to fail in downloading is not executed, the downloading failure caused by downloading module switch is avoided, and the switching state can be corrected intelligently.

Description

The method of browser downloads file, browser client and device
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of method of browser downloads file, a kind of browser client and a kind of device with browser client.
Background technology
Browser refers to can the HTML (HTML (Hypertext Markup Language), HyperText Mark-up Language) of display web page server or file system) file content, and allow a kind of software of user and these file interactions.Web browser is mainly through http protocol (Hypertext transfer protocol, HTML (Hypertext Markup Language)) with web page server alternately and obtain webpage, these webpages are by URL (URL(uniform resource locator), UniformResource Locator) specify, file layout is generally HTML (Hypertext Markup Language, HTML (Hypertext Markup Language)).Browser also can provide the upload and download function of resource.
Due to the form disunity of present webpage, different web sites adopts different-format to edit web page contents, and double-core even multi-core browser, has appearred in the various website of the access therefore in order to make user more convenient.When using double-core or multi-core browser, if when adopting browser to download, for browser developers, the downloading process of the triggering of each kernel generally all can switch in same download component and perform by it.In traditional double-core or multi-core browser, generally included IE kernel, but the function of the download component of IE kernel is simple, efficiency is low.So for IE kernel in the process of accessed web page, if trigger download link, this download link is all switched in the download component of other kernels and performs downloading process by it, such as the download component of chrome kernel; Or be switched in the download component of independence and browser and perform downloading process, such as sudden peal of thunder download component.But due to the restriction of webpage format, when such as ie kernel is switched to the download of chrome kernel, the download link of ie can not be downloaded for chrome kernel, then there will be situation about cannot download; Server is for the restriction of same main frame link number of times at short notice in other words, it switches the situation that still there will be same main frame repeatedly linked server in the process of download component, server then can forbid the download of the download component after switching, and the download component after its switching is downloaded also can be failed.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the browser client solved the problem at least in part and corresponding browser downloads document method.
According to one aspect of the present invention, provide a kind of method of browser downloads file, comprising:
After browser current inner triggers download link, obtain failed download list;
According to described failed download list, select to determine whether the download component switching another kernel or the download component be switched to independent of browser, perform downloading process according to described download link;
After the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
Preferably, described after the download component after employing one switches performs downloading process failure according to described download link, the state updating of failed download is comprised to described failed download list:
With the download link of current inner for critical field, the number of times of failed download after record is switched to another download component in described failed download list.
Preferably, with the download link of current inner for critical field, after record is switched to another download component, the number of times of failed download comprises:
Extract the Main Domain of the download link of described current inner;
Search in described failed download list and whether have this Main Domain;
If have described Main Domain in described failed download list, then whether there is the described download component field after switching under judging described Main Domain;
If there is the described download component field after switching under described Main Domain, then the frequency of failure under this download field adds 1;
If do not remember the described download component field after having switching under described Main Domain, then add described download component field, and record handoff failure number of times under described download component field;
If there is no described Main Domain in described failed download list, then add described Main Domain, and under described Main Domain, add the download component field after described switching, to record handoff failure number of times under described download component field.
Preferably, described according to described failed download list, select to determine whether the download component switching another kernel or the download component be switched to independent of browser, perform downloading process according to described download link and comprise:
Extract the Main Domain of described download link, described Main Domain is mated with the Main Domain in failed download list;
If the Main Domain in Main Domain and failed download list does not match, then the download component switching another kernel or the download component be switched to independent of browser, to perform downloading process according to described download link;
If the Main Domain in Main Domain and failed download list matches, then whether there is Unrecorded download component under judging Main Domain described in described failed download list; If there is Unrecorded download component, be then switched in described Unrecorded download component one to perform downloading process according to described download link;
If there is no Unrecorded download component, then judge whether to exist the download component that failed download number of times is less than unsuccessfully threshold value;
If there is the download component that failed download number of times is less than unsuccessfully threshold value, be then switched to one that the described frequency of failure is less than unsuccessfully in the download component of threshold value, to perform downloading process according to described download link;
If there is no failed download number of times is less than unsuccessfully the download component of threshold value, then be not switched to another download component, adopts the download component of current inner to perform downloading process to perform downloading process according to described download link.
Preferably, also comprise:
Judge whether the link that browser current inner triggers is download link.
Preferably, whether the described link judging that browser current inner triggers is that download link comprises:
According to the value of file type field of the HTTP request head that browser current inner sends, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
And/or, the value of the file type field in responding for the HTPP that the HTTP request that current inner sends is fed back according to server, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
Preferably, before performing downloading process according to described download link, also comprise:
Detect described download link whether safety; If described download link is dangerous, then user is pointed out whether to continue to download.
Preferably, also comprised before performing downloading process according to described download link:
Judge in the refer chain that described download link is corresponding each link whether safety; If each link in the refer chain that described download link is corresponding is dangerous, then user is pointed out whether to proceed to download.
According to a further aspect in the invention, provide a kind of browser client, comprising:
Networking component, is suitable for sending network request according to download link, obtains data from server;
Download component, comprising:
List obtains module, after being suitable for browser current inner triggering download link, obtains failed download list;
Kernel switches module, is suitable for according to described failed download list, selects to determine whether the download component switching another kernel or the download component be switched to independent of browser, calls networking component perform downloading process according to described download link;
List update module, is suitable for after the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
Preferably, described list update module comprises:
First list update module, is suitable for the download link of current inner for critical field, the number of times of failed download after record is switched to another download component in described failed download list.
Preferably, described first list update module comprises:
Main Domain extracts module, is suitable for the Main Domain of the download link extracting described current inner;
Main Domain searches module, is suitable for searching in described failed download list whether have this Main Domain;
There is process module in Main Domain, if be suitable for there is described Main Domain in described failed download list, then whether has the described download component field after switching under judging described Main Domain;
First field process module, if there is the described download component field after switching under being suitable for described Main Domain, then the frequency of failure under this download field adds 1;
Second field process module, if do not remember the described download component field after having switching under being suitable for described Main Domain, then adds described download component field, and record handoff failure number of times under described download component field;
There is not process module in Main Domain, if be suitable for there is no described Main Domain in described failed download list, then add described Main Domain, and under described Main Domain, add the download component field after described switching, to record handoff failure number of times under described download component field.
Preferably, described kernel switching module comprises:
Main Domain coupling module, is suitable for the Main Domain extracting described download link, is mated by described Main Domain with the Main Domain in failed download list;
The non-matching treatment module of Main Domain, if the Main Domain be suitable in Main Domain and failed download list does not match, then the download component switching another kernel or the download component be switched to independent of browser, to perform downloading process according to described download link;
Whether Main Domain matching treatment module, if the Main Domain be suitable in Main Domain and failed download list matches, then exist Unrecorded download component under judging Main Domain described in described failed download list;
First switches module, if be suitable for there is Unrecorded download component, is then switched in described Unrecorded download component one to perform downloading process according to described download link;
Threshold decision module, is suitable for if there is no Unrecorded download component, then judge whether to exist the download component that failed download number of times is less than unsuccessfully threshold value;
Second switches module, if be suitable for existing the download component that failed download number of times is less than unsuccessfully threshold value, is then switched to one that the described frequency of failure is less than unsuccessfully in the download component of threshold value, to perform downloading process according to described download link;
Direct download module, is suitable for if there is no failed download number of times and is less than unsuccessfully the download component of threshold value, be not then switched to another download component, adopts the download component of current inner to perform downloading process to perform downloading process according to described download link.
Preferably, also comprise:
Download link judges module, is suitable for judging whether the link that browser current inner triggers is download link.
Preferably, described download link judges that module comprises:
First download link judges module, be suitable for the value of the file type field of the HTTP request head sent according to browser current inner, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
And/or, second download link judges module, be suitable for the value of the file type field in the HTPP response of the HTTP request feedback sent for current inner according to server, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
Preferably, after download link judges module, also comprise:
First safety monitoring module, is suitable for detecting described download link whether safety; If described download link is dangerous, then user is pointed out whether to continue to download.
Preferably, after download link judges module, also comprise:
Second safety monitoring module, be suitable in the refer chain judging that described download link is corresponding each link whether safety; If each link in the refer chain that described download link is corresponding is dangerous, then user is pointed out whether to proceed to download.
According to a further aspect in the invention, provide a kind of system with browser information sharing apparatus, comprising:
Processor, and the storer being loaded with many executable instructions, described many instructions comprise the method performing following steps:
After browser current inner triggers download link, obtain failed download list;
According to described failed download list, select to determine whether the download component switching another kernel or the download component be switched to independent of browser, perform downloading process according to described download link;
After the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
According to the method for a kind of browser downloads file of the present invention, can record in the failed download list of browser by the download link of a browser kernel be switched to another download component perform downloading process time failure situation, so after certain follow-up kernel triggers download link, determine whether current download link to be switched to the download component of another kernel according to failed download list or perform downloading process independent of in the download component of browser, be switched to the download component of other kernels by current inner for what record in failed download list or be switched to independent of the failed situation of the download component execution of browser, can select not switch, solve thus to a certain be linked at switch kernel download time, download the problem that meeting is always failed, achieve after kernel triggers download link, switching action for possibility failed download will not perform, avoid switching download component and cause failed download, and the beneficial effect that can intelligent revise switching state.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the schematic flow sheet of the method that a kind of according to an embodiment of the invention browser information is shared;
Fig. 2 shows the schematic flow sheet of the method that a kind of according to an embodiment of the invention browser information is shared;
Fig. 3 shows the schematic flow sheet of the method that a kind of according to an embodiment of the invention browser information is shared;
Fig. 4 shows the structural representation of a kind of browser client of the present invention according to an embodiment of the invention;
Fig. 5 shows a kind of according to an embodiment of the invention structural representation of browser client;
Fig. 6 shows the structural representation of a kind of browser client of the present invention according to an embodiment of the invention;
Fig. 7 shows a kind of according to an embodiment of the invention structural representation of the system with browser information sharing apparatus.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Embodiment one
With reference to Fig. 1, it illustrates the schematic flow sheet of the method that a kind of browser information of the present invention is shared.Specifically can comprise:
Step 110, after browser current inner triggers download link, obtains failed download list;
In embodiments of the present invention, a failed download list can be built, this failed download list is after a kernel of double-core or multi-core browser triggers download link, download link is switched to the download component of other kernels from current inner, or when downloading from the download component that current inner is switched to independent of browser, if failed download, then for this link, the situation of its handoff failure can be recorded in described failed download list.
Certainly, failed download list of the present invention can maintain cloud server, is upgraded the failed download list of described cloud server by the record of the handoff failure of magnanimity client browser.Each client browser regularly can obtain failed download list update to this locality from described cloud server in use.
So in embodiments of the present invention, for the download link that browser current inner triggers, then first obtain described failed download list, enter step 120.
Step 120, according to described failed download list, selects to determine whether the download component switching another kernel or the download component be switched to independent of browser, performs downloading process according to described download link;
For the failed download list got, the embodiment of the present invention, then by described download link, carries out the matching analysis with the situation of the handoff failure for each download link recorded in failed download list.
If judge the download link triggered for current inner, do not adopt the download component of current inner, and be switched to other download component go perform downloading process will failure time, then adopt the download component of current inner to perform downloading process the download link that current inner triggers, be no longer switched in other download component and perform downloading process.In embodiments of the present invention, then can judge for described download link, be switched to after other download component A failed download number of times a certain reach unsuccessfully threshold value, then determine no longer to be switched to download component A to perform downloading process according to described download link.Other situations by that analogy.
If for the download link that current inner triggers in described failed download list, there is no the record of failed handoff scenario, then continue to be switched in other download component relative with current inner download component and perform downloading process.
Step 130, after the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
For the download link that current inner is triggered, after being switched to other download component, if judge that other download component perform downloading process failure by described download link, such as cannot be linked to server, download the structure of the expression failed downloads such as time-out, then can switch the failed download state updating of download component in aforementioned failed download list.
The state of described failed download comprises: the download component identity after download link, the kernel triggering download link, switching.Such as download link is www.aaa.com/abnx.ij/101020/3.mp3, and the kernel triggering download link is ie kernel, and the download component identity after switching is the download component of Chrome kernel.So in failed download list, then with above-mentioned download link for keyword, the failed download state after its switching can be upgraded, such as follows at the table one before time failed download:
Table one
Upgrade namely to the failed download number of times+1 being switched to the download component of Chrome kernel of www.aaa.com/abnx.ij/101020/3.mp3 after so aforementioned failure, so in table one, corresponding " 3 " are revised as " 4 ".
Preferably, preferably, described after the download component after employing one switches performs downloading process failure according to described download link, the state updating of failed download is comprised to described failed download list:
Sub-step 131, with the download link of current inner for critical field, the number of times of failed download after record is switched to another download component in described failed download list.
In embodiments of the present invention, if just switch the download link of ie kernel, so failed download list can be optimized for table two:
Table two
Trigger because all download link are ie kernel, so the first hurdle directly can enter statistics using network address as keyword, after this network address, can record the failed download number of times switching to other download component.Such as www.aaa.com/abnx.ij/101020/3.mp3, the download component failed download number of times switching to Chrome kernel is 3, and the failed download number of times switching to sudden peal of thunder download component is 4, if also have the frequency of failure of other download component, then can carry out record later successively.For www.bbb.com/aaaa/101, the download component failed download number of times switching to Chrome kernel is 0, the failed download number of times switching to sudden peal of thunder download component is 5, if also have the frequency of failure of other download component, then can carry out record later successively.
So, circulation like this, the download link of certain kernel of record handoff failure that can be intelligent, again follow-up encounter same download link after, if judge that the download component frequency of failure after the switching of the corresponding record in described failed download list reaches threshold value, be not then switched to corresponding download component and perform downloading process.
Certainly, in embodiments of the present invention, the failed download situation of each browser client record can be uploaded to cloud server, by the unified failed download list upgrading it and safeguard of cloud server, namely as table one or table two, the failed download situation of same download link is carried out adding up and upgrading.
According to the embodiment of the present invention, can record in the failed download list of browser by the download link of a browser kernel be switched to another download component perform downloading process time failure situation, so after certain follow-up kernel triggers download link, determine whether current download link to be switched to the download component of another kernel according to failed download list or perform downloading process independent of in the download component of browser, be switched to the download component of other kernels by current inner for what record in failed download list or be switched to independent of the failed situation of the download component execution of browser, can select not switch, solve thus to a certain be linked at switch kernel download time, download the problem that meeting is always failed, achieve after kernel triggers download link, switching action for possibility failed download will not perform, avoid switching download component and cause failed download, and the beneficial effect that can intelligent revise switching state.
Embodiment two
With reference to Fig. 2, it illustrates the schematic flow sheet of the method that a kind of browser information of the present invention is shared, specifically can comprise:
Step 210, after browser current inner triggers download link, obtains failed download list;
In embodiments of the present invention, failed download list corresponding to download link triggered for ie kernel is as table three:
Table three
In embodiments of the present invention, in failed download list with download link place Main Domain for key word switch after failed download situation record.
Step 220, extracts the Main Domain of described download link, is mated by described Main Domain with the Main Domain in failed download list; If the Main Domain in described Main Domain and failed download list does not match, then enter step 221, if the Main Domain in described Main Domain and failed download list matches, then enter step 222;
In embodiments of the present invention, as shown in Table 3, if the download link of the ie kernel triggering that browser is current is " www.aaa.com/abnx.ij/101020/3.mp3 ", so extract the Main Domain " www.aaa.com " in described download link, described Main Domain is mated with the Main Domain in table three; Discovery matches, then enter step 222.
Certainly, if the Main Domain in described Main Domain and failed download list does not match, then step 221 is entered.
Step 221, the download component switching another kernel or the download component be switched to independent of browser, to perform downloading process according to described download link; Enter step 230;
Namely the download link triggered for current inner is described, the download component that it is switched to another kernel without any record declaration or in being switched to independent of browser download component, perform the situation that downloading process can be failed, therefore can adopt the download component of another kernel or be switched in the download component independent of browser, first performing downloading process.
Whether step 222, exist Unrecorded download component under judging Main Domain described in described failed download list; If there is Unrecorded download component, then enter step 223; If there is no Unrecorded download component, then enter step 224;
As in table three, the download component of certain kernel after the switching of crossing for not having failed download, the kernel component of its correspondence of kernel may can not be recorded in table three by it, such as download component C and download component D, only have recorded in table three and switch Chrome failed download number of times and switch sudden peal of thunder download time, do not record download component C completely, the frequency of failure of download component D, and in multiple kernels of browser, also have the kernel supporting download component C and download component D, browser can also call the download component C independent of browser and the download component D independent of browser in other words, the download component D supporting download component C and can call independent of browser is also had in other words in the multiple kernel of browser.So for this kind of situation, step 223 can be entered.
If the kernel of current browser or all records in described download list of the download component independent of browser that can call, then enter step 224.
Step 223, is switched in described Unrecorded download component one to perform downloading process according to described download link; Enter step 230;
In previous example, one can be selected in download component C or download component D, described download link is switched in download component C or download component D, to perform downloading process.
Step 224, judges whether to exist the download component that failed download number of times is less than unsuccessfully threshold value; If there is the download component that failed download number of times is less than unsuccessfully threshold value, enter step 225; If there is no failed download number of times is less than unsuccessfully the download component of threshold value, enters step 226;
The download component of each switchable kernel of all browsers is have recorded in such as download list, and the download component independent of browser that browser can call, whether the frequency of failure after switching under so can judging each kernel is less than unsuccessfully threshold value, in such as table three, if threshold value is failed threshold value is 5, so switch that Chrome failed download number of times is 3, to switch sudden peal of thunder failed download number of times be 3, be less than unsuccessfully threshold value 5, so can enter step 225.
And when the failed download number of times of all records is all greater than unsuccessfully threshold value, then enter step 226.
Step 225, is switched to one that the described frequency of failure is less than unsuccessfully in the download component of threshold value, to perform downloading process according to described download link; Enter step 230;
So, the download component described download link being switched to chrome kernel can be selected, or be switched to sudden peal of thunder download component, perform downloading process.
Step 226, is not switched to another download component, adopts the download component of current inner to perform downloading process to perform downloading process according to described download link;
The download link that current ie kernel is no longer set out is switched in other download component, and adopts the download component of ie kernel itself to perform downloading process according to described download link.
Step 230, after the download component after employing one switches performs downloading process failure according to described download link, extracts the Main Domain of the download link of described current inner;
Step 231, searches in described failed download list whether have this Main Domain; If have described Main Domain in described failed download list, then enter step 232; If there is no described Main Domain in described failed download list, then enter step 235;
Whether step 232, have the described download component field after switching under judging described Main Domain; If there is the described download component field after switching under described Main Domain, then enter step 233; If do not remember the described download component field after having switching under described Main Domain, then enter step 234;
Step 233, the frequency of failure under this download field adds 1;
Step 234, adds described download component field, and records handoff failure number of times under described download component field;
Step 235, adds described Main Domain, and under described Main Domain, add the download component field after described switching, to record handoff failure number of times under described download component field.
Step 230 is to 235 for convenience of description, is described below with several example:
(1), when ie kernel triggers the download link of www.aaa.com/193939/sjsj, and the download component switching to chrome kernel performs downloading process, and after this downloading process failure.First extract in step 230 the Main Domain " www.aaa.com " of download link, in the download list then in step 231 in look-up table three, whether have this Main Domain; Find that there is, after this Main Domain, then search the download component field whether having chrome kernel, find that there is " switching Chrome failed download number of times ", then enter step 233, by the number of times+1 of corresponding " www.aaa.com " under described " switching Chrome failed download number of times ", obtain 4.Obtain the table after upgrading, as table four:
Table four
(2), when ie kernel triggers the download link of www.aaa.com/193939/kkkk, and download component C execution downloading process is switched to, and after this downloading process failure.First extract in step 230 the Main Domain " www.aaa.com " of download link, in the download list then in step 231 in look-up table three, whether have this Main Domain; Find that there is, then after this Main Domain, search whether there is download component C field, find do not have, then enter step 234, add field " switch download component C the frequency of failure ", and described " switching the download component C frequency of failure " " under record handoff failure number of times 1.Obtain the table after upgrading, as table five:
Table five
(3), when ie kernel triggers the download link of www.ccc.com/19lll9/sjsj, and the download component switching to chrome kernel performs downloading process, and after this downloading process failure.First extract in step 230 the Main Domain " www.ccc.com " of download link, in the download list then in step 231 in look-up table three, whether have this Main Domain; Discovery does not have, then step 235, adds described Main Domain, and under described Main Domain, add the download component field after described switching, to record handoff failure number of times under described download component field.Obtain the table after upgrading, as table six:
Table six
Certainly, in embodiments of the present invention, each browser client be by new switching after the state of failed download of download component upload onto the server, then upgrade down loading updating list by server is unified.
According to the embodiment of the present invention, can record in the failed download list of browser by the download link of a browser kernel be switched to another download component perform downloading process time failure situation, so after certain follow-up kernel triggers download link, determine whether current download link to be switched to the download component of another kernel according to failed download list or perform downloading process independent of in the download component of browser, be switched to the download component of other kernels by current inner for what record in failed download list or be switched to independent of the failed situation of the download component execution of browser, can select not switch, solve thus to a certain be linked at switch kernel download time, download the problem that meeting is always failed, achieve after kernel triggers download link, switching action for possibility failed download will not perform, avoid switching download component and cause failed download, and the beneficial effect that can intelligent revise switching state, in addition, failed download list of the present invention can be expanded for the browser of various structure very easily.
Embodiment three
With reference to Fig. 3, it illustrates the schematic flow sheet of the method that a kind of browser information of the present invention is shared, specifically can comprise:
Step 310, judges whether the link that browser current inner triggers is download link.
In the embodiment of the present invention, for the link that browser triggers, first need to judge whether it is download link.
Preferably, whether the described link judging that browser current inner triggers is that download link comprises:
Sub-step 311, the value of the file type field in responding for the HTPP that the HTTP request that current inner sends is fed back according to server, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
When the kernel of browser sends network request, generally first build HTTP request for URL and be sent to server, and server can respond and return to browser kernel by the file generated corresponding according to this URL accordingly, the format sample of this response is roughly:
HTTP/1.0200OK
Date:Mon,31Dec201304:25:57GMT
Server:Apache/1.3.14(Unix)
Content-type:text/html
Last-modified:Tue,17Apr201206:46:28GMT
Content-length:39725426
Content-range:bytes554554-40279979/40279980
Wherein, the first row is protocol name HTTP and version number 1.0, has a three-figure numeral after space, and be the responsive state code of http protocol, 200 represent successfully, and OK is the brief textual description to status code.Status code has 5 classes: 1xx belongs to notice class; 2xx belongs to successfully class; 3xx belongs to redirected class; 4xx belongs to client error class; 5xx belongs to service end mistake class.Content-Length identification data length.Second row Date represents the current GMT time.The third line Server represents server name.Fourth line Content-type represents the file type of client-requested data.Fifth line represents the last modification time of Last-modified server data.6th row Content-length represents content-length.7th row Content-range represents data area.
In the embodiment of the present invention, the data render of correspondence can become webpage to show by the kernel of browser for the data of current correspondence by Content-type field instruction browser, or webpage can not be become to carry out showing the data render of correspondence by the kernel of browser and need to call download component and download.Namely can judge whether the network request of the correspondence that browser sends is download request according to the value of Content-type field, such as Doctype is that text/html represents html document, can be become that the form of webpage is shown, Doctype is that the non-picture of image/jpeg also can become the form of webpage to show by the render engine renders of browser kernel by the render engine renders of browser kernel.And Doctype to be application/octet-stream be expressed as binary stream, cannot be played up by browser kernel and show etc. in webpage, need to download.
Therefore, when judging the value of the file type field in the response that described server feeds back for the HTTP request that browser kernel sends, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then judge described HTTP request corresponding be linked as download link.
And/or sub-step 312, according to the value of the file type field of the HTTP request head of browser current inner transmission, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
After the present invention also directly can trigger a download link according to browser, server can be sent to building HTTP request based on described download link, whether the value of the head file type field of the HTTP request that the embodiment of the present invention then can send according to browser judges that corresponding carrying links is download link, such as browser sends post request, and post request format example is roughly:
POST/HTTP/1.1
Host:www.wrox.com
User-Agent:Mozilla/5.0(Windows;U;Windows NT 5.1;en-US;rv:1.7.6)Gecko/20050225Firefox/1.0.1
Content-Type:application/octet-stream
Content-Length:39725426
Connection:Keep-Alive
Wherein, the first row is request type psot, protocol name/HTTP and version number 1.1, has a three-figure numeral after space, and be the responsive state code of http protocol, 200 represent successfully, and OK is the brief textual description to status code.Status code has 5 classes: 1xx belongs to notice class; 2xx belongs to successfully class; 3xx belongs to redirected class; 4xx belongs to client error class; 5xx belongs to service end mistake class.Content-Length identification data length.Second row Host represents host domain name.Three-four lines User-Agent represents client-side information.Fourth line Content-type represents the file type of client-requested data.Fifth line Content-type represents the file type of client-requested data.6th row Connection represents connection type.
According to the value of Content-type, the embodiment of the present invention also can judge whether the network request that kernel sends is download request, namely when the value of described Content-type field be browser kernel can not resolve to the type of showing in the page time, then judge described HTTP request corresponding be linked as download link.
Preferably, judge that browser current inner triggers be linked as download link after, also comprise:
Sub-step 313, detects described download link whether safety; If download link is dangerous, then user is pointed out whether to continue to download.
Directly described download link can be made an inventory described download link whether safety by cloud security URL library in embodiments of the present invention, if download link is dangerous, then point out user whether to continue to download, and the downloading process of download component described in temporary interruption.If user selects to continue to download, then recover the downloading process of described download component, if user selects not download, then cancel the download to described file.
If download link safety, then user need not be pointed out.
Preferably, judge that browser current inner triggers be linked as download link after, also comprise:
Sub-step 314, judge in the refer chain that described download link is corresponding each link whether safety; If each link in the refer chain that described download link is corresponding is dangerous, then user is pointed out whether to proceed to download.
In embodiments of the present invention, user in the process of browsing device net page, may click the download link in certain webpage, to carry out file download.Namely so there is a refer chain to the click process of webpage in it.So-called refer chain, it is after user's open any browser, the initial page of browser access acquiescence or trigger the request of access of initial page in the input of address field by user, the 2nd grade of page is linked to by initial page by user clickthrough or other on-link mode (OLM) in initial page, by user on the 2nd grade of page clickthrough or other on-link mode (OLM) by the 2nd grade of page link to the 3rd level page, the rest may be inferred, finally by the i-th-1 grade page link to i-th grade of page.So be a refer chain from initial page to i-th grade of page.For the download link that user clicks, multiple redirect link may be there is before it, so from the chain link A-B-C initial page A to current download link i ... i, be this download and connect corresponding refer chain, so the embodiment of the present invention can judge whether there is unsafe link in described refer chain, can certainly go to judge by cloud network address security vault, if existed, user is then pointed out whether to continue to download, and the downloading process of download component described in temporary interruption.If user selects to continue to download, then recover the downloading process of described download component, if user selects not download, then cancel the download to described file.
If the whole safety of the link in refer chain, then need not point out user.
Step 320, after browser current inner triggers download link, obtains failed download list;
Step 330, according to described failed download list, selects to determine whether the download component switching another kernel or the download component be switched to independent of browser, performs downloading process according to described download link;
Step 340, after the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
Embodiment four
With reference to Fig. 4, it illustrates the structural representation of a kind of browser client of the present invention, specifically can comprise:
Networking component 410, is suitable for sending network request according to download link, obtains data from server;
Download component 412, comprising:
List obtains module 4121, after being suitable for browser current inner triggering download link, obtains failed download list;
Kernel switches module 4122, is suitable for according to described failed download list, selects to determine whether the download component switching another kernel or the download component be switched to independent of browser, calls networking component 410 perform downloading process according to described download link;
List update module 4123, is suitable for after the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
Preferably, described list update module comprises:
First list update module, is suitable for the download link of current inner for critical field, the number of times of failed download after record is switched to another download component in described failed download list.
Embodiment five
With reference to Fig. 5, it illustrates the structural representation of a kind of browser client of the present invention, specifically can comprise:
Networking component 510, is suitable for sending network request according to download link, obtains data from server;
Download component 512, comprising:
List obtains module 5121, after being suitable for browser current inner triggering download link, obtains failed download list;
Kernel switches module 5122, comprising:
Main Domain coupling module 51221, is suitable for the Main Domain extracting described download link, is mated by described Main Domain with the Main Domain in failed download list;
The non-matching treatment module 51222 of Main Domain, if the Main Domain be suitable in Main Domain and failed download list does not match, the download component then switching another kernel or the download component be switched to independent of browser, call networking component 510 according to described download link and perform downloading process;
Whether Main Domain matching treatment module 51223, if the Main Domain be suitable in Main Domain and failed download list matches, then exist Unrecorded download component under judging Main Domain described in described failed download list;
First switches module 51224, if be suitable for there is Unrecorded download component, then of being switched in described Unrecorded download component performs downloading process to call networking component 510 according to described download link;
Threshold decision module 51225, is suitable for if there is no Unrecorded download component, then judge whether to exist the download component that failed download number of times is less than unsuccessfully threshold value;
Second switches module 51226, if be suitable for existing the download component that failed download number of times is less than unsuccessfully threshold value, then be switched to one that the described frequency of failure is less than unsuccessfully in the download component of threshold value, perform downloading process to call networking component 510 according to described download link;
Direct download module 51227, be suitable for if there is no failed download number of times and be less than unsuccessfully the download component of threshold value, then be not switched to another download component, adopt the download component of current inner to perform downloading process execution downloading process to call networking component 510 according to described download link.
First list update module 5123, comprising:
Main Domain extracts module 51231, is suitable for the Main Domain of the download link extracting described current inner;
Main Domain searches module 51232, is suitable for searching in described failed download list whether have this Main Domain;
There is process module 51233 in Main Domain, if be suitable for there is described Main Domain in described failed download list, then whether has the described download component field after switching under judging described Main Domain;
First field process module 51234, if there is the described download component field after switching under being suitable for described Main Domain, then the frequency of failure under this download field adds 1;
Second field process module 51235, if do not remember the described download component field after having switching under being suitable for described Main Domain, then adds described download component field, and record handoff failure number of times under described download component field;
There is not process module 51236 in Main Domain, if be suitable for there is no described Main Domain in described failed download list, then add described Main Domain, and under described Main Domain, add the download component field after described switching, to record handoff failure number of times under described download component field.
Embodiment six
With reference to Fig. 6, it illustrates the structural representation of a kind of browser client of the present invention, specifically can comprise:
Networking component 610, is suitable for sending network request according to download link, obtains data from server;
Download component 612, comprising:
Download link judges module 6121, is suitable for judging whether the link that browser current inner triggers is download link.
List obtains module 6122, after being suitable for browser current inner triggering download link, obtains failed download list;
Kernel switches module 6123, is suitable for according to described failed download list, selects to determine whether the download component switching another kernel or the download component be switched to independent of browser, calls networking component 610 perform downloading process according to described download link;
List update module 6124, is suitable for after the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
Preferably, described download link judges that module comprises:
First download link judges module, be suitable for the value of the file type field of the HTTP request head sent according to browser current inner, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
And/or, second download link judges module, be suitable for the value of the file type field in the HTPP response of the HTTP request feedback sent for current inner according to server, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
Preferably, after download link judges module, also comprise:
First safety monitoring module, is suitable for detecting described download link whether safety; If described download link is dangerous, then user is pointed out whether to continue to download.
Preferably, after download link judges module, also comprise:
Second safety monitoring module, be suitable in the refer chain judging that described download link is corresponding each link whether safety; If each link in the refer chain that described download link is corresponding is dangerous, then user is pointed out whether to proceed to download.
Embodiment seven
With reference to Fig. 7, it illustrates the structural representation of a kind of system with browser information sharing apparatus of the present invention, described system 700 specifically can comprise:
Processor 710, and the storer 720 being loaded with many executable instructions, described many instructions comprise the method performing following steps:
After browser current inner triggers download link, obtain failed download list;
According to described failed download list, select to determine whether the download component switching another kernel or the download component be switched to independent of browser, perform downloading process according to described download link;
After the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
Certainly, described many instructions also comprise the method performing aforementioned various step.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and microprocessor or digital signal processor (DSP) can be used in practice to realize according to the embodiment of the present invention browser downloads filethe some or all functions of the some or all parts in equipment.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses a kind of method of A1, browser downloads file, comprising:
After browser current inner triggers download link, obtain failed download list;
According to described failed download list, select to determine whether the download component switching another kernel or the download component be switched to independent of browser, perform downloading process according to described download link;
After the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
A2, method as described in A1, described after the download component after employing one switches performs downloading process failure according to described download link, the state updating of failed download is comprised to described failed download list:
With the download link of current inner for critical field, the number of times of failed download after record is switched to another download component in described failed download list.
A3, method as described in A2, with the download link of current inner for critical field, after record is switched to another download component, the number of times of failed download comprises:
Extract the Main Domain of the download link of described current inner;
Search in described failed download list and whether have this Main Domain;
If have described Main Domain in described failed download list, then whether there is the described download component field after switching under judging described Main Domain;
If there is the described download component field after switching under described Main Domain, then the frequency of failure under this download field adds 1;
If do not remember the described download component field after having switching under described Main Domain, then add described download component field, and record handoff failure number of times under described download component field;
If there is no described Main Domain in described failed download list, then add described Main Domain, and under described Main Domain, add the download component field after described switching, to record handoff failure number of times under described download component field.
A4, method as described in A3, described according to described failed download list, select to determine whether the download component switching another kernel or the download component be switched to independent of browser, perform downloading process according to described download link and comprise:
Extract the Main Domain of described download link, described Main Domain is mated with the Main Domain in failed download list;
If the Main Domain in Main Domain and failed download list does not match, then the download component switching another kernel or the download component be switched to independent of browser, to perform downloading process according to described download link;
If the Main Domain in Main Domain and failed download list matches, then whether there is Unrecorded download component under judging Main Domain described in described failed download list;
If there is Unrecorded download component, be then switched in described Unrecorded download component one to perform downloading process according to described download link;
If there is no Unrecorded download component, then judge whether to exist the download component that failed download number of times is less than unsuccessfully threshold value;
If there is the download component that failed download number of times is less than unsuccessfully threshold value, be then switched to one that the described frequency of failure is less than unsuccessfully in the download component of threshold value, to perform downloading process according to described download link;
If there is no failed download number of times is less than unsuccessfully the download component of threshold value, then be not switched to another download component, adopts the download component of current inner to perform downloading process to perform downloading process according to described download link.
A5, method as described in A3, also comprise: judge whether the link that browser current inner triggers is download link.
A6, method as described in A5, whether the described link judging that browser current inner triggers is that download link comprises:
According to the value of file type field of the HTTP request head that browser current inner sends, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
And/or, the value of the file type field in responding for the HTPP that the HTTP request that current inner sends is fed back according to server, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
A7, method as described in A1, before performing downloading process according to described download link, also comprise:
Detect described download link whether safety; If described download link is dangerous, then user is pointed out whether to continue to download.
A8, method as described in A1, also comprised before performing downloading process according to described download link:
Judge in the refer chain that described download link is corresponding each link whether safety; If each link in the refer chain that described download link is corresponding is dangerous, then user is pointed out whether to proceed to download.
The invention also discloses B9, a kind of browser client, comprising:
Networking component, is suitable for sending network request according to download link, obtains data from server;
Download component, comprising:
List obtains module, after being suitable for browser current inner triggering download link, obtains failed download list;
Kernel switches module, is suitable for according to described failed download list, selects to determine whether the download component switching another kernel or the download component be switched to independent of browser, calls networking component perform downloading process according to described download link;
List update module, is suitable for after the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
B10, browser client as described in B9, described list update module comprises:
First list update module, is suitable for the download link of current inner for critical field, the number of times of failed download after record is switched to another download component in described failed download list.
B11, browser client as described in B10, described first list update module comprises:
Main Domain extracts module, is suitable for the Main Domain of the download link extracting described current inner;
Main Domain searches module, is suitable for searching in described failed download list whether have this Main Domain;
There is process module in Main Domain, if be suitable for there is described Main Domain in described failed download list, then whether has the described download component field after switching under judging described Main Domain;
First field process module, if there is the described download component field after switching under being suitable for described Main Domain, then the frequency of failure under this download field adds 1;
Second field process module, if do not remember the described download component field after having switching under being suitable for described Main Domain, then adds described download component field, and record handoff failure number of times under described download component field;
There is not process module in Main Domain, if be suitable for there is no described Main Domain in described failed download list, then add described Main Domain, and under described Main Domain, add the download component field after described switching, to record handoff failure number of times under described download component field.
B12, browser client as described in B11, described kernel switches module and comprises:
Main Domain coupling module, is suitable for the Main Domain extracting described download link, is mated by described Main Domain with the Main Domain in failed download list;
The non-matching treatment module of Main Domain, if the Main Domain be suitable in Main Domain and failed download list does not match, then the download component switching another kernel or the download component be switched to independent of browser, to perform downloading process according to described download link;
Whether Main Domain matching treatment module, if the Main Domain be suitable in Main Domain and failed download list matches, then exist Unrecorded download component under judging Main Domain described in described failed download list;
First switches module, if be suitable for there is Unrecorded download component, is then switched in described Unrecorded download component one to perform downloading process according to described download link;
Threshold decision module, is suitable for if there is no Unrecorded download component, then judge whether to exist the download component that failed download number of times is less than unsuccessfully threshold value;
Second switches module, if be suitable for existing the download component that failed download number of times is less than unsuccessfully threshold value, is then switched to one that the described frequency of failure is less than unsuccessfully in the download component of threshold value, to perform downloading process according to described download link;
Direct download module, is suitable for if there is no failed download number of times and is less than unsuccessfully the download component of threshold value, be not then switched to another download component, adopts the download component of current inner to perform downloading process to perform downloading process according to described download link.
B13, browser client as described in B11, also comprise:
Download link judges module, is suitable for judging whether the link that browser current inner triggers is download link.
B14, browser client as described in B13, described download link judges that module comprises:
First download link judges module, be suitable for the value of the file type field of the HTTP request head sent according to browser current inner, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
And/or, second download link judges module, be suitable for the value of the file type field in the HTPP response of the HTTP request feedback sent for current inner according to server, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
B15, browser client as described in B9, after download link judges module, also comprise:
First safety monitoring module, is suitable for detecting described download link whether safety; If described download link is dangerous, then user is pointed out whether to continue to download.
B16, browser client as described in B9, after download link judges module, also comprise:
Second safety monitoring module, be suitable in the refer chain judging that described download link is corresponding each link whether safety; If each link in the refer chain that described download link is corresponding is dangerous, then user is pointed out whether to proceed to download.
The invention also discloses C17, a kind of system with browser information sharing apparatus, comprising:
Processor, and the storer being loaded with many executable instructions, described many instructions comprise the method performing following steps: after browser current inner triggers download link, obtain failed download list;
According to described failed download list, select to determine whether the download component switching another kernel or the download component be switched to independent of browser, perform downloading process according to described download link;
After the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.

Claims (10)

1. a method for browser downloads file, comprising:
After browser current inner triggers download link, obtain failed download list;
According to described failed download list, select to determine whether the download component switching another kernel or the download component be switched to independent of browser, perform downloading process according to described download link;
After the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
2. the method for claim 1, is characterized in that, described after the download component after employing one switches performs downloading process failure according to described download link, is comprised by the state updating of failed download to described failed download list:
With the download link of current inner for critical field, the number of times of failed download after record is switched to another download component in described failed download list.
3. method as claimed in claim 2, is characterized in that, with the download link of current inner for critical field, after record is switched to another download component, the number of times of failed download comprises:
Extract the Main Domain of the download link of described current inner;
Search in described failed download list and whether have this Main Domain;
If have described Main Domain in described failed download list, then whether there is the described download component field after switching under judging described Main Domain;
If there is the described download component field after switching under described Main Domain, then the frequency of failure under this download field adds 1;
If do not remember the described download component field after having switching under described Main Domain, then add described download component field, and record handoff failure number of times under described download component field;
If there is no described Main Domain in described failed download list, then add described Main Domain, and under described Main Domain, add the download component field after described switching, to record handoff failure number of times under described download component field.
4. method as claimed in claim 3, it is characterized in that, described according to described failed download list, select to determine whether the download component switching another kernel or the download component be switched to independent of browser, perform downloading process according to described download link and comprise:
Extract the Main Domain of described download link, described Main Domain is mated with the Main Domain in failed download list;
If the Main Domain in Main Domain and failed download list does not match, then the download component switching another kernel or the download component be switched to independent of browser, to perform downloading process according to described download link;
If the Main Domain in Main Domain and failed download list matches, then whether there is Unrecorded download component under judging Main Domain described in described failed download list;
If there is Unrecorded download component, be then switched in described Unrecorded download component one to perform downloading process according to described download link;
If there is no Unrecorded download component, then judge whether to exist the download component that failed download number of times is less than unsuccessfully threshold value;
If there is the download component that failed download number of times is less than unsuccessfully threshold value, be then switched to one that the described frequency of failure is less than unsuccessfully in the download component of threshold value, to perform downloading process according to described download link;
If there is no failed download number of times is less than unsuccessfully the download component of threshold value, then be not switched to another download component, adopts the download component of current inner to perform downloading process to perform downloading process according to described download link.
5. method as claimed in claim 3, is characterized in that, also comprise:
Judge whether the link that browser current inner triggers is download link.
6. method as claimed in claim 5, it is characterized in that, whether the described link judging that browser current inner triggers is that download link comprises:
According to the value of file type field of the HTTP request head that browser current inner sends, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
And/or, the value of the file type field in responding for the HTPP that the HTTP request that current inner sends is fed back according to server, when the value of described file type field be browser kernel can not resolve to the type of showing in the page time, then what judge described correspondence is linked as download link.
7. the method for claim 1, is characterized in that, before performing downloading process according to described download link, also comprises:
Detect described download link whether safety; If described download link is dangerous, then user is pointed out whether to continue to download.
8. the method for claim 1, is characterized in that, also comprises before performing downloading process according to described download link:
Judge in the refer chain that described download link is corresponding each link whether safety; If each link in the refer chain that described download link is corresponding is dangerous, then user is pointed out whether to proceed to download.
9. a browser client, comprising:
Networking component, is suitable for sending network request according to download link, obtains data from server;
Download component, comprising:
List obtains module, after being suitable for browser current inner triggering download link, obtains failed download list;
Kernel switches module, is suitable for according to described failed download list, selects to determine whether the download component switching another kernel or the download component be switched to independent of browser, calls networking component perform downloading process according to described download link;
List update module, is suitable for after the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
10., with a system for browser information sharing apparatus, comprising:
Processor, and the storer being loaded with many executable instructions, described many instructions comprise the method performing following steps:
After browser current inner triggers download link, obtain failed download list;
According to described failed download list, select to determine whether the download component switching another kernel or the download component be switched to independent of browser, perform downloading process according to described download link;
After the download component after employing one switches performs downloading process failure according to described download link, by the state updating of failed download in described failed download list.
CN201410797652.2A 2014-12-18 2014-12-18 Browser downloads method, browser client and the device of file Expired - Fee Related CN104537020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410797652.2A CN104537020B (en) 2014-12-18 2014-12-18 Browser downloads method, browser client and the device of file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410797652.2A CN104537020B (en) 2014-12-18 2014-12-18 Browser downloads method, browser client and the device of file

Publications (2)

Publication Number Publication Date
CN104537020A true CN104537020A (en) 2015-04-22
CN104537020B CN104537020B (en) 2018-03-02

Family

ID=52852548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410797652.2A Expired - Fee Related CN104537020B (en) 2014-12-18 2014-12-18 Browser downloads method, browser client and the device of file

Country Status (1)

Country Link
CN (1) CN104537020B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107666494A (en) * 2016-07-27 2018-02-06 广州市动景计算机科技有限公司 Data uploading method and device and portable terminal
CN112468550A (en) * 2020-11-12 2021-03-09 北京金山云网络技术有限公司 File downloading method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100094891A1 (en) * 2008-10-13 2010-04-15 Bid Solve, Inc. Client-Server System for Multi-Resource Searching
US20110157219A1 (en) * 2009-12-31 2011-06-30 International Business Machines Corporation Automatic targeting of browser content to optimal rendering engine
CN103176977A (en) * 2011-12-20 2013-06-26 腾讯科技(深圳)有限公司 Page loading method, page loading system and browser
CN103631955A (en) * 2013-12-12 2014-03-12 北京奇虎科技有限公司 Method and device for updating browser kernel switching matching bank data
CN103853851A (en) * 2014-03-31 2014-06-11 北京奇虎科技有限公司 Method for downloading files in browsers and browser device
CN103942277A (en) * 2014-03-31 2014-07-23 北京奇虎科技有限公司 Method and device for downloading file in browsers and browsers

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100094891A1 (en) * 2008-10-13 2010-04-15 Bid Solve, Inc. Client-Server System for Multi-Resource Searching
US20110157219A1 (en) * 2009-12-31 2011-06-30 International Business Machines Corporation Automatic targeting of browser content to optimal rendering engine
CN103176977A (en) * 2011-12-20 2013-06-26 腾讯科技(深圳)有限公司 Page loading method, page loading system and browser
CN103631955A (en) * 2013-12-12 2014-03-12 北京奇虎科技有限公司 Method and device for updating browser kernel switching matching bank data
CN103853851A (en) * 2014-03-31 2014-06-11 北京奇虎科技有限公司 Method for downloading files in browsers and browser device
CN103942277A (en) * 2014-03-31 2014-07-23 北京奇虎科技有限公司 Method and device for downloading file in browsers and browsers

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107666494A (en) * 2016-07-27 2018-02-06 广州市动景计算机科技有限公司 Data uploading method and device and portable terminal
CN112468550A (en) * 2020-11-12 2021-03-09 北京金山云网络技术有限公司 File downloading method and device and electronic equipment

Also Published As

Publication number Publication date
CN104537020B (en) 2018-03-02

Similar Documents

Publication Publication Date Title
CN104504060A (en) File downloading method in browser, browser client side and device
CN101529415B (en) Offline execution of web based applications
CN104063460B (en) A kind of method and apparatus loading webpage in a browser
CN101127038B (en) System and method for downloading website static web page
CN102946436B (en) A kind of download system
CN102929984B (en) Inefficacy address searching method and apparatus
CN102915363B (en) Web site collection method and system
US9485332B2 (en) Offloading execution of a portion of a client-side web application to a server
CN106598673B (en) Application program upgrading method and system
CN102982162B (en) The acquisition system of info web
JP2006139763A (en) Application programming interface for text mining and searching
CN103118081B (en) Server, client, the system and method for browsing pages in prestrain browser
CN108494762A (en) Web access method, device and computer readable storage medium, terminal
CN102929985A (en) Method and system for displaying collected webpage
CN103678091A (en) Method and device for processing crash data of application software
CN103034724A (en) Method and device for carrying out input data recovery in browser
CN109391673A (en) A kind of method, system and the terminal device of management update file
CN102970369A (en) Downloading browser and method
CN104572968A (en) Page updating method and device
CN103077349B (en) A kind of method of browser side prompting access secure information and device
CN105208108A (en) File uploading/downloading method and system in Web environment, server and client end
CN109145236A (en) Page file processing method, apparatus and system
CN106294844A (en) Browsing device net page loading processing method and device
CN107800611A (en) The method and page layout switch device of a kind of page layout switch
CN104537022A (en) Method for sharing information through browser and browser client and device

Legal Events

Date Code Title Description
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180302

Termination date: 20211218

CF01 Termination of patent right due to non-payment of annual fee