Connect public, paid and private patent data with Google Patents Public Datasets

Method and apparatus for transmitting resource

Download PDF

Info

Publication number
CN103618756A
CN103618756A CN 201310413903 CN201310413903A CN103618756A CN 103618756 A CN103618756 A CN 103618756A CN 201310413903 CN201310413903 CN 201310413903 CN 201310413903 A CN201310413903 A CN 201310413903A CN 103618756 A CN103618756 A CN 103618756A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
resource
download
server
method
transmitting
Prior art date
Application number
CN 201310413903
Other languages
Chinese (zh)
Inventor
张俊丰
Original Assignee
天脉聚源(北京)传媒科技有限公司
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

Links

Abstract

The invention discloses a method and an apparatus for transmitting resource. The method for transmitting the resource includes following steps of generating a uniform resource locator according to a network transmission protocol and a domain name of a resource server, accessing the resource server through the generated uniform resource locator to obtain a webpage file containing download information of resource stored in the resource server; analyzing the webpage file to obtain the download information of the resource; and downloading the resource to local according to the acquired download information of the resource. According to the method and the apparatus for transmitting the resource, a webpage file containing download information of resource is obtained, the resource in a resource server is downloaded to local, and automatic download of the resource is achieved.

Description

一种资源传输方法和装置 Method and apparatus for transmitting a resource

技术领域 FIELD

[0001] 本发明涉及通信技术领域,尤其涉及一种资源传输方法和装置。 [0001] The present invention relates to communications technologies, and in particular relates to apparatus and method for transmitting a resource.

背景技术 Background technique

[0002]目前,例如在大型展会中,各个参展商为了吸引游客或宣传自己的产品,需要印制及发放大量的纸质材料,这种发放纸质材料的方式费时费力,且较为盲目,针对性较差。 [0002] Currently, for example, in large-scale exhibition, each exhibitor in order to attract tourists and promote their products, need to be printed and distributed a large amount of paper materials, paper materials such payment way time-consuming, and more blind, for poor. 而游客由于接收到大量的纸质材料,也无法及时进行翻阅,无法找到自己想了解的参展商。 Due to the large number of tourists and receiving paper material, can not be read in a timely manner, can not find the exhibitors they want to know. 这种分发纸质材料的方式无法为参展商和游客提供好的服务。 This way of distributing paper-based materials can not provide good service for exhibitors and visitors.

发明内容 SUMMARY

[0003] 本发明实施例提供一种资源传输方法和装置,用于根据需求从资源服务器下载资源,提高了下载资源的速度和效率。 [0003] The present invention provides a resource transfer method and apparatus for downloading a resource from the resource server on demand, increase the speed and efficiency of downloading resources.

[0004] 本发明实施例提出的一种资源传输方法,包括以下步骤: [0004] A resource transmission method provided by the embodiment of the present invention, comprising the steps of:

[0005] 根据网络传输协议和资源服务器域名生成统一资源定位符; [0005] According to generate a uniform resource locator server resources and network transmission protocol domain;

[0006] 通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的资源的下载信息; [0006] acquiring a Web page document by a uniform resource locator to access a resource server generated; downloading the web page files comprising information resources stored in the resource server;

[0007] 解析所述网页文件,获取资源的下载信息; [0007] parsing the page file, for download information resources;

[0008] 根据获取的资源的下载信息将资源下载到本地。 [0008] According to downloading information available resources will be downloaded to the local resource.

[0009] 本发明实施例通过获取包括有资源的下载信息的网页文件,将资源服务器中的资源下载到本地,实现了资源的自动下载。 Embodiment [0009] The present invention comprises a Web page document by obtaining resource information download to download the resource server to the local resources, the resources to achieve the automatic downloading.

[0010] 作为上述技术方案的优选,所述根据网络传输协议和资源服务器域名生成统一资源定位符,包括:根据网络传输协议、资源服务器域名和用户标识生成统一资源定位符;所述通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的资源的下载信息,包括:通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的具有所述用户标识的资源的下载信息。 [0010] As a preferred aspect of the above, generated according to the transmission protocol and network resource server domain a uniform resource locator, comprising: the network transmission protocol, a user identifier and the domain name server resources generating a uniform resource locator; generated by the uniform resource locator server to obtain access to the resource page file; downloading the web page files comprising information resources stored in the resource server, comprising: acquiring a web page document by a uniform resource locator to access a resource server generated; the web page file comprises storing a user download information resources identified in the resource server. 本方案中所组成的URL中包含用户标识,可以根据该URL获取指定用户上传到资源服务器的资源,能够避免将其他用户的资源也下载下来,节省了下载时间和资源的占用的空间。 The URL for this scenario consisting of include user identity, you can get the specified user to upload the resource server resources according to the URL, users can avoid other resources downloaded, saving the space occupied by the download time and resources.

[0011] 作为上述技术方案的优选,所述根据网络传输协议和资源服务器域名生成统一资源定位符,包括:根据网络传输协议、资源服务器域名、用户名和密码生成统一资源定位符;其中,所述用户名和密码用于访问资源服务器时进行身份验证。 [0011] As a preferred aspect of the above, the uniform resource locator generates transmission protocol according to the network domain and server resources, comprising: the network transport protocol, the resource server domain name, user name and password to generate a uniform resource locator; wherein said user name and password for authentication when accessing the resource server. 本发明实施例中,通过在URL中携带用户名和密码,可以进行资源服务器所需的身份验证,可以避免资源被随意下载。 Embodiments of the present invention, by carrying the username and password in the URL, you can make the required resource server authentication, you can avoid the resource is free to download.

[0012] 作为上述技术方案的优选,根据获取的资源的下载信息将资源下载到本地之后,所述方法还包括:向资源服务器发出删除已下载到本地的资源的指令。 After [0012] As a preferred aspect of the above, according to the available resources of the download information downloaded to the local resources, the method further comprising: issuing a delete downloaded to the local resource to the resource server command. 本方案可节省资源服务器的空间。 The program can save space resources of the server.

[0013] 作为上述技术方案的优选,所述根据网络传输协议和资源服务器域名生成统一资源定位符之前,所述方法还包括:读取配置文件,从所述配置文件中获取所述网络传输协议和资源服务器域名。 Before [0013] As a preferred aspect of the above, the uniform resource locator generates transmission protocol according to the network resource server and the domain name, the method further comprising: reading the configuration file to obtain the network protocol from the configuration file and a resource server domain. 本方案通过读取配置文件获取网络传输协议和资源服务器域名,简便易行。 The program reads the configuration file for the network transport protocols and resource server domain name, easy.

[0014] 本发明实施例还提出一种资源传输装置,包括: [0014] Example embodiments of the present invention also provides a resource transfer apparatus, comprising:

[0015] 生成模块,用于根据网络传输协议和资源服务器域名生成统一资源定位符; [0015] generation module for generating a transmission protocol according to the network resources and the domain name server a uniform resource locator;

[0016] 获取模块,用于通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的资源的下载信息; [0016] obtaining module, configured to obtain a Web page document by a uniform resource locator to access a resource server generated; downloading the web page files comprising information resources stored in the resource server;

[0017] 解析模块,用于解析所述网页文件,获取资源的下载信息; [0017] The parsing module configured to parse the page file for download information for resources;

[0018] 下载模块,用于根据获取的资源的下载信息将资源下载到本地。 [0018] The download module for downloading the acquired information resources downloaded to the local resources.

[0019] 作为上述技术方案的优选,所述生成模块用于根据网络传输协议、资源服务器域名和用户标识生成统一资源定位符; [0019] As a preferred aspect of the above, according to the generating module for network transmission protocol, a user identifier and the domain name server resources generating a uniform resource locator;

[0020] 所述获取模块用于通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的具有所述用户标识的资源的下载信息。 [0020] The acquisition module for acquiring a Web page document by a uniform resource locator to access a resource server generated; comprising storing a user identifier of the resource in the resource information of the server to download the web page file.

[0021] 作为上述技术方案的优选,所述生成模块用于根据网络传输协议、资源服务器域名、用户名、密码生成统一资源定位符;其中,所述用户名、密码用于访问资源服务器时进行身份验证。 [0021] As a preferred embodiment of the above-described technique, the generating module is configured according to the network transport protocol, the resource server domain name, user name, password generating a uniform resource locator; wherein for said user name and password to access the resource server Authentication.

[0022] 作为上述技术方案的优选,所述装置还包括: [0022] As the above-described preferred aspect, the apparatus further comprising:

[0023] 发送模块,用于向资源服务器发出删除已下载到本地的资源的指令。 [0023] sending module, for sending delete downloaded to the local resources of instructions to the resource server.

[0024] 作为上述技术方案的优选,所述装置还包括: [0024] As the above-described preferred aspect, the apparatus further comprising:

[0025] 读取模块,用于读取配置文件,从所述配置文件中获取所述网络传输协议和资源服务器域名。 [0025] The reading module for reading the configuration file, the network transmission protocol and obtaining the resource server domain name from the configuration file.

[0026] 本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。 [0026] Other features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or learned by practice of the present invention. 本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。 The objectives and other advantages of the invention may be realized and attained by the written description, claims, and drawings structure particularly pointed out.

[0027] 下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。 [0027] The following drawings and embodiments, detailed description of the further aspect of the present invention.

附图说明 BRIEF DESCRIPTION

[0028] 附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。 [0028] The accompanying drawings provide a further understanding of the present invention, and constitute part of this specification, the embodiments of the invention, serve to explain the invention, not to limit the present invention. 在附图中: In the drawings:

[0029] 图1为本发明实施例中资源传输方法的主要流程图; [0029] FIG. 1 is mainly a flowchart of a transmission method according to the present embodiment of the invention resource;

[0030] 图2为本发明实施例中资源传输方法的示例的流程图; [0030] FIG 2 is a flowchart of an example method of transmitting a resource in the embodiment of the present invention;

[0031] 图3为本发明实施例中资源传输方法的另一示例的流程图; [0031] FIG 3 a flow diagram of another exemplary embodiment of the method of transmission resources embodiment of the present invention;

[0032] 图4为本发明实施例中资源传输方法的另一示例的流程图; [0032] FIG 4 is a flowchart of another exemplary embodiment of the method of transmission resources embodiment of the present invention;

[0033] 图5为本发明实施例中资源传输方法的另一示例的流程图; [0033] FIG 5 is a flowchart of another exemplary embodiment of the method of transmission resources embodiment of the present invention;

[0034] 图6为本发明实施例中资源传输装置的结构示意图; [0034] FIG. 6 is a schematic structure of the resource transmission apparatus embodiment of the invention;

[0035] 图7为本发明实施例中资源传输装置的一示例的结构示意图。 [0035] FIG. 7 is a schematic structure of an exemplary embodiment of the transmission device resources embodiment of the invention.

具体实施方式 detailed description

[0036] 以下结合附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明。 [0036] Hereinafter, the preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, it should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention and are not intended to limit the present invention.

[0037] 本实施例提供的资源传输方法可以用于在展会上向游客的终端设备提供参展商的资源,可以在中控设备中实现该方法来为游客提供资源。 [0037] The present embodiment resource transmission method provided may be used to provide the exhibition visitors exhibitors resources of the terminal device, may be implemented in the control device, the method to provide resources for visitors. 参展商将所需要在展会共享的资源上传至资源服务器,然后中控设备从资源服务器将需要提供给游客的资源下载下来,以供参加展会的游客的终端设备(比如手机、平板电脑等)从中控设备中获取资源。 Exhibitors will need to upload to the resource server at the show shared resources, then the control equipment from the resource server will need to offer visitors resources downloaded, for participating in the exhibition tourists terminal devices (such as mobile phones, tablets, etc.) from control devices access to resources.

[0038] 下面通过实施例详细说明本发明实施例提出的资源传输方法。 [0038] The following resources proposed transmission method according to the present embodiment of the invention is described in detail by way of examples.

[0039] 如图1所示,本实施例提供的资源传输方法包括以下步骤: Resource transmission method [0039] shown in FIG. 1, the present embodiment is provided comprising the steps of:

[0040] 步骤SlOl:根据网络传输协议和资源服务器域名生成统一资源定位符。 [0040] Step SlOl: generating a uniform resource locator according to the network transport protocol server and domain resources.

[0041] 步骤S102:通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的资源的下载信息。 [0041] the step S102: acquiring a Web page document by a uniform resource locator to access a resource server generated; downloading the web page files comprising information resources stored in the resource server.

[0042] 步骤S103:解析所述网页文件,获取资源的下载信息。 [0042] Step S103: parsing the page file, for download information resources.

[0043] 步骤S104:根据获取的资源的下载信息将资源下载到本地。 [0043] Step S104: According to information obtained by downloading resources will be downloaded to the local resource.

[0044] 本发明实施例通过获取包括有资源的下载信息的网页文件,将资源服务器中的资源下载到本地,实现了资源的自动下载。 Embodiment [0044] The present invention comprises a Web page document by obtaining resource information download to download the resource server to the local resources, the resources to achieve the automatic downloading.

[0045] 在本发明实施例中,其中的网络传输协议和资源服务器域名可通过读取预先设置的配置文件来获取。 [0045] In an embodiment of the present invention, wherein the network transmission protocol and a domain name server resources can be obtained by reading the pre-set profile. 具体地,如图2所示,包括以下步骤: Specifically, as shown in FIG. 2, comprising the steps of:

[0046] 步骤S201:读取配置文件获取网络传输协议和资源服务器域名。 [0046] Step S201: reading the configuration file transfer protocol and obtaining network resource server domain name.

[0047] 其中,网络传输协议包括超文本传输协议(Hypertext transfer protocol,HTTP)和文本传输协议(File Transfer Protocol,FTP)等;资源服务器域名也可以用服务器的网络互联协议地址(IP)地址代替。 [0047] wherein the network transport protocol includes a hypertext transfer protocol (Hypertext transfer protocol, HTTP) and hypertext transfer protocol (File Transfer Protocol, FTP) and the like; resource server domain name may be replaced with a networking protocol address of the server (IP) address .

[0048] 该配置文件可由用户预先配置。 [0048] The user profile may be pre-configured.

[0049] 步骤S202:根据获取的网络传输协议和资源服务器域名,生成统一资源定位符(Uniform Resource Locator, URL)。 [0049] Step S202: The network transport protocol, and acquires the domain name server resource to generate a uniform resource locator (Uniform Resource Locator, URL).

[0050] 例如,可根据以下格式生成URL:网络传输协议://资源服务器域名。 [0050] For example, the URL may be generated according to the following format: network transport protocol: // server resource domain. 例如,配置文件中包含的传输协议是超文本传输协议(Hypertext transfer protocol, http),资源服务器的域名是www.ABC.com,那么组成的URL为http://www.ABC.com。 For example, the transport protocol configuration file contains the Hypertext Transfer Protocol (Hypertext transfer protocol, http), the domain name server's resources are www.ABC.com, then the URL is composed of http://www.ABC.com.

[0051] 步骤S203:通过生成的URL访问资源服务器。 [0051] Step S203: the server through the URL for resources generated.

[0052] 步骤S204:接收资源服务器发送的网页文件,其中,该网页文件中包括存储在资源服务器中的资源的下载信息。 [0052] Step S204: receiving a web page resource file transmitted from the server, wherein the page file comprises downloading information resources stored in the resource server.

[0053] 其中,网页文件包括但不限于:可扩展标记语言(Extensible Markup Language,XML)文件、超文本标记语言(Hypertext Markup Language, HTML)文件等。 [0053] wherein the page files include but are not limited to: an extensible markup language (Extensible Markup Language, XML) file, HTML (Hypertext Markup Language, HTML) files.

[0054] 步骤S205:解析网页文件,获取资源的下载信息。 [0054] Step S205: parsing the page file, for download information resources.

[0055] 优选的,资源的下载信息包括资源的下载地址、资源的名称、资源的目标文件夹名称等。 [0055] Preferably, to download information resources including downloads address, name of the resource, the target resource file folder names and other resources.

[0056] 步骤S206:根据获取的资源的下载信息将资源下载到本地。 [0056] Step S206: According to information obtained by downloading resources will be downloaded to the local resource.

[0057] 优选的,将资源下载到本地时,可以将资源存储到指定的存储目录。 When [0057] Preferably, downloaded to the local resources, the resources can be stored in the designated storage directory.

[0058] 上述方法的整个过程,每隔预设时间就重复一次。 The whole process [0058] The above method is repeated once every predetermined time.

[0059] 本实施例所提供的资源传输的方法,通过读取配置文件获取网络传输协议和资源服务器域名,简便易行。 Method [0059] The present embodiment is provided a transmission resource embodiment, access network transmission protocol and domain name server resource by reading a configuration file, simple. [0060] 在本发明实施例中,还可以根据网络传输协议、资源服务器域名和用户标识生成统一资源定位符,具体流程如图3所示,包括以下步骤: [0060] In an embodiment of the present invention may also be in accordance with network transmission protocol, a user identifier and the domain name server resource to generate a uniform resource locator, the specific procedure shown in Figure 3, comprising the steps of:

[0061] 步骤S301:读取配置文件,获取配置文件中的网络传输协议、资源服务器域名和用户标识。 [0061] Step S301: reading the configuration file, the configuration file acquired network transmission protocol, a user identifier and the domain name server resources.

[0062] 其中,用户标识是用于表示资源的上传者的唯一标识,例如为上传资源的终端的MAC (Media Access Control,介质访问控制)地址。 [0062] wherein the user identifier is used to indicate the resource that uniquely identifies uploader, for example, the terminal uploading resource MAC (Media Access Control, media access control) address.

[0063] 步骤S302:根据网络传输协议、资源服务器域名和用户标识生成URL。 [0063] Step S302: The network transport protocol, the domain name server resources and user identification generated URL.

[0064] 例如,根据网络传输协议、资源服务器域名和用户标识按照以下格式生成URL:网络传输协议://资源服务器域名/用户标识。 [0064] For example, according to the network transport protocol, the domain name server resources and user IDs generates a URL in the following format: network transport protocol: // domain name server resource / user ID.

[0065] 步骤S303:通过生成的URL访问资源服务器。 [0065] Step S303: the server through the URL for resources generated.

[0066] 获取资源服务器中的包含资源下载地址的网页文件。 [0066] acquires the Web page file contains resource Download resource server.

[0067] 步骤S304:接收资源服务器发送的网页文件,其中,该网页文件中包括存储在资源服务器中的具有所述用户标识的资源的下载信息。 [0067] Step S304: receiving a web page resource file transmitted from the server, wherein the Web page document includes storing a user to download the information resources identified in the resource server.

[0068] 步骤S305:解析网页文件,获取资源的下载信息。 [0068] Step S305: parsing the page file, for download information resources.

[0069] 步骤S306:根据获取的资源的下载信息将资源下载到本地。 [0069] Step S306: According to information obtained by downloading resources will be downloaded to the local resource.

[0070] 本实施例中所组成的URL中包含用户标识,可以根据该URL获取指定用户上传到资源服务器的资源,能够避免将其他用户的资源也下载下来,节省了下载时间和资源的占用的空间。 [0070] URL embodiments consisting of the present embodiment contains a user identifier, may acquire the specified user upload resource server resources according to the URL, it is possible to prevent other users of resources downloaded, saving occupied download time and resources space. 例如,当展会有三天,而每天具有不同的参展商时,无须把所有参展商共享的资源下载到本地,而仅把当天参加展览的参展商的共享的资源下载到本地,使用用户标识即可以实现该功能。 For example, when the exhibition for three days, and have a different day, exhibitors, without all the exhibitors shared resources downloaded to the local, but only the day to participate in the exhibition share of exhibitors resources downloaded to the local, using the user ID that is possible implement this function.

[0071] 在本发明实施例中,还可以根据网络传输协议、资源服务器域名、用户名和密码生成统一资源定位符,如图4所示,包括下列步骤: [0071] In an embodiment of the present invention may also be transmitted according to the network protocol resource server domain name, the user name and password to generate a uniform resource locator, shown in Figure 4, comprising the steps of:

[0072] 步骤S401:读取配置文件,获取配置文件中的网络传输协议、资源服务器域名、用户名和密码。 [0072] Step S401: reads the configuration file, the configuration file to obtain network transport protocol resource server domain name, user name and password.

[0073] 步骤S402:根据网络传输协议、资源服务器域名、用户名和密码生成URL。 [0073] Step S402: according to the network transport protocol resource server domain name, user name and password generated URL.

[0074] 例如,根据以下格式生成URL:网络传输协议://资源服务器域名/用户名/密码。 [0074] For example, a URL is generated according to the following format: network transport protocol: // server resource domain / username / password.

[0075] 步骤S403:通过生成的URL访问资源服务器。 [0075] Step S403: the server through the URL for resources generated.

[0076] 步骤S404:接收资源服务器返回的验证信息,若验证成功,执行步骤405,若验证失败,则结束。 [0076] Step S404: receiving authentication information resource returned by the server, if the verification is successful, proceed to step 405, if the validation fails, the end.

[0077] 步骤S405:接收资源服务器发送的网页文件,其中,该网页文件中包括存储在资源服务器中的资源的下载信息。 [0077] Step S405: receiving a web page resource file transmitted from the server, wherein the page file comprises downloading information resources stored in the resource server.

[0078] 步骤S406:解析网页文件,获取资源的下载信息。 [0078] Step S406: parsing the page file, for download information resources.

[0079] 步骤S407:根据获取的资源的下载信息将资源下载到本地。 [0079] Step S407: According to information obtained by downloading resources will be downloaded to the local resource.

[0080] 本发明实施例中,通过在URL中携带用户名和密码,可以进行资源服务器所需的身份验证,可以避免资源服务器中的资源被随意下载。 [0080] The embodiments of the present invention, by carrying the user name and password in the URL, the server may be required to authenticate to the resource, the resource can be avoided in the server resources are free to download.

[0081] 本发明实施例中,还可以在资源下载完成后,将资源服务器中的资源删除,以节省资源服务器的空间,如图5所示,具体包括以下步骤: [0081] Example embodiments of the present invention may also be downloaded after completion of the resource, the resource server resources deleted to save space resource server, shown in Figure 5, includes the following steps:

[0082] 步骤S501:读取配置文件获取网络传输协议和资源服务器域名。 [0082] Step S501: reading the configuration file transfer protocol and obtaining network resource server domain name.

[0083] 步骤S502:根据获取的网络传输协议和资源服务器域名,生成统一资源定位符。 [0083] Step S502: The network transport protocol, and acquires the domain name server resource to generate a uniform resource locator. [0084] 步骤S503:通过生成的URL访问资源服务器。 [0084] Step S503: the server through the URL for resources generated.

[0085] 步骤S504:接收资源服务器发送的网页文件,其中,该网页文件中包括存储在资源服务器中的资源的下载信息。 [0085] Step S504: receiving a web page resource file transmitted from the server, wherein the page file comprises downloading information resources stored in the resource server.

[0086] 步骤S505:解析网页文件,获取资源的下载信息。 [0086] Step S505: parsing the page file, for download information resources.

[0087] 步骤S506:根据获取的资源的下载信息将资源下载到本地。 [0087] Step S506: According to information obtained by downloading resources will be downloaded to the local resource.

[0088] 步骤S507:向资源服务器发出删除已下载到本地的资源的指令。 [0088] Step S507: Delete issue has been downloaded to the local resources of instructions to the resource server.

[0089] 本实施例提供的资源传输方法,在资源下载完成过后,将资源服务器中的该已下载资源删除,可以节省资源服务器的空间。 [0089] The resources of the transmission method according to embodiments, after the completion of downloading the resource, the resource server has been deleted Resources, space can be saved resources of the server.

[0090] 相应地,如图6所示,本发明实施例还提出一种资源传输装置,包括: [0090] Accordingly, as shown in Figure 6, embodiments of the present invention also provides a resource transfer apparatus, comprising:

[0091] 生成模块601,用于根据网络传输协议和资源服务器域名生成统一资源定位符; [0091] The generating module 601 for generating a uniform resource locator according to the network resource server and transmission protocol domain;

[0092] 获取模块602,用于通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的资源的下载信息; [0092] The obtaining module 602, configured to obtain a Web page document by a uniform resource locator to access a resource server generated; downloading the web page files comprising information resources stored in the resource server;

[0093] 解析模块603,用于解析所述网页文件,获取资源的下载信息; [0093] The parsing module 603, configured to parse the page file for download information for resources;

[0094] 下载模块604,用于根据获取的资源的下载信息将资源下载到本地。 [0094] The download module 604, to a local resource for downloading the download information in accordance with the available resources.

[0095] 优选的,所述生成模块601用于根据网络传输协议、资源服务器域名和用户标识生成统一资源定位符; [0095] Preferably, the generating module 601 according to the network transmission protocol, a user identifier and the domain name server resources generating a uniform resource locator;

[0096] 所述获取模块602用于通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的具有所述用户标识的资源的下载信息。 [0096] The web page obtaining module 602 is configured to obtain a uniform resource locator files generated by the server to access the resource; includes storing the web page file having the user download information resources identified in the resource server.

[0097] 优选的,生成模块601用于根据网络传输协议、资源服务器域名、用户名和密码生成统一资源定位符;其中,所述用户名、密码用于访问资源服务器时进行身份验证。 [0097] Preferably, the generating module 601 according to the network transport protocol, the resource server domain name, user name and password to generate a uniform resource locator; wherein, the user name and password for authentication to access the resource server.

[0098] 优选的,如图7所示,所述装置还包括: [0098] Preferably, as shown in FIG. 7, the apparatus further comprising:

[0099] 发送模块605,用于向资源服务器发出删除已下载到本地的资源的指令。 [0099] sending module 605 for sending delete downloaded to the local resources of instructions to the resource server.

[0100] 优选的,如图7所示,所述装置还包括: [0100] Preferably, as shown in FIG. 7, the apparatus further comprising:

[0101] 读取模块606,用于读取配置文件,从所述配置文件中获取所述网络传输协议和资源服务器域名。 [0101] read module 606 for reading the configuration file, the network transmission protocol and obtaining the resource server domain name from the configuration file.

[0102] 本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。 [0102] skilled in the art should understand that the embodiments of the present invention may provide a method, system, or computer program product. 因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。 Thus, embodiments of the present invention may be employed entirely hardware embodiment, an entirely software embodiment, or an embodiment in conjunction with the form of software and hardware aspects. 而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。 Further, in the present invention may comprise one or more of which computer usable storage medium having computer-usable program code (including but not limited to disk storage, and optical storage) in the form of a computer program product implemented on.

[0103] 本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。 [0103] The present invention has been described in accordance with the method of Example of the present invention, apparatus (systems) and computer program products flowchart and / or block diagrams described. 应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。 It should be understood and implemented by computer program instructions and block, and the flowchart / or block diagrams each process and / or flowchart illustrations and / or block diagrams of processes and / or blocks. 可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。 These computer program instructions may be provided to a processor a general purpose computer, special purpose computer, embedded processor or other programmable data processing apparatus to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing apparatus generating in a device for implementing the flow chart or more flows and / or block diagram block or blocks in a specified functions.

[0104] 这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。 [0104] These computer program instructions may also be stored in a computer can direct a computer or other programmable data processing apparatus to function in a particular manner readable memory produce an article of manufacture such that the storage instruction means comprises a memory in the computer-readable instructions the instruction means implemented in a flowchart or more flows and / or block diagram block or blocks in a specified function.

[0105] 这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。 [0105] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps on the computer or other programmable apparatus to produce a computer implemented so that the computer or other programmable apparatus execute instructions to provide processes for implementing a process or flows and / or block diagram block or blocks a function specified step.

[0106] 显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。 [0106] Obviously, those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. 这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 Thus, if these modifications and variations of the present invention fall within the claims of the invention and the scope of equivalents thereof, the present invention intends to include these modifications and variations.

Claims (10)

1.一种资源传输方法,其特征在于,包括以下步骤: 根据网络传输协议和资源服务器域名生成统一资源定位符; 通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的资源的下载信息; 解析所述网页文件,获取资源的下载信息; 根据获取的资源的下载信息将资源下载到本地。 A resource transmission method comprising the steps of: generating a uniform resource locator according to the network resource server and transmission protocol domain; web document acquired by a uniform resource locator to access a resource server generated; the web page file comprises download information resources stored in the resource server; parsing the page documents, access to the resource download information; download information according to the acquired resource downloaded to the local resources.
2.根据权利要求1所述的方法,其特征在于,所述根据网络传输协议和资源服务器域名生成统一资源定位符,包括:根据网络传输协议、资源服务器域名和用户标识生成统一资源定位符; 所述通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的资源的下载信息,包括: 通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的具有所述用户标识的资源的下载信息。 2. The method according to claim 1, wherein said generating a uniform resource locator according to the network transport protocol and domain name server resources, comprising: the network transmission protocol, a user identifier and the domain name server resources generating a uniform resource locator; the web page file by obtaining a uniform resource locator to access a resource server generated; the web page file includes a resource stored in the resource information download server, comprising: acquiring a web page document by a uniform resource locator to access a resource server generated; the said web including a storage file having the user download information resources identified in the resource server.
3.根据权利要求1所述的方法,其特征在于,所述根据网络传输协议和资源服务器域名生成统一资源定位符,包括:根据网络传输协议、资源服务器域名、用户名和密码生成统一资源定位符;其中,所述用户名和密码用于访问资源服务器时进行身份验证。 3. The method according to claim 1, wherein said generating a uniform resource locator according to the network transport protocol and domain name server resources, comprising: the network transport protocol, the resource server domain name, user name and password to generate a uniform resource locator ; which, for authentication for access to the resource server user name and password.
4.根据权利要求1所述的方法,其特征在于,根据获取的资源的下载信息将资源下载到本地之后,所述方法还包括:向资源服务器发出删除已下载到本地的资源的指令。 After 4. The method according to claim 1, wherein the Resources to download information according to local available resources, the method further comprising: issuing a delete downloaded to the local resource to the resource server command.
5.根据权利要求1所述的方法,其特征在于,所述根据网络传输协议和资源服务器域名生成统一资源定位符之前,所述方法还包括: 读取配置文件,从所述配置文件中获取所述网络传输协议和资源服务器域名。 The method according to claim 1, wherein, prior to said generating a uniform resource locator according to the network transport protocol and domain name server resources, the method further comprising: reading the configuration file, the configuration file obtained from the network resource server transfer protocol and domain name.
6.一种资源传输装置,其特征在于,包括: 生成模块,用于根据网络传输协议和资源服务器域名生成统一资源定位符; 获取模块,用于通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的资源的下载信息; 解析模块,用于解析所述网页文件,获取资源的下载信息; 下载模块,用于根据获取的资源的下载信息将资源下载到本地。 A resource transmission apparatus, characterized by comprising: a generating module for generating a uniform resource locator according to the network resource server and transmission protocol domain; acquiring module, for acquiring a Web page by a uniform resource locator to access a resource server-generated file; the web page file includes a resource stored in the resource information download server; parsing module configured to parse the page file for download information for resources; downloading module configured to download information of the resource available resources downloaded to the local.
7.根据权利要求6所述的装置,其特征在于,所述生成模块用于根据网络传输协议、资源服务器域名和用户标识生成统一资源定位符; 所述获取模块用于通过生成的统一资源定位符访问资源服务器获取网页文件;所述网页文件中包括存储在资源服务器中的具有所述用户标识的资源的下载信息。 7. The device according to claim 6, wherein the generating module is configured according to the network transmission protocol, a user identifier and the domain name server resources generating a uniform resource locator; by the acquisition module for generating a uniform resource location access the resource server retrieves character page file; includes storing the web page file having the user download information resources identified in the resource server.
8.根据权利要求6所述的装置,其特征在于,所述生成模块用于根据网络传输协议、资源服务器域名、用户名、密码生成统一资源定位符;其中,所述用户名、密码用于访问资源服务器时进行身份验证。 8. The apparatus according to claim 6, wherein the generating module is configured according to the network transport protocol, the resource server domain name, user name, password generating a uniform resource locator; wherein, the user name and password for for authentication when accessing the resource server.
9.根据权利要求6所述的装置,其特征在于,所述装置还包括: 发送模块,用于向资源服务器发出删除已下载到本地的资源的指令。 9. The apparatus according to claim 6, characterized in that said apparatus further comprises: a sending module, for sending delete downloaded to the local resource to the resource server command.
10.根据权利要求6所述的装置,其特征在于,所述装置还包括: 读取模块,用于读取配置文件,从所述配置文件中获取所述网络传输协议和资源服务器域名。 10. The apparatus according to claim 6, characterized in that said apparatus further comprises: reading means for reading the configuration file, the network transmission protocol and obtaining the resource server domain name from the configuration file.
CN 201310413903 2013-09-12 2013-09-12 Method and apparatus for transmitting resource CN103618756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310413903 CN103618756A (en) 2013-09-12 2013-09-12 Method and apparatus for transmitting resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310413903 CN103618756A (en) 2013-09-12 2013-09-12 Method and apparatus for transmitting resource

Publications (1)

Publication Number Publication Date
CN103618756A true true CN103618756A (en) 2014-03-05

Family

ID=50169460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310413903 CN103618756A (en) 2013-09-12 2013-09-12 Method and apparatus for transmitting resource

Country Status (1)

Country Link
CN (1) CN103618756A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645905A (en) * 2009-08-31 2010-02-10 深圳市茁壮网络股份有限公司 Data downloading method and data uploading method and browser
CN102073667A (en) * 2009-11-23 2011-05-25 鸿富锦精密工业(深圳)有限公司 Method for browsing web albums in electronic device
US20120059708A1 (en) * 2010-08-27 2012-03-08 Adchemy, Inc. Mapping Advertiser Intents to Keywords
CN102446051A (en) * 2010-10-11 2012-05-09 英业达股份有限公司 Webpage display adjustment system and display adjustment method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645905A (en) * 2009-08-31 2010-02-10 深圳市茁壮网络股份有限公司 Data downloading method and data uploading method and browser
CN102073667A (en) * 2009-11-23 2011-05-25 鸿富锦精密工业(深圳)有限公司 Method for browsing web albums in electronic device
US20120059708A1 (en) * 2010-08-27 2012-03-08 Adchemy, Inc. Mapping Advertiser Intents to Keywords
CN102446051A (en) * 2010-10-11 2012-05-09 英业达股份有限公司 Webpage display adjustment system and display adjustment method thereof

Similar Documents

Publication Publication Date Title
US20140047322A1 (en) Method and system for browsing things of internet of things on ip using web platform
CN103095852A (en) Cloud storage file sharing method based on two-dimensional code
CN101854399A (en) Method and device for aggregating network data
US20120192263A1 (en) Access gateway and method for providing cloud storage service
CN101420325A (en) Automatic deployment method, apparatus and system for software package
CN101296201A (en) Network information sharing method, system and instant communication device
CN102480550A (en) Mobile terminal, download system and download information acquisition method
CN103593434A (en) Application recommendation method and device and server equipment
CN101163156A (en) Method, client terminal and system of obtaining network resource
CN103795571A (en) Binding method and device between equipment
US20150222616A1 (en) Private cloud connected device cluster architecture
CN103259802A (en) Media file downloading method, device and client device
US20150334182A1 (en) System, Method and Browser Client for Enabling Browser Data Synchronization
JP2009089003A (en) Communication system, base station device, and terminal device
JP2007140975A (en) Service providing system, linkage information providing server, authentication server, service providing server, service providing method and program
CN102811261A (en) Information transmission method, device, system, terminal and server
JP2009205197A (en) Cgm distribution system and cgm distribution method
CN102819614A (en) Method, device and system for classified displaying of shared catalogues in local area network
CN102694861A (en) Cloud technology based method, cloud technology based device and cloud technology based system for classification of terminal application software
US20160100035A1 (en) Personal handheld web server and storage device
US20140019957A1 (en) Method, apparatus, and system for sharing software among terminals
US20160044122A1 (en) Device pairing for content sharing
CN101626339A (en) Method and system for downloading network data
CN103108051A (en) Synchronous file sharing method from cloud server
CN103605798A (en) Method for directly operating file stored at cloud end

Legal Events

Date Code Title Description
C10 Entry into substantive examination
RJ01