CN103618756A - Method and apparatus for transmitting resource - Google Patents

Method and apparatus for transmitting resource Download PDF

Info

Publication number
CN103618756A
CN103618756A CN201310413903.8A CN201310413903A CN103618756A CN 103618756 A CN103618756 A CN 103618756A CN 201310413903 A CN201310413903 A CN 201310413903A CN 103618756 A CN103618756 A CN 103618756A
Authority
CN
China
Prior art keywords
resource
server
url
web page
domain name
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
CN201310413903.8A
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.)
TVMining Beijing Media Technology Co Ltd
Original Assignee
TVMining Beijing Media Technology 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 TVMining Beijing Media Technology Co Ltd filed Critical TVMining Beijing Media Technology Co Ltd
Priority to CN201310413903.8A priority Critical patent/CN103618756A/en
Publication of CN103618756A publication Critical patent/CN103618756A/en
Pending legal-status Critical Current

Links

Images

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

A kind of resource transmission method and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of resource transmission method and device.
Background technology
At present, for example, in Large Exhibitions, each exhibiter, in order to attract tourists or to publicize oneself product, needs print and provide a large amount of paper materials, and the mode of this granting paper material wastes time and energy, and comparatively blindly, specific aim is poor.And visitor is owing to receiving a large amount of paper materials, also cannot browse in time, cannot find the exhibiter who oneself thinks understanding.The service that the mode of this distribution paper material cannot provide for exhibiter and visitor.
Summary of the invention
The embodiment of the present invention provides a kind of resource transmission method and device, for according to demand, from Resource Server downloaded resources, has improved speed and the efficiency of downloaded resources.
A kind of resource transmission method that the embodiment of the present invention proposes, comprises the following steps:
According to the network transmission protocol and Resource Server domain name, generate URL(uniform resource locator);
By the URL(uniform resource locator) access resources server generating, obtain web page files; Described web page files comprises the Download Info that is stored in the resource in Resource Server;
Resolve described web page files, the Download Info of Gains resources;
According to the Download Info of the resource of obtaining, resource downloading is arrived local.
The embodiment of the present invention, by obtaining the web page files of the Download Info that includes resource, to local, has realized the automatic download of resource by the resource downloading in Resource Server.
As technique scheme preferably, describedly according to the network transmission protocol and Resource Server domain name, generate URL(uniform resource locator), comprising: according to the network transmission protocol, Resource Server domain name and user ID, generate URL(uniform resource locator); The described URL(uniform resource locator) access resources server by generation obtains web page files; Described web page files comprises the Download Info that is stored in the resource in Resource Server, comprising: by the URL(uniform resource locator) access resources server generating, obtain web page files; Described web page files comprises the Download Info that is stored in the resource with described user ID in Resource Server.In the URL forming in this programme, comprise user ID, can obtain the resource that designated user uploads to Resource Server according to this URL, can avoid other users' resource also to download, saved the space taking of download time and resource.
As technique scheme preferably, describedly according to the network transmission protocol and Resource Server domain name, generate URL(uniform resource locator), comprising: according to the network transmission protocol, Resource Server domain name, username and password, generate URL(uniform resource locator); When wherein, described username and password is for access resources server, carry out authentication.In the embodiment of the present invention, by carry username and password in URL, can carry out the required authentication of Resource Server, can avoid resource arbitrarily to be downloaded.
As technique scheme preferably, according to the Download Info of the resource of obtaining by resource downloading after this locality, described method also comprises: to Resource Server, send the instruction that deletion has downloaded to local resource.This programme can saving resource server space.
As technique scheme preferably, described according to before the network transmission protocol and Resource Server domain name generation URL(uniform resource locator), described method also comprises: read configuration file, obtain the described network transmission protocol and Resource Server domain name from described configuration file.This programme obtains the network transmission protocol and Resource Server domain name by reading configuration file, simple and easy to do.
The embodiment of the present invention also proposes a kind of resource transmission device, comprising:
Generation module, for generating URL(uniform resource locator) according to the network transmission protocol and Resource Server domain name;
Acquisition module, obtains web page files for the URL(uniform resource locator) access resources server by generating; Described web page files comprises the Download Info that is stored in the resource in Resource Server;
Parsing module, for resolving described web page files, the Download Info of Gains resources;
Download module, for arriving resource downloading local according to the Download Info of the resource of obtaining.
As technique scheme preferably, described generation module is for generating URL(uniform resource locator) according to the network transmission protocol, Resource Server domain name and user ID;
Described acquisition module obtains web page files for the URL(uniform resource locator) access resources server by generating; Described web page files comprises the Download Info that is stored in the resource with described user ID in Resource Server.
As technique scheme preferably, described generation module is for generating URL(uniform resource locator) according to the network transmission protocol, Resource Server domain name, user name, password; When wherein, described user name, password are for access resources server, carry out authentication.
As technique scheme preferably, described device also comprises:
Sending module, for sending the instruction that deletion has downloaded to local resource to Resource Server.
As technique scheme preferably, described device also comprises:
Read module for reading configuration file, obtains the described network transmission protocol and Resource Server domain name from described configuration file.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in the specification write, claims and accompanying drawing.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, for explaining the present invention, is not construed as limiting the invention together with embodiments of the present invention.In the accompanying drawings:
Fig. 1 is the main flow chart of resource transmission method in the embodiment of the present invention;
Fig. 2 is the flow chart of the example of resource transmission method in the embodiment of the present invention;
Fig. 3 is the flow chart of another example of resource transmission method in the embodiment of the present invention;
Fig. 4 is the flow chart of another example of resource transmission method in the embodiment of the present invention;
Fig. 5 is the flow chart of another example of resource transmission method in the embodiment of the present invention;
Fig. 6 is the structural representation of resource transmission device in the embodiment of the present invention;
Fig. 7 is the structural representation of an example of resource transmission device in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein, only for description and interpretation the present invention, is not intended to limit the present invention.
The resource transmission method that the present embodiment provides can be for providing exhibiter's resource in exhibition to visitor's terminal equipment, can in control device, realize the method and provide resource for visitor.Exhibiter is uploaded to Resource Server by required in the shared resource of exhibition, then the resource downloading that control device need to offer visitor from Resource Server is got off, for terminal equipment (such as mobile phone, panel computer etc.) Gains resources from control device of participating in the visitor of exhibition.
Below by embodiment, describe the resource transmission method that the embodiment of the present invention proposes in detail.
As shown in Figure 1, the resource transmission method that the present embodiment provides comprises the following steps:
Step S101: generate URL(uniform resource locator) according to the network transmission protocol and Resource Server domain name.
Step S102: obtain web page files by the URL(uniform resource locator) access resources server generating; Described web page files comprises the Download Info that is stored in the resource in Resource Server.
Step S103: resolve described web page files, the Download Info of Gains resources.
Step S104: resource downloading is arrived local according to the Download Info of the resource of obtaining.
The embodiment of the present invention, by obtaining the web page files of the Download Info that includes resource, to local, has realized the automatic download of resource by the resource downloading in Resource Server.
In embodiments of the present invention, the network transmission protocol and Resource Server domain name wherein can be obtained by reading the configuration file setting in advance.Particularly, as shown in Figure 2, comprise the following steps:
Step S201: read configuration file and obtain the network transmission protocol and Resource Server domain name.
Wherein, the network transmission protocol comprises HTML (Hypertext Markup Language) (Hypertext transfer protocol, HTTP) and text transfer protocol (File Transfer Protocol, FTP) etc.; Resource Server domain name also can replace with network interconnection protocol address (IP) address of server.
This configuration file can be pre-configured by user.
Step S202: according to the network transmission protocol of obtaining and Resource Server domain name, generate URL(uniform resource locator) (Uniform Resource Locator, URL).
For example, can generate URL according to following form: the network transmission protocol: // Resource Server domain name.For example, the host-host protocol comprising in configuration file is HTML (Hypertext Markup Language) (Hypertext transfer protocol, http), and the domain name of Resource Server is www.ABC.com, and the URL forming is so http://www.ABC.com.
Step S203: by the URL access resources server generating.
Step S204: receive the web page files that Resource Server sends, wherein, this web page files comprises the Download Info that is stored in the resource in Resource Server.
Wherein, web page files includes but not limited to: extend markup language (Extensible Markup Language, XML) file, HTML (Hypertext Markup Language, HTML) file etc.
Step S205: analyzing web page file, the Download Info of Gains resources.
Preferably, the Download Info of resource comprises the download address of resource, the destination folder title of the title of resource, resource etc.
Step S206: resource downloading is arrived local according to the Download Info of the resource of obtaining.
Preferably, when resource downloading is arrived to this locality, resource can be stored into the storage directory of appointment.
The whole process of said method, just repeats once every Preset Time.
The method of the resource transmission that the present embodiment provides, obtains the network transmission protocol and Resource Server domain name by reading configuration file, simple and easy to do.
In embodiments of the present invention, can also generate URL(uniform resource locator) according to the network transmission protocol, Resource Server domain name and user ID, idiographic flow as shown in Figure 3, comprises the following steps:
Step S301: read configuration file, obtain the network transmission protocol, Resource Server domain name and user ID in configuration file.
Wherein, user ID is for representing the unique identification of the uploader of resource, for example, be the MAC(Media Access Control of the terminal of resource uploading, medium access control) address.
Step S302: generate URL according to the network transmission protocol, Resource Server domain name and user ID.
For example, according to the network transmission protocol, Resource Server domain name and user ID, according to following form, generate URL: the network transmission protocol: // Resource Server domain name/user ID.
Step S303: by the URL access resources server generating.
The web page files that comprises resource downloading address in Gains resources server.
Step S304: receive the web page files that Resource Server sends, wherein, this web page files comprises the Download Info that is stored in the resource with described user ID in Resource Server.
Step S305: analyzing web page file, the Download Info of Gains resources.
Step S306: resource downloading is arrived local according to the Download Info of the resource of obtaining.
In the URL forming in the present embodiment, comprise user ID, can obtain the resource that designated user uploads to Resource Server according to this URL, can avoid other users' resource also to download, saved the space taking of download time and resource.For example, when exhibition has three days, and while thering is different exhibiters every day, need not be the shared resource downloading of all exhibiters to local, and only exhibiter's the shared resource downloading of participating in exhibition the same day to local, user's sign can realize this function.
In embodiments of the present invention, can also generate URL(uniform resource locator) according to the network transmission protocol, Resource Server domain name, username and password, as shown in Figure 4, comprise the following steps:
Step S401: read configuration file, obtain the network transmission protocol, Resource Server domain name, username and password in configuration file.
Step S402: generate URL according to the network transmission protocol, Resource Server domain name, username and password.
For example, according to following form, generate URL: the network transmission protocol: // Resource Server domain name/usemame/password.
Step S403: by the URL access resources server generating.
Step S404: receive the authorization information that Resource Server returns, if be proved to be successful, perform step 405, if authentication failed finishes.
Step S405: receive the web page files that Resource Server sends, wherein, this web page files comprises the Download Info that is stored in the resource in Resource Server.
Step S406: analyzing web page file, the Download Info of Gains resources.
Step S407: resource downloading is arrived local according to the Download Info of the resource of obtaining.
In the embodiment of the present invention, by carry username and password in URL, can carry out the required authentication of Resource Server, can avoid the resource in Resource Server arbitrarily to be downloaded.
In the embodiment of the present invention, can also after resource downloading completes, the resource in Resource Server be deleted, with the space of saving resource server, as shown in Figure 5, specifically comprises the following steps:
Step S501: read configuration file and obtain the network transmission protocol and Resource Server domain name.
Step S502: according to the network transmission protocol of obtaining and Resource Server domain name, generate URL(uniform resource locator).
Step S503: by the URL access resources server generating.
Step S504: receive the web page files that Resource Server sends, wherein, this web page files comprises the Download Info that is stored in the resource in Resource Server.
Step S505: analyzing web page file, the Download Info of Gains resources.
Step S506: resource downloading is arrived local according to the Download Info of the resource of obtaining.
Step S507: send the instruction that deletion has downloaded to local resource to Resource Server.
The resource transmission method that the present embodiment provides, after resource downloading completes, by Resource Server this downloaded resources delete, space that can saving resource server.
Correspondingly, as shown in Figure 6, the embodiment of the present invention also proposes a kind of resource transmission device, comprising:
Generation module 601, for generating URL(uniform resource locator) according to the network transmission protocol and Resource Server domain name;
Acquisition module 602, obtains web page files for the URL(uniform resource locator) access resources server by generating; Described web page files comprises the Download Info that is stored in the resource in Resource Server;
Parsing module 603, for resolving described web page files, the Download Info of Gains resources;
Download module 604, for arriving resource downloading local according to the Download Info of the resource of obtaining.
Preferably, described generation module 601 is for generating URL(uniform resource locator) according to the network transmission protocol, Resource Server domain name and user ID;
Described acquisition module 602 obtains web page files for the URL(uniform resource locator) access resources server by generating; Described web page files comprises the Download Info that is stored in the resource with described user ID in Resource Server.
Preferably, generation module 601 is for generating URL(uniform resource locator) according to the network transmission protocol, Resource Server domain name, username and password; When wherein, described user name, password are for access resources server, carry out authentication.
Preferably, as shown in Figure 7, described device also comprises:
Sending module 605, for sending the instruction that deletion has downloaded to local resource to Resource Server.
Preferably, as shown in Figure 7, described device also comprises:
Read module 606 for reading configuration file, obtains the described network transmission protocol and Resource Server domain name from described configuration file.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (10)

1. a resource transmission method, is characterized in that, comprises the following steps:
According to the network transmission protocol and Resource Server domain name, generate URL(uniform resource locator);
By the URL(uniform resource locator) access resources server generating, obtain web page files; Described web page files comprises the Download Info that is stored in the resource in Resource Server;
Resolve described web page files, the Download Info of Gains resources;
According to the Download Info of the resource of obtaining, resource downloading is arrived local.
2. method according to claim 1, it is characterized in that, described according to the network transmission protocol and Resource Server domain name generation URL(uniform resource locator), comprising: according to the network transmission protocol, Resource Server domain name and user ID, generate URL(uniform resource locator);
The described URL(uniform resource locator) access resources server by generation obtains web page files; Described web page files comprises the Download Info that is stored in the resource in Resource Server, comprising:
By the URL(uniform resource locator) access resources server generating, obtain web page files; Described web page files comprises the Download Info that is stored in the resource with described user ID in Resource Server.
3. method according to claim 1, it is characterized in that, described according to the network transmission protocol and Resource Server domain name generation URL(uniform resource locator), comprising: according to the network transmission protocol, Resource Server domain name, username and password, generate URL(uniform resource locator); When wherein, described username and password is for access resources server, carry out authentication.
4. method according to claim 1, is characterized in that, according to the Download Info of the resource of obtaining by resource downloading after this locality, described method also comprises: to Resource Server, send the instruction that deletion has downloaded to local resource.
5. method according to claim 1, is characterized in that, described according to before the network transmission protocol and Resource Server domain name generation URL(uniform resource locator), described method also comprises:
Read configuration file, from described configuration file, obtain the described network transmission protocol and Resource Server domain name.
6. a resource transmission device, is characterized in that, comprising:
Generation module, for generating URL(uniform resource locator) according to the network transmission protocol and Resource Server domain name;
Acquisition module, obtains web page files for the URL(uniform resource locator) access resources server by generating; Described web page files comprises the Download Info that is stored in the resource in Resource Server;
Parsing module, for resolving described web page files, the Download Info of Gains resources;
Download module, for arriving resource downloading local according to the Download Info of the resource of obtaining.
7. device according to claim 6, is characterized in that, described generation module is for generating URL(uniform resource locator) according to the network transmission protocol, Resource Server domain name and user ID;
Described acquisition module obtains web page files for the URL(uniform resource locator) access resources server by generating; Described web page files comprises the Download Info that is stored in the resource with described user ID in Resource Server.
8. device according to claim 6, is characterized in that, described generation module is for generating URL(uniform resource locator) according to the network transmission protocol, Resource Server domain name, user name, password; When wherein, described user name, password are for access resources server, carry out authentication.
9. device according to claim 6, is characterized in that, described device also comprises:
Sending module, for sending the instruction that deletion has downloaded to local resource to Resource Server.
10. device according to claim 6, is characterized in that, described device also comprises:
Read module for reading configuration file, obtains the described network transmission protocol and Resource Server domain name from described configuration file.
CN201310413903.8A 2013-09-12 2013-09-12 Method and apparatus for transmitting resource Pending CN103618756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310413903.8A 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
CN201310413903.8A CN103618756A (en) 2013-09-12 2013-09-12 Method and apparatus for transmitting resource

Publications (1)

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

Family

ID=50169460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310413903.8A Pending 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
CN104426967B (en) A kind of cross-platform and striding equipment mobile application development system
CN101674314B (en) Information sharing method, data server and terminal
EP2924952A1 (en) Data synchronization method and device
EP2575322B1 (en) Method, user equipment, server, and device for sharing information
CN110096660B (en) Method and device for loading page pictures and electronic equipment
CN104137520A (en) Message pushing method and device
US9591151B2 (en) Information sharing system, information sharing method, and connecting device
CN102271165B (en) Device and method for sharing and managing resources searched on Internet
CN103699635B (en) Information processing method and device
CN103873692A (en) Method, device and system for resource sharing
CN103595784A (en) File sharing method and system
JP6945211B2 (en) Communication support devices, methods, and computer programs
CN101853152A (en) Method and system for generating graphical user interface
CN104683410A (en) Resource sharing method and device
CN102884775A (en) Method and apparatus for accessing resources
CN101304429A (en) System and method for sharing personal computer document through mobile terminal
CN104010102A (en) Communication apparatus, method for controlling communication apparatus
CN105828094A (en) Private cloud system based on smart TV and implementation method thereof
CN103841110A (en) Website establishment service system and processing method based on mobile terminal
CN106953924B (en) Processing method of shared information and shared client
CN102404616A (en) Method and system for pushing data cloud based on digital television network
CN105657012A (en) Communication office system based on enterprise box
CN103020263A (en) Method, device and terminal for storing webpage information
CN108363749B (en) Method and apparatus for information processing
CN104702634A (en) Method, device and system for processing data operation request

Legal Events

Date Code Title Description
PB01 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

Application publication date: 20140305

RJ01 Rejection of invention patent application after publication