A method and system for downloading resources
A resource downloading and resource technology, applied in the field of communication, can solve the problems of unable to perform P2SP accelerated download, unable to query the hash of the full text, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] figure 1 A flowchart showing the implementation of the resource downloading method provided by Embodiment 1 of the present invention is described in detail as follows:
[0037] In S101, a download link URL of a download resource is obtained, and the hash server is inquired whether the full-text hash of the resource file corresponding to the URL is stored.
[0038] In the embodiment of the present invention, if the full-text hash of the resource file corresponding to the URL is stored in the hash server, the P2SP download is performed according to the full-text hash of the resource file corresponding to the URL.
[0039] In S102, if the hash server does not store the full-text hash of the resource file corresponding to the URL, download the header data of the resource file through the source server, and calculate the header hash of the resource file.
[0040] In this embodiment, the header hash of the resource file is calculated according to the header data of the resou...
Embodiment 2
[0045] figure 2 A flow chart showing the implementation of the resource downloading method provided by Embodiment 2 of the present invention is shown, and the method is described in detail as follows:
[0046] In step S201, obtain a download link URL of the download resource, inquire whether the hash server stores the full-text hash of the resource file corresponding to the URL, and if inquire the hash server stores the full-text hash of the resource file corresponding to the URL, Step S202 is executed, and if the hash server does not store the full-text hash of the resource file corresponding to the URL, step S203 is executed.
[0047] In step S202, P2SP download is performed according to the full-text hash of the resource file corresponding to the URL.
[0048] In this embodiment, according to the full-text hash of the resource file corresponding to the header hash, the process of performing P2SP downloading is specifically: according to the full-text hash of the resource ...
Embodiment 3
[0057] image 3 A flow chart showing the implementation of the resource downloading method provided by Embodiment 3 of the present invention is shown, and the method is described in detail as follows:
[0058] In S301, a download link URL of a download resource is obtained, and the hash server is inquired whether the full-text hash of the resource file corresponding to the URL is stored.
[0059] In S302, if the full-text hash of the resource file corresponding to the URL is not stored in the hash server, obtain the length of the resource file, download the header data of the resource file through the source server, and calculate the hash of the resource file. header hash.
[0060] In S303, different download strategies are adopted according to whether the hash server stores the full-text hash of the resource file corresponding to the header hash and the resource file length.
[0061] In this embodiment, for different resource files, there may be the same header file. At thi...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com