CN105187505A - Download processing method and device - Google Patents

Download processing method and device Download PDF

Info

Publication number
CN105187505A
CN105187505A CN201510490723.9A CN201510490723A CN105187505A CN 105187505 A CN105187505 A CN 105187505A CN 201510490723 A CN201510490723 A CN 201510490723A CN 105187505 A CN105187505 A CN 105187505A
Authority
CN
China
Prior art keywords
download address
download
resource
server
address
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.)
Pending
Application number
CN201510490723.9A
Other languages
Chinese (zh)
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.)
Meizu Technology China Co Ltd
Original Assignee
Meizu Technology China 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 Meizu Technology China Co Ltd filed Critical Meizu Technology China Co Ltd
Priority to CN201510490723.9A priority Critical patent/CN105187505A/en
Publication of CN105187505A publication Critical patent/CN105187505A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/951Indexing; Web crawling techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the invention disclose a download processing method. The download processing method comprises: receiving a download request sent by a client; transmitting the download request to a first resource server, and receiving a first download address returned by the first resource server according to the download request; judging whether the first download address is an effective download address according to a preset download address scanning list, wherein the download address scanning list is a scanning result obtained by effectively scanning download addresses in the first resource server according to a download address scanning instruction; and if the first download address is an ineffective download address, sending an effective download address corresponding to the first download address to the client. Correspondingly, the embodiments of the invention further disclose a download processing device. By adopting the download processing method and device disclosed by the embodiments of the invention, the ineffective download address can be found and processed in time to improve the download efficiency.

Description

A kind of download process method and apparatus
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of download process method and apparatus.
Background technology
In user's downloaded resources (as application installation kit, video or novel etc.) time, normally downloads in the resources bank that all kinds of resource is corresponding.Such as foradownloaded video, usually in video website as excellent cruel, video resource that Sohu or Tengxun etc. download demand; And for example down load application installation kit, the application market usually released in software content manufacturer or terminal equipment manufacturer downloads the application resource of demand.
Resource in all kinds of resources bank is all obtain from different channels, often occurs the problem that the download address of user's downloaded resources from resources bank lost efficacy.For application market, application program in application market is all obtain from different channels, application market developer generally also can adopt the method for multi-party cooperative in order to the content library expanding oneself, due to safety, the problem such as quality problem and chained address variation of each channel itself, often cause the problem that the download address of user's down load application program from application market lost efficacy.For existingly being reported by client, the mode of manual testing and operation processes the mode of invalid download address very not in time, and download efficiency is low.
Summary of the invention
The embodiment of the present invention provides a kind of download process method and apparatus, can Timeliness coverage process invalid download address, improves download efficiency.
Embodiment of the present invention first aspect provides a kind of download process method, comprising:
Receive the download request that client sends;
Described download request is sent to first resource server, and receives the first download address that described first resource server returns according to described download request;
Judge whether described first download address is effective download address according to preset download address scan table, wherein, described download address scan table is according to download address scan instruction, the download address in described first resource server is carried out to the scanning result of validity scanning acquisition;
If described first download address is invalid download address, then send effective download address corresponding to described first download address to described client.
Optionally, if described first download address is invalid download address, then sends effective download address corresponding to described first download address to described client, comprising:
If described first download address is invalid download address, then judge whether the important level of the resource that described first download address is corresponding reaches predetermined level;
If the important level of the resource that described first download address is corresponding reaches described predetermined level, then send effective download address corresponding to described first download address to described client, and replace described first download address in described first resource server by described effective download address.
Optionally, the described effective download address corresponding to described first download address of described client transmission, comprising:
Identification information according to resource corresponding to described first download address searches resource bag corresponding to described identification information in Secondary resource server;
The resource bag that download finds also is stored in described first resource server, for the described resource bag be stored in described first resource server generates download address, be designated as the second download address, wherein said second download address comprises title and the sequence number of described resource bag;
Using described second download address as effective download address corresponding to described first download address, and send to described client.
Optionally, described scanning result comprises HTML (Hypertext Markup Language) HTTP conditional code;
Describedly judge whether described first download address is effective download address, comprising according to preset download address scan table:
Judge whether the HTTP conditional code in the scanning result of described first download address is request success status code;
If the HTTP conditional code in described scanning result is not described request success status code, then determine that described first download address is invalid download address.
Optionally, described download address scan table is according to download address scan instruction, the download address in described first resource server is carried out to the scanning result of validity scanning acquisition, comprising:
Described download address scan table is according to download address scan instruction, and download address clicking rate in described first resource server being reached to predetermined threshold value and/or other resource of specified class carries out the scanning result that validity scans acquisition; Or,
Described download address scan table is according to download address scan instruction, the download address of all resources in described first resource server is carried out to the scanning result of validity scanning acquisition.
Correspondingly, the embodiment of the present invention additionally provides a kind of download process device, comprising:
Receiver module, for receiving the download request that client sends;
First sending module, for described download request is sent to first resource server, and receives the first download address that described first resource server returns according to described download request;
Judge module, for judging according to preset download address scan table whether described first download address is effective download address, wherein, described download address scan table is according to download address scan instruction, the download address in described first resource server is carried out to the scanning result of validity scanning acquisition;
Second sending module, if be invalid download address for described first download address, then sends effective download address corresponding to described first download address to described client.
Optionally, described second sending module comprises:
Judging unit, if be invalid download address for described first download address, then judges whether the important level of the resource that described first download address is corresponding reaches predetermined level;
Transmitting element, if reach described predetermined level for the important level of resource corresponding to described first download address, then sends effective download address corresponding to described first download address to described client;
Replacement unit, if reach described predetermined level for the important level of resource corresponding to described first download address, then replaces described first download address in described first resource server by described effective download address.
Optionally, described transmitting element comprises:
Search subelement, for searching resource bag corresponding to described identification information according to the identification information of resource corresponding to described first download address in Secondary resource server;
Process subelement, for downloading the resource bag that finds and being stored in described first resource server, for the described resource bag be stored in described first resource server generates download address, be designated as the second download address, wherein said second download address comprises title and the sequence number of described resource bag;
Send subelement, for using described second download address as effective download address corresponding to described first download address, and send to described client.
Optionally, described scanning result comprises HTML (Hypertext Markup Language) HTTP conditional code;
Described judge module specifically for:
Judge whether the HTTP conditional code in the scanning result of described first download address is request success status code, if the HTTP conditional code in described scanning result is not described request success status code, then determines that described first download address is invalid download address.
Optionally, described download address scan table is according to download address scan instruction, the download address in described first resource server is carried out to the scanning result of validity scanning acquisition, comprising:
Described download address scan table is according to download address scan instruction, and download address clicking rate in described first resource server being reached to predetermined threshold value and/or other resource of specified class carries out the scanning result that validity scans acquisition; Or,
Described download address scan table is according to download address scan instruction, the download address of all resources in described first resource server is carried out to the scanning result of validity scanning acquisition.
Implement the embodiment of the present invention, there is following beneficial effect:
First server in advance can according to download address scan instruction, validity scanning is carried out to the download address in first resource server and obtains scanning result, first server is after getting the first download address corresponding to download request, can judge according to preset download address scan table whether described first download address is effective download address, if described first download address is invalid download address, then send effective download address corresponding to described first download address to client, compare the existing mode reported by client and whether effectively to detect download address, the embodiment of the present invention can Timeliness coverage and process download address lost efficacy problem address, thus improve download efficiency, enhance Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of download process method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of download process method that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of another download process method that the embodiment of the present invention provides;
Fig. 4 is the schematic flow sheet of another download process method that the embodiment of the present invention provides;
Fig. 5 is the schematic flow sheet of another download process method that the embodiment of the present invention provides;
Fig. 6 is the structural representation of a kind of download process device that the embodiment of the present invention provides;
Fig. 7 is the structural representation of the second sending module that the embodiment of the present invention provides;
Fig. 8 is the structural representation of the transmitting element that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of download process method, comprising:
Receive the download request that client sends;
Described download request is sent to first resource server, and receives the first download address that described first resource server returns according to described download request;
Judge whether described first download address is effective download address according to preset download address scan table, wherein, described download address scan table is according to download address scan instruction, the download address in described first resource server is carried out to the scanning result of validity scanning acquisition;
If described first download address is invalid download address, then send effective download address corresponding to described first download address to described client.
Concrete, the embodiment shown in Fig. 1 ~ Fig. 3 describes a kind of download process method of the present invention from different perspectives, and the embodiment of Fig. 4 describes this download process method from system perspective correspondence.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of download process method that the embodiment of the present invention provides; The embodiment of the present invention describes from first server angle; Described method comprises as shown in Figure 1:
Step S101, first server receives the download request that client sends.
Described download request can carry the identification information needing the resource downloaded, and described resource can comprise application program, video or novel etc.Concrete, when first server receives the download request of client transmission, described download request can be sent to second server by described first server.In embodiments of the present invention, described first server receives the download request of client, and returns download address to client; In other embodiment, described second server also can receive the download request of client, and returns download address to client, specifically can the embodiment shown in reference diagram 5, and the embodiment of the present invention repeats no more.Wherein, second server is the above-mentioned first resource server mentioned, described first resource server stores has resource data.
Step S102, described download request is sent to second server by described first server, and receives the first download address that described second server returns according to described download request.
Concrete, described download request is sent to second server by described first server, according to described download request, scanning acquisition first download address is carried out to the download address in database to make described second server, and described first download address is sent to described first server, described first server thus receive described first download address.
Wherein, described first download address can be the download address that this resource generates for second server, and the download address that this resource that also can be other servers be generates, the present invention does not limit.
Step S103, according to preset download address scan table, described first server judges whether described first download address is effective download address, wherein, described download address scan table be first server according to download address scan instruction, to the download address in described second server carry out validity scanning obtain scanning result.
Concrete, when described first server receives the first download address that second server returns, described first server can judge according to preset download address scan table whether described first download address is effective download address, if described first download address is effective download address, then process ends; Otherwise, perform step S104.
It should be noted that, the end mark in Fig. 1 represents after above-mentioned process, to enter corresponding effectively download address handling process, does not represent the end of download process flow process.
Optionally, described scanning result comprises HTML (Hypertext Markup Language) HTTP conditional code, described first server can judge whether the HTTP conditional code in the scanning result of described first download address is request success status code, if the HTTP conditional code in described scanning result is not described request success status code, described first server then determines that described first download address is invalid download address.
Wherein, HTTP conditional code is 3 digit numerical code representing web page server http response state, one of first digit five kinds of states representing response of all conditional codes.Will be understood that, ask successful code to be 200; Other HTTP conditional codes are introduced in detail and with reference to RFC2616, RFC2518, RFC2817, RFC2295, RFC2774 or RFC4918, can not repeated them here.
In the optional execution mode of one, described download address scan table can be that first server is according to download address scan instruction, download address clicking rate in described second server being reached to predetermined threshold value and/or other resource of specified class carries out the scanning result that validity scans acquisition, specifically can be realized by any one mode in following three kinds of modes:
Mode one: when getting download address scan instruction, described first server then carries out validity scanning acquisition scanning result to the download address that clicking rate in described second server reaches the resource of predetermined threshold value, and upgrades download address scan table according to described scanning result; Or, described first server sends download address scan instruction to described second server, described second server carries out validity scanning according to described download address scan instruction to the download address that clicking rate in described second server reaches the resource of predetermined threshold value, and scanning result is returned first server, described first server upgrades described download address scan table according to described scanning result.
Will be understood that, described predetermined threshold value can be empirical value, and can adjust according to actual conditions.
Mode two: when getting download address scan instruction, described first server is then carried out validity scanning to the download address of the resource of specifying classification in described second server and is obtained scanning result, and upgrades described download address scan table according to described scanning result; Or, described first server sends download address scan instruction to described second server, described second server carries out validity scanning according to the download address of described download address scan instruction to the resource of specifying classification in described second server, and scanning result is returned first server, described first server upgrades described download address scan table according to described scanning result;
Described classification can be distinguished according to the provider of resource, or the type (for application program, as game, chat tool, office or shopping etc.) according to resource is distinguished, and the present invention does not limit;
Mode three: when getting download address scan instruction, described first server then reaches other resource of specified class of predetermined threshold value download address to clicking rate in described second server carries out validity scanning, obtain scanning result, and upgrade described download address scan table according to described scanning result; Or, described first server sends download address scan instruction to described second server, described second server is according to described download address scan instruction, download address clicking rate in described second server being reached to other resource of specified class of predetermined threshold value carries out validity scanning, and scanning result is returned first server, described first server upgrades described download address scan table according to described scanning result.
In the optional execution mode of another kind, described download address scan table is according to download address scan instruction, the download address of resources all in described second server is carried out to the scanning result of validity scanning acquisition.
Concrete, when getting download address scan instruction, described first server is then carried out scanning to the download address of resources all in second server and is obtained scanning result, and upgrades download address scan table according to described scanning result; Or, described first server sends download address scan instruction to described second server, described second server scans according to the download address of download address scan instruction to resources all in second server, and the scanning result obtained according to described scanning is returned to described first server to upgrade download address scan table.
In the embodiment of the present invention, first server can scan the download address of second server and obtain scanning result in advance, when first server gets download address corresponding to download request, can judge that whether described download address is effective according to described scanning result, whether the mode reported by client compared to existing technology detects download address effective, the embodiment of the present invention can Timeliness coverage process invalid download address, improves download efficiency.
Step S104, if described first download address is invalid download address, described first server then sends effective download address corresponding to described first download address to described client.
Preferably, if described first download address is invalid download address, described first server then judges whether the important level of the resource that described first download address is corresponding reaches predetermined level, if the important level of the resource that described first download address is corresponding reaches described predetermined level, described first server then sends effective download address corresponding to described first download address to described client, and replaces described first download address in described second server by described effective download address.
In the optional execution mode of one, effective download address that described first server sends described first download address corresponding to described client is specifically as follows:
Described first server searches resource bag corresponding to described identification information according to the identification information of resource corresponding to described first download address in the 3rd server, described first server is downloaded the resource bag that finds and is stored in described second server, for the described resource bag be stored in described second server generates download address, be designated as the second download address, wherein said second download address comprises title and the sequence number of described resource bag, described first server using described second download address as effective download address corresponding to described first download address, and send to described client.
It should be noted that, how in order to store, to generate download address with the resource bag of second server be that those skilled in the art are intelligible to first server, do not repeat them here.
In the optional execution mode of another kind, effective download address that described first server sends described first download address corresponding to described client is specifically as follows:
Described first server searches resource bag corresponding to described identification information according to the identification information of resource corresponding to described first download address in the 3rd server, the download address at described 3rd server of the resource bag found described in described first server obtains, and using the described download address that the gets effective download address as described first download address, effective download address corresponding for described first download address is sent to described client by described first server.
Wherein, described 3rd server is the server of other resources banks.Described resource is for application program, and described first server and described second server may be used for managing same application market, and the 3rd server is the application market for managing other.
The identification information of described resource can be resource ID or resource name.Described resource is for application program, and the identification information of described resource can be installation kit ID or installation kit title.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the another kind of download process method that the embodiment of the present invention provides; The embodiment of the present invention describes from second server angle; Described method comprises as shown in Figure 2:
Step S201, second server receives the download request that first server sends;
Step S202, described second server returns the first download address according to described download request, judge whether described first download address is effective download address to make described first server according to preset download address scan table, and when described first download address is invalid download address, send effective download address corresponding to described first download address to client.
Wherein, described download address scan table can be that first server is according to download address scan instruction, download address clicking rate in described second server being reached to predetermined threshold value and/or other resource of specified class carries out the scanning result that validity scans acquisition, specifically can be realized by any one mode in following three kinds of modes:
Mode one: when first server gets download address scan instruction, described first server then carries out validity scanning acquisition scanning result to the download address that clicking rate in described second server reaches the resource of predetermined threshold value, and upgrades download address scan table according to described scanning result; Or, described first server sends download address scan instruction to described second server, described second server carries out validity scanning according to described download address scan instruction to the download address that clicking rate in described second server reaches the resource of predetermined threshold value, and scanning result is returned first server, described first server upgrades described download address scan table according to described scanning result.
Mode two: when first server gets download address scan instruction, described first server is then carried out validity scanning to the download address of the resource of specifying classification in described second server and is obtained scanning result, and upgrades described download address scan table according to described scanning result; Or, described first server sends download address scan instruction to described second server, described second server carries out validity scanning according to the download address of described download address scan instruction to the resource of specifying classification in described second server, and scanning result is returned first server, described first server upgrades described download address scan table according to described scanning result;
Described classification can be distinguished according to the provider of resource, or the type (for application program, as game, chat tool, office or shopping etc.) according to resource is distinguished, and the present invention does not limit;
Mode three: when first server gets download address scan instruction, described first server then reaches other resource of specified class of predetermined threshold value download address to clicking rate in described second server carries out validity scanning, obtain scanning result, and upgrade described download address scan table according to described scanning result; Or, described first server sends download address scan instruction to described second server, described second server is according to described download address scan instruction, download address clicking rate in described second server being reached to other resource of specified class of predetermined threshold value carries out validity scanning, and scanning result is returned first server, described first server upgrades described download address scan table according to described scanning result.
In the optional execution mode of another kind, described download address scan table is according to download address scan instruction, the download address of resources all in described second server is carried out to the scanning result of validity scanning acquisition.
Concrete, when getting download address scan instruction, described first server is then carried out scanning to the download address of resources all in second server and is obtained scanning result, and upgrades download address scan table according to described scanning result; Or, described first server sends download address scan instruction to described second server, described second server scans according to the download address of download address scan instruction to resources all in second server, and the scanning result obtained according to described scanning is returned to described first server to upgrade download address scan table.
Further, when described first download address is invalid download address, described second server enables effective download address corresponding to described first download address.In specific implementation, described first server is downloaded the resource bag that finds and is stored in described second server, for the described resource bag be stored in described second server generates download address, be designated as the second download address, second download address is sent to described second server by described first server, and described first download address is replaced with described second download address by described second server; Generate if effective download address corresponding to described first download address is the 3rd server, effective download address of the first download address can be sent to second server by first server, and second server enables effective download address of described first download address.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of another download process method that the embodiment of the present invention provides; The embodiment of the present invention describes from client angle; Described method comprises as shown in Figure 3:
Step S301, client sends and downloads request to first server.
Step S302, described client receives the download address that described first server returns, wherein, described download address is when according to preset download address scan table, described first server judges that the first download address that second server returns is invalid download address, effective download address that described first download address returned is corresponding, described first download address is the address that described second server returns according to the described download request that described first server forwards.
Refer to Fig. 4, Fig. 4 is the schematic flow sheet of another download process method that the embodiment of the present invention provides; The embodiment of the present invention describes from system perspective; Described method comprises as shown in Figure 4:
Step S401, client sends download request to first server.
Step S402, described download request is sent to second server by described first server.
Step S403, described second server returns the first download address according to described download request.
Step S404, according to preset download address scan table, described first server judges whether described first download address is effective download address; If described first download address is invalid download address, then perform step S405.Wherein, described download address scan table is according to download address scan instruction, the download address in described second server is carried out to the scanning result of validity scanning acquisition.
In the optional execution mode of one, described download address scan table can be according to download address scan instruction, and download address clicking rate in described second server being reached to predetermined threshold value and/or other resource of specified class carries out the scanning result that validity scans acquisition.
In the optional execution mode of another kind, described download address scan table is according to download address scan instruction, the download address of resources all in described second server is carried out to the scanning result of validity scanning acquisition.
Step S405, described first server judges whether the important level of the resource that described first download address is corresponding reaches predetermined level; If the important level of the resource that described first download address is corresponding reaches described predetermined level, then perform step S406.
Step S406, described first server sends effective download address corresponding to described first download address to described client.
In the optional execution mode of one, effective download address that described first server sends described first download address corresponding to described client is specifically as follows:
Described first server searches resource bag corresponding to described identification information according to the identification information of resource corresponding to described first download address in the 3rd server, described first server is downloaded the resource bag that finds and is stored in described second server, for the described resource bag be stored in described second server generates download address, be designated as the second download address, wherein said second download address comprises title and the sequence number of described resource bag, described first server using described second download address as effective download address corresponding to described first download address, and send to described client.
In the optional execution mode of another kind, effective download address that described first server sends described first download address corresponding to described client is specifically as follows:
Described first server searches resource bag corresponding to described identification information according to the identification information of resource corresponding to described first download address in the 3rd server, the download address at described 3rd server of the resource bag found described in described first server obtains, and using the described download address that the gets effective download address as described first download address, effective download address corresponding for described first download address is sent to described client by described first server.
Step S407, described first server replaces described first download address in described second server by described effective download address.
It should be noted that there is no strict priority execution sequence between step S406 and step S407, also can perform simultaneously.
In the embodiment shown in Fig. 1 ~ Fig. 4, first server in advance can according to download address scan instruction, validity scanning is carried out to the download address in first resource server and obtains scanning result, first server is after getting the first download address corresponding to download request, judge whether described first download address is effective download address according to preset download address scan table, if described first download address is invalid download address, then send effective download address corresponding to described first download address to client, whether the mode reported by client compared to existing technology detects download address effective, the embodiment of the present invention can Timeliness coverage process invalid download address, improve download efficiency.
Refer to Fig. 5, Fig. 5 is the schematic flow sheet of another download process method that the embodiment of the present invention provides.The another kind of download process method that the embodiment of Fig. 5 describes from system perspective.Described method can comprise as shown in Figure 5:
Step S501, client sends download request to second server.
Step S502, described second server obtains the first download address according to described download request.
Step S503, described first download address is sent to first server by described second server.
Step S504, according to preset download address scan table, described first server judges whether described first download address is effective download address; If described first download address is invalid download address, then perform step S505.Wherein, described download address scan table is according to download address scan instruction, the download address in described second server is carried out to the scanning result of validity scanning acquisition.
In the optional execution mode of one, described download address scan table can be according to download address scan instruction, and download address clicking rate in described second server being reached to predetermined threshold value and/or other resource of specified class carries out the scanning result that validity scans acquisition.
In the optional execution mode of another kind, described download address scan table is according to download address scan instruction, the download address of resources all in described second server is carried out to the scanning result of validity scanning acquisition.
Step S505, described first server judges whether the important level of the resource that described first download address is corresponding reaches predetermined level; If the important level of the resource that described first download address is corresponding reaches described predetermined level, then perform step S506.
Step S506, described first server sends effective download address corresponding to described first download address to described second server.
In the optional execution mode of one, effective download address that described first server sends described first download address corresponding to described client is specifically as follows:
Described first server searches resource bag corresponding to described identification information according to the identification information of resource corresponding to described first download address in the 3rd server, described first server is downloaded the resource bag that finds and is stored in described second server, for the described resource bag be stored in described second server generates download address, be designated as the second download address, wherein said second download address comprises title and the sequence number of described resource bag, described second download address is sent to described second server as effective download address that described first download address is corresponding by described first server.
In the optional execution mode of another kind, effective download address that described first server sends described first download address corresponding to described client is specifically as follows:
Described first server searches resource bag corresponding to described identification information according to the identification information of resource corresponding to described first download address in the 3rd server, the download address at described 3rd server of the resource bag found described in described first server obtains, and using the described download address that the gets effective download address as described first download address, effective download address corresponding for described first download address is sent to described second server by described first server.
Step S507, described effective address corresponding for described first download address is sent to described client by described second server.
Further, described first download address is replaced with effective download address corresponding to described first download address by described second server.
In the embodiment shown in fig. 5, second server is when getting download request, then obtain the first download address that described download request is corresponding, and described first download address is sent to first server, according to preset download address scan table, first server judges whether described first download address is effective download address, if described first download address is invalid download address, first server then sends effective download address corresponding to the first download address to second server, effective address is sent to client by second server again, whether the mode reported by client compared to existing technology detects download address effective, the embodiment of the present invention can Timeliness coverage process invalid download address, improve download efficiency.
The embodiment of the present invention also provides a kind of download process device, comprising:
Receiver module, for receiving the download request that client sends;
First sending module, for described download request is sent to first resource server, and receives the first download address that described first resource server returns according to described download request;
Judge module, for judging according to preset download address scan table whether described first download address is effective download address, wherein, described download address scan table is according to download address scan instruction, the download address in described first resource server is carried out to the scanning result of validity scanning acquisition;
Second sending module, if be invalid download address for described first download address, then sends effective download address corresponding to described first download address to described client.
Concrete, refer to Fig. 6, Fig. 6 is the structural representation of a kind of download process device that the embodiment of the present invention provides.Described download process application of installation is in server.Described download process device 6 at least can comprise as shown in Figure 6: receiver module 61, first sending module 62, judge module 63 and the second sending module 64, wherein:
Receiver module 61, for receiving the download request that client sends.
Described download request can carry the identification information needing the resource downloaded, and described resource can comprise application program, video or novel etc.
First sending module 62, for described download request is sent to first resource server, and receives the first download address that described first resource server returns according to described download request.
Concrete, when receiver module 61 receives the download request of client transmission, described download request is sent to first resource server by the first sending module 62.
Judge module 63, for judging according to preset download address scan table whether described first download address is effective download address, wherein, described download address scan table is according to download address scan instruction, the download address in described first resource server is carried out to the scanning result of validity scanning acquisition.
Concrete, when the first sending module 62 receives the first download address that first resource server returns, judge module 63 can judge according to preset download address scan table whether described first download address is effective download address, if described first download address is invalid download address, then trigger the second sending module 64.
Optionally, described scanning result can comprise HTML (Hypertext Markup Language) HTTP conditional code, and described judge module 63 specifically may be used for:
Judge whether the HTTP conditional code in the scanning result of described first download address is request success status code, if the HTTP conditional code in described scanning result is not described request success status code, then determines that described first download address is invalid download address.
In the optional execution mode of one, described download address scan table can be according to download address scan instruction, and download address clicking rate in described first resource server being reached to predetermined threshold value and/or other resource of specified class carries out the scanning result that validity scans acquisition.
In the optional execution mode of another kind, described download address scan table is according to download address scan instruction, the download address of all resources in described first resource server is carried out to the scanning result of validity scanning acquisition.
Second sending module 64, if be invalid download address for described first download address, then sends effective download address corresponding to described first download address to described client.
Concrete, described second sending module 64 can comprise as shown in Figure 7 further: judging unit 641, transmitting element 642 and replacement unit 643, wherein:
Judging unit 641, if be invalid download address for described first download address, then judges whether the important level of the resource that described first download address is corresponding reaches predetermined level.
Transmitting element 642, if reach described predetermined level in the important level of resource corresponding to described first download address, then sends effective download address corresponding to described first download address to described client.
Replacement unit 643, if reach described predetermined level for the important level of resource corresponding to described first download address, then replaces described first download address in described first resource server by described effective download address.
Further, described transmitting element 642 can comprise as shown in Figure 8 further: search subelement 6421, process subelement 6422 and send subelement 6423, wherein:
Search subelement 6421, for searching resource bag corresponding to described identification information according to the identification information of resource corresponding to described first download address in Secondary resource server;
Process subelement 6422, for downloading the resource bag that finds and being stored in described first resource server, for the described resource bag be stored in described first resource server generates download address, be designated as the second download address, wherein said second download address comprises title and the sequence number of described resource bag;
Send subelement 6423, for using described second download address as effective download address corresponding to described first download address, and send to described client.
Will be understood that, the function of each functional module of the download process device 6 of the present embodiment can according to the method specific implementation in said method embodiment, can the associated description of concrete corresponding reference diagram 1 ~ Fig. 5 embodiment of the method, repeats no more herein.
In the embodiment shown in fig. 6, first sending module is after getting the first download address corresponding to download request, according to preset download address scan table, judge module judges whether described first download address is effective download address, if described first download address is invalid download address, lower second sending module then sends effective download address corresponding to described first download address to client, whether the mode reported by client compared to existing technology detects download address effective, the embodiment of the present invention can Timeliness coverage process invalid download address, improve download efficiency.
It should be noted that, in the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the embodiment of the present invention is necessary.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Module in embodiment of the present invention device, unit or subelement can carry out merging, divide and deleting according to actual needs.
Module described in the embodiment of the present invention, unit or subelement, universal integrated circuit can be passed through, such as CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, application-specific integrated circuit (ASIC)).
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a download process method, is characterized in that, comprising:
Receive the download request that client sends;
Described download request is sent to first resource server, and receives the first download address that described first resource server returns according to described download request;
Judge whether described first download address is effective download address according to preset download address scan table, wherein, described download address scan table is according to download address scan instruction, the download address in described first resource server is carried out to the scanning result of validity scanning acquisition;
If described first download address is invalid download address, then send effective download address corresponding to described first download address to described client.
2. the method for claim 1, is characterized in that, if described first download address is invalid download address, then sends effective download address corresponding to described first download address to described client, comprising:
If described first download address is invalid download address, then judge whether the important level of the resource that described first download address is corresponding reaches predetermined level;
If the important level of the resource that described first download address is corresponding reaches described predetermined level, then send effective download address corresponding to described first download address to described client, and replace described first download address in described first resource server by described effective download address.
3. method as claimed in claim 2, is characterized in that, institute, to effective download address corresponding to described first download address of described client transmission, comprising:
Identification information according to resource corresponding to described first download address searches resource bag corresponding to described identification information in Secondary resource server;
The resource bag that download finds also is stored in described first resource server, for the described resource bag be stored in described first resource server generates download address, be designated as the second download address, wherein said second download address comprises title and the sequence number of described resource bag;
Using described second download address as effective download address corresponding to described first download address, and send to described client.
4. method as claimed in claim 2, it is characterized in that, described scanning result comprises HTML (Hypertext Markup Language) HTTP conditional code;
Describedly judge whether described first download address is effective download address, comprising according to preset download address scan table:
Judge whether the HTTP conditional code in the scanning result of described first download address is request success status code;
If the HTTP conditional code in described scanning result is not described request success status code, then determine that described first download address is invalid download address.
5. method as claimed in claim 2, it is characterized in that, described download address scan table is according to download address scan instruction, the download address in described first resource server is carried out to the scanning result of validity scanning acquisition, comprising:
Described download address scan table is according to download address scan instruction, and download address clicking rate in described first resource server being reached to predetermined threshold value and/or other resource of specified class carries out the scanning result that validity scans acquisition; Or,
Described download address scan table is according to download address scan instruction, the download address of all resources in described first resource server is carried out to the scanning result of validity scanning acquisition.
6. a download process device, is characterized in that, comprising:
Receiver module, for receiving the download request that client sends;
First sending module, for described download request is sent to first resource server, and receives the first download address that described first resource server returns according to described download request;
Judge module, for judging according to preset download address scan table whether described first download address is effective download address, wherein, described download address scan table is according to download address scan instruction, the download address in described first resource server is carried out to the scanning result of validity scanning acquisition;
Second sending module, if be invalid download address for described first download address, then sends effective download address corresponding to described first download address to described client.
7. device as claimed in claim 6, it is characterized in that, described second sending module comprises:
Judging unit, if be invalid download address for described first download address, then judges whether the important level of the resource that described first download address is corresponding reaches predetermined level;
Transmitting element, if reach described predetermined level for the important level of resource corresponding to described first download address, then sends effective download address corresponding to described first download address to described client;
Replacement unit, if reach described predetermined level for the important level of resource corresponding to described first download address, then replaces described first download address in described first resource server by described effective download address.
8. device as claimed in claim 7, it is characterized in that, described transmitting element comprises:
Search subelement, for searching resource bag corresponding to described identification information according to the identification information of resource corresponding to described first download address in Secondary resource server;
Process subelement, for downloading the resource bag that finds and being stored in described first resource server, for the described resource bag be stored in described first resource server generates download address, be designated as the second download address, wherein said second download address comprises title and the sequence number of described resource bag;
Send subelement, for using described second download address as effective download address corresponding to described first download address, and send to described client.
9. device as claimed in claim 7, it is characterized in that, described scanning result comprises HTML (Hypertext Markup Language) HTTP conditional code;
Described judge module specifically for:
Judge whether the HTTP conditional code in the scanning result of described first download address is request success status code, if the HTTP conditional code in described scanning result is not described request success status code, then determines that described first download address is invalid download address.
10. device as claimed in claim 7, it is characterized in that, described download address scan table is according to download address scan instruction, the download address in described first resource server is carried out to the scanning result of validity scanning acquisition, comprising:
Described download address scan table is according to download address scan instruction, and download address clicking rate in described first resource server being reached to predetermined threshold value and/or other resource of specified class carries out the scanning result that validity scans acquisition; Or,
Described download address scan table is according to download address scan instruction, the download address of all resources in described first resource server is carried out to the scanning result of validity scanning acquisition.
CN201510490723.9A 2015-08-11 2015-08-11 Download processing method and device Pending CN105187505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510490723.9A CN105187505A (en) 2015-08-11 2015-08-11 Download processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510490723.9A CN105187505A (en) 2015-08-11 2015-08-11 Download processing method and device

Publications (1)

Publication Number Publication Date
CN105187505A true CN105187505A (en) 2015-12-23

Family

ID=54909345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510490723.9A Pending CN105187505A (en) 2015-08-11 2015-08-11 Download processing method and device

Country Status (1)

Country Link
CN (1) CN105187505A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106571975A (en) * 2016-10-19 2017-04-19 武汉斗鱼网络科技有限公司 Fault tolerance method of communication data and apparatus thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625701A (en) * 2009-08-12 2010-01-13 中兴通讯股份有限公司 Video sharing method and video sharing system
CN102200980A (en) * 2010-03-25 2011-09-28 北京搜狗科技发展有限公司 Method and system for providing network resources
CN102663062A (en) * 2012-03-30 2012-09-12 奇智软件(北京)有限公司 Method and device for processing invalid links in search result
US20140129675A1 (en) * 2012-01-19 2014-05-08 Tencent Technology (Shenzhen) Company Limited File download method, device and system
CN104036053A (en) * 2014-07-07 2014-09-10 广州金山网络科技有限公司 Invalid link address processing method and device
CN104038549A (en) * 2014-06-18 2014-09-10 广州金山网络科技有限公司 Method, device and terminal for downloading data
CN104598458A (en) * 2013-10-30 2015-05-06 腾讯科技(深圳)有限公司 Page detection method and device
CN104750741A (en) * 2013-12-30 2015-07-01 中国移动通信集团湖南有限公司 Invalid link processing method and invalid link processing device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625701A (en) * 2009-08-12 2010-01-13 中兴通讯股份有限公司 Video sharing method and video sharing system
CN102200980A (en) * 2010-03-25 2011-09-28 北京搜狗科技发展有限公司 Method and system for providing network resources
US20140129675A1 (en) * 2012-01-19 2014-05-08 Tencent Technology (Shenzhen) Company Limited File download method, device and system
CN102663062A (en) * 2012-03-30 2012-09-12 奇智软件(北京)有限公司 Method and device for processing invalid links in search result
CN104598458A (en) * 2013-10-30 2015-05-06 腾讯科技(深圳)有限公司 Page detection method and device
CN104750741A (en) * 2013-12-30 2015-07-01 中国移动通信集团湖南有限公司 Invalid link processing method and invalid link processing device
CN104038549A (en) * 2014-06-18 2014-09-10 广州金山网络科技有限公司 Method, device and terminal for downloading data
CN104036053A (en) * 2014-07-07 2014-09-10 广州金山网络科技有限公司 Invalid link address processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106571975A (en) * 2016-10-19 2017-04-19 武汉斗鱼网络科技有限公司 Fault tolerance method of communication data and apparatus thereof
CN106571975B (en) * 2016-10-19 2020-04-10 武汉斗鱼网络科技有限公司 Fault tolerance method and device for communication data

Similar Documents

Publication Publication Date Title
CN106469044B (en) Method and device for realizing page jump
CN102624920A (en) Method and device for performing access through proxy server
CN102904765B (en) The method and apparatus that data report
CN103944944A (en) Webpage link sharing method and system, and electronic device
US11064052B2 (en) Page insertion method and device
CN103501331A (en) Data transmission method, data transmission equipment and data transmission system
CN109446801B (en) Method, device, server and storage medium for detecting simulator access
CN104219230A (en) Method and device for identifying malicious websites
CN105704177A (en) UA identification method and device
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN104679798A (en) Webpage detection method and device
CN102306184B (en) Method, device and apparatus for obtaining compressed link address information and compressed webpage
CN104462242A (en) Webpage reflow quantity counting method and device
CN103248627A (en) Method, forward proxy server and system for visiting website resources
CN105187505A (en) Download processing method and device
CN108664493B (en) Method and device for counting validity of URL (Uniform resource locator), electronic equipment and storage medium
CN105069038A (en) Webpage operation request processing method and apparatus
CN103501334A (en) Data transmission method, data transmission equipment and network system
CN112749352A (en) Webpage skipping method and device, electronic equipment and readable storage medium
US20200314190A1 (en) De termining that multiple requests are received from a particular user device
CN106803830B (en) Method, device and system for identifying internet access terminal and User Identity Module (UIM) card
CN114253441A (en) Target function starting method and device, storage medium and electronic device
CN110955856B (en) Webpage loading method and device, server and storage medium
CN113014456A (en) Monitoring data transmission system, method, device, equipment and storage medium
JP6374828B2 (en) History information transmitting method, history information transmitting apparatus, and history information transmitting program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151223