CN103647841B - Method for analyzing and downloading network file address of thin client - Google Patents

Method for analyzing and downloading network file address of thin client Download PDF

Info

Publication number
CN103647841B
CN103647841B CN201310705990.4A CN201310705990A CN103647841B CN 103647841 B CN103647841 B CN 103647841B CN 201310705990 A CN201310705990 A CN 201310705990A CN 103647841 B CN103647841 B CN 103647841B
Authority
CN
China
Prior art keywords
file
address
user
network
download
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.)
Active
Application number
CN201310705990.4A
Other languages
Chinese (zh)
Other versions
CN103647841A (en
Inventor
袁东风
高宗宝
杨春燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong University
Original Assignee
Shandong University
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 Shandong University filed Critical Shandong University
Priority to CN201310705990.4A priority Critical patent/CN103647841B/en
Publication of CN103647841A publication Critical patent/CN103647841A/en
Application granted granted Critical
Publication of CN103647841B publication Critical patent/CN103647841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method for analyzing and downloading a network file address of a thin client. The method is used for analyzing whether a remote file address inputted by a user is valid or not, returning file information and downloading a file to a downloading storage space of a network file of a user. By the method, the network address is simply and reliably analyzed, the method can inform the user of true information of the network address before downloading, so that a wrong file, a web page link and a wrong web page cannot be downloaded, high-intensity work of a server cannot be affected by an overlarge downloaded file, a remote file is directly downloaded to a network disk of the user by the method, the method is more efficient as compared with a method for firstly downloading the remote file to a local disk and then uploading the remote file to the server, the server still can automatically download the file after the user logs off, and waiting time of the user is shortened.

Description

A kind of network file address resolution and method for down loading for thin-client
Technical field
The present invention relates to a kind of network file address resolution and method for down loading for thin-client, belongs to the network storage Technical field.
Background technology
In recent years, with computer network, the development of thin client terminal, meeting user's request, improving user's requisite number According to safety, reduces cost, be easy to dispose and safeguard etc. and require under, based on " thin-client+network+cloud computing server " Pattern is into certainty.In such a mode, user to the verity of required telefile address, the transporting of telefile, under It is loaded onto high efficiency of user's storage server etc. and proposes preferably requirement.
The content of the invention
For the deficiencies in the prior art, the invention provides a kind of network file address resolution for thin-client and under Support method.The method is whether the telefile address of parsing user input is effective, returns fileinfo and is downloaded to user network The method of network file download memory space.
Technical scheme is as follows:
Under a kind of network file address resolution and method for down loading for thin-client, including parsing remote address and file Load program, it is specific as follows:
The step of parsing remote address, return address information approach such as 1)-8):
1)Dropbox is logged in, the fileinfo that login user has been stored is read;
2)Network file download button is clicked on, the network address of user input network file is pointed out;
3)Behind the network address of Web server receiving user's input, and array ARRAY is obtained, the array includes clothes Business device responds all headers that a HTTP request is sent;
4)Server judges whether http response is successful, if success, i.e. ARRAY [0] is 200 or 302 or 302Moved Temporarily, performs next step;Otherwise, user's this address is pointed out not to be that effective address, i.e. a this address cannot be beaten Open, skip to step 8);
5)Obtain file type ARRAY [Content-Type] and network address points to address ARRAY [Location] or ARRAY [location], if there is character string " application " in file type or point to address existed, then it represents that this address Middle presence can download file, and this points to address and is the file source address that user needs, execution step 7);Otherwise, perform next Step;
6)File type is judged with the presence or absence of character string " text/html ", and without address is pointed to, if it is not, informing user The file of input is unknown;If so, the address for informing user input is not download address, it may be possible to a web page interlinkage, and is pointed out This link whether is downloaded, if downloading, next step is performed, otherwise, is skipped to step 8);
7)Obtain file size, if file be less than enactment document size, the enactment document size with ensure service Device normal work, e.g., less than 20M, return source address, and startup file downloads;Otherwise point out file larger, using download Instrument is downloaded;
8)Parsing terminates;
The step of file download program such as step 9)-14):
9)Start;
10)The file of source address is opened in read-only method;
11)In user network file download memory block new files, filename is the filename obtained from source address;
12)The content for pointing to address file is read, and writes newly-built file, terminated until source file reads;
13)Judge whether the filename downloaded is url codings, if so, by filename RNTO source original document name;If It is no, perform next step;
14)Terminate.
According to selected by the present invention, client of the thin-client for built-in Linux operating environment, there is provided input, Outut device, is embedded in web browser.
According to currently preferred, the server end is cloud computing server cluster, is built by multiple servers, Provide the user correspondence memory block and web-based management service.
Advantage of the invention is that:
(1)It is simple and reliability is high using the present invention parsing network address;
(2)Method of the present invention may inform the user that the real information of this network address before downloading, prevent down Wrong file, downloads web link are carried, wrong webpage is downloaded, is downloaded excessive impact server intensive work of file etc.;
(3)Telefile is directly downloaded to user's Dropbox by method of the present invention, is first downloaded to locally again than user Upload onto the server more efficient;
(4)After user logs off, server still can download file to the present invention automatically, reduce the waiting time of user.
Description of the drawings
The step of what Fig. 1 was represented is the server parsing network address of the present invention is schemed, wherein,
1. user input url;
2. server responds the request of a http;
3. whether response is successful;
4. there is application or there is sensing address in file type;
5. the source address of file is obtained;
6. obtain whether file size is less than 20M(It is variable);
7. whether download;
8. start server to download;
9. there is text/html in file type;
10. this is a network linking;
The type of 11. files is unknown;
The address of 12. user inputs is unknown(Misprinted addresses);
13. telefiles are excessive, it is proposed that download this document using downloader.
What Fig. 2 was represented is the address resolution interaction between web browser and server, wherein,
14. log according to account and password Dropbox;
Logging in for 15. response servers, obtains the information of this user storage space;
16. user files show;
17., to download telefile, point out the user input network address;
18. servers respond all headers of http request;
The 19. all information for obtaining address, parsing obtain the real source address of file;
20. return analysis result;
21. startups download, and download file to user network file storage according to parsing address;
After the completion of 22. download, terminate current download.
Specific embodiment
The present invention is described in detail with reference to example and Figure of description, but not limited to this.
Embodiment 1,
Under a kind of network file address resolution and method for down loading for thin-client, including parsing remote address and file Load program, it is specific as follows:
The step of parsing remote address, return address information approach such as 1)-8):
1)Dropbox is logged in, the fileinfo that login user has been stored is read;
2)Network file download button is clicked on, the network address of user input network file is pointed out;
3)Behind the network address of Web server receiving user's input, and array ARRAY is obtained, the array includes clothes Business device responds all headers that a HTTP request is sent;
4)Server judges whether http response is successful, if success, i.e. ARRAY [0] is 200 or 302 or 302Moved Temporarily, performs next step;Otherwise, user's this address is pointed out not to be that effective address, i.e. a this address cannot be beaten Open, skip to step 8);
5)Obtain file type ARRAY [Content-Type] and network address points to address ARRAY [Location] or ARRAY [location], if there is character string " application " in file type or point to address existed, then it represents that this address Middle presence can download file, and this points to address and is the file source address that user needs, execution step 7);Otherwise, perform next Step;
6)File type is judged with the presence or absence of character string " text/html ", and without address is pointed to, if it is not, informing user The file of input is unknown;If so, the address for informing user input is not download address, it may be possible to a web page interlinkage, and is pointed out This link whether is downloaded, if downloading, next step is performed, otherwise, is skipped to step 8);
7)Obtain file size, if file be less than enactment document size, the enactment document size with ensure service Device normal work, e.g., less than 20M, return source address, and startup file downloads;Otherwise point out file larger, using download Instrument is downloaded;
8)Parsing terminates;
The step of file download program such as step 9)-14):
9)Start;
10)The file of source address is opened in read-only method;
11)In user network file download memory block new files, filename is the filename obtained from source address;
12)The content for pointing to address file is read, and writes newly-built file, terminated until source file reads;
13)Judge whether the filename downloaded is url codings, if so, by filename RNTO source original document name;If It is no, perform next step;
14)Terminate.
Client of the thin-client for built-in Linux operating environment, there is provided Input/Output Device, is embedded in web clear Look at device.
The server end is cloud computing server cluster, is built by multiple servers, provides the user correspondence and deposits Storage area and web-based management service.
The result following webpage parsed using said method:
The network addresshttp://www.ygb.sdu.edu.cn/uploads/soft/2_131011091704.xls
Source addresshttp://www.ygb.sdu.edu.cn/uploads/soft/2_131011091704.xls
The network addresshttp://xl.7edown.com:20000/green/Adult%20PDF%20Password% 20Recovery.rarSource addresshttp://xl.7edown.com:20000/green/Adult%20PDF%20Password% 20Recovery.rar, download the entitled Adult+PDF+Password+Recovery.rar of file
The network addresshttp://download.feixin.10086.cn/download/ OSDownloadToComputer.action?id=138
Source addresshttp://f.10086.cn/Mobiledownload/Android/Fetion_Android_V5.2.3_ g.apk
The network addresshttp://www.kugou.com/topic/download.php
Source addresshttp://downmini.kugou.com/kugou7535.exe
Download the entitled kugou7535.exe of file
The network addresshttp://pinyin.sogou.com/softdown.php?v=6.7&type=c&ref= indexbannerSource addresshttp://download.ime.sogou.com/1381890266/sogou_pinyin_ 67f.exe?st=IGGpjFdR_bXXJIw51wNFYg&e=1382176944&fn=sogou_pinyin_67f.exe
The network addresshttp://blog.sina.com.cn/s/blog_7f5a00410101ceht.html
This is pointed out to be a webpage
The network addresshttp://www.sdu.edu.cn/
This is pointed out to be a webpage
The network addresshttp://xa.ctfs.ftn.qq.com/ftn_handler/ 509b3eb130b6923baf7038817d60acb978a95bcce2262fab018dc1d19d7e0bbc461086e61ce2b 2f58b6264b4b2529797f54e77610137eb79b038fae015035aee/%E4%B8%93%E5%88%A9%E5%88% 86%E5%B7%A5%E7%BB%86%E5%88%99.docx
Prompting this address mistake, is not present.

Claims (4)

1. a kind of network file address resolution and method for down loading for thin-client, it is characterised in that the method includes parsing Remote address and file download, it is specific as follows:
The step of parsing remote address, return address information approach such as 1)-8):
1)Dropbox is logged in, the fileinfo that login user has been stored is read;
2)Network file download button is clicked on, the network address of user input network file is pointed out;
3)Behind the network address of Web server receiving user's input, and array ARRAY is obtained, the array includes server All headers that one HTTP request of response is sent;
4)Server judges whether http response is successful, if success, i.e. ARRAY [0] is 200 or 302 or 302 Moved Temporarily, performs next step;Otherwise, user's this address is pointed out not to be that effective address, i.e. a this address cannot be beaten Open, skip to step 8);
5)Obtain file type ARRAY [Content-Type] and network address points to address ARRAY [Location] or ARRAY [location], if there is character string " application " in file type or point to address existed, then it represents that this address Middle presence can download file, and this points to address and is the file source address that user needs, execution step 7);Otherwise, perform next Step;
6)File type is judged with the presence or absence of character string " text/html ", and without address is pointed to, if it is not, informing that user downloads File it is unknown;Whether the address for if so, informing user input is not download address, it may be possible to a web page interlinkage, and point out This link is downloaded, if downloading, next step is performed, otherwise, is skipped to step 8);
7)The size of file is obtained, if file is less than enactment document size, the enactment document size is to ensure server The step of normal work, return source address, execution file download;Otherwise point out file larger, downloaded using download tool;
8)Parsing terminates;
The step of file download such as step 9)-14):
9)Start;
10)The file of source address is opened in read-only method;
11)In user network file download memory block new files, filename is the filename obtained from source address;
12)The content for pointing to address file is read, and writes newly-built file, terminated until source file reads;
13)Judge whether the filename downloaded is url codings, if so, by filename RNTO source original document name;If it is not, Perform next step;
14)Terminate.
2. a kind of network file address resolution and method for down loading for thin-client according to claim 1, its feature It is that client of the thin-client for built-in Linux operating environment, there is provided Input/Output Device is embedded in web-browsing Device.
3. a kind of network file address resolution and method for down loading for thin-client according to claim 1, its feature It is that the server end is cloud computing server cluster, is built by multiple servers, provides the user correspondence memory block With web-based management service.
4. a kind of network file address resolution and method for down loading for thin-client according to claim 1, its feature It is that the enactment document size is 20M.
CN201310705990.4A 2013-12-19 2013-12-19 Method for analyzing and downloading network file address of thin client Active CN103647841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310705990.4A CN103647841B (en) 2013-12-19 2013-12-19 Method for analyzing and downloading network file address of thin client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310705990.4A CN103647841B (en) 2013-12-19 2013-12-19 Method for analyzing and downloading network file address of thin client

Publications (2)

Publication Number Publication Date
CN103647841A CN103647841A (en) 2014-03-19
CN103647841B true CN103647841B (en) 2017-04-19

Family

ID=50252995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310705990.4A Active CN103647841B (en) 2013-12-19 2013-12-19 Method for analyzing and downloading network file address of thin client

Country Status (1)

Country Link
CN (1) CN103647841B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172896A (en) * 2021-12-08 2022-03-11 深圳前海环融联易信息科技服务有限公司 Processing method for front end receiving back end file stream

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465876A (en) * 2007-12-17 2009-06-24 诺基亚西门子通信公司 Query routing in distributed database system
CN102843416A (en) * 2011-05-23 2012-12-26 德文信息技术公司 Set-up of thin client computer

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8364845B2 (en) * 2005-05-19 2013-01-29 Wyse Technology Inc. Method and system for thin client configuration

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465876A (en) * 2007-12-17 2009-06-24 诺基亚西门子通信公司 Query routing in distributed database system
CN102843416A (en) * 2011-05-23 2012-12-26 德文信息技术公司 Set-up of thin client computer

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
瘦客户端的Oracle数据库连接技术研究;贺致智;《计算机技术与发展》;20060731;第16卷(第7期);全文 *
通用文件传输平台中瘦客户端系统的设计与实现;郭旸;《中国优秀硕士学位论文全文数据库(电子期刊)·信息科技辑》;20120815;全文 *

Also Published As

Publication number Publication date
CN103647841A (en) 2014-03-19

Similar Documents

Publication Publication Date Title
US11095494B2 (en) Methods and systems for implementing a cache model in a prefetching system
TWI521357B (en) Input content to application via web browser
US7461319B2 (en) System and method for downloading files over a network with real time verification
JP4754473B2 (en) System and method for automatic data installation in handheld computers
US8645942B2 (en) Software update syndication
US8701104B2 (en) System and method for user agent code patch management
CN103092581A (en) Method and device for setting up Web front-end local development environment
CN103312803B (en) Optimization method and device are experienced in a kind of web access
WO2011088714A1 (en) Method, device and system for running application
CN112256296A (en) Express delivery service APP updating method, device, equipment and storage medium based on Weex
CN105426549A (en) Method and device for reading webpage resources and electronic equipment
CN103955495A (en) Downloading method and device for page sub-resource
WO2018133772A1 (en) Method, device, storage medium, and electronic device for obtaining webpage resources
CN112199567A (en) Distributed data acquisition method, system, server and storage medium
CN113761412A (en) Application page display method and device, electronic equipment, medium and application system
CN105808282A (en) Method and device for updating webpage contents of application program
CN104023046A (en) Mobile terminal recognition method and device
CN105701153A (en) Method and device for reading webpage resources and electronic equipment
CN111538922B (en) Link jump method, application client, device and storage medium
WO2017215650A1 (en) Automatic login method and device for micro-game client, program, and medium
JP2016018233A (en) Script caching method and information processing device utilizing the same
CN102141914A (en) Method and device for enhancing performance of mobile Widget application
CN104036193A (en) Local cross-domain vulnerability detection method and device for application program
CN105677730A (en) Method and device for reading webpage resources and electronic equipment
CN103647841B (en) Method for analyzing and downloading network file address of thin client

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant