找回密码
 立即注册
断点applicationimagethe | 家庭/个人应用 2022-08-26 48 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
相信各位都用过了迅雷,迅雷不及掩耳般的速度。和迅雷一样的其它大部分下载软件都使用了断点续传功能,通过本资源的学习,相信你也能自己制作一个下载软件!用Java实现断点续传(HTTP)(一)断点续传的原理其实断点续传的原理很简单,就是在Http的请求上和一般的下载有所不同而已。打个比方,浏览器请求服务器上的一个文时,所发出的请求如下:假设服务器域名为wsjtu.edu,文件名为down.zip。GET/down.zipHTTP/1.1Accept:image/gif,image/x-xbitmap,image/jpeg,image/pjpeg,application/vnd.ms-excel,application/msword,application/vnd.ms-powerpoint,
/
Accept-Language:zh-cnAccept-Encoding:gzip,deflateUser-Agent:Mozilla/4.0(compatible;MSIE5.01;WindowsNT5.0)Connection:Keep-Alive………………………………

(I believe that everyone has used Thunderbolt, and the speed of Thunderbolt can’t be concealed. Most of the other download softwares like Xunlei use the breakpoint resume function. Through the study of this resource, I believe you can also make a download software by yourself! Using Java to implement resumable upload (HTTP) For example, when a browser requests a document on the server, the request sent is as follows: Suppose the server domain name is wsjtu.edu, and the file name is down.zip. GET/down.zipHTTP/1.1Accept:image/gif,image/x-xbitmap,image/jpeg,image/pjpeg,application/vnd.ms-excel,application/msword,application/vnd.ms-powerpoint,
/
Accept-Language:zh-cnAccept-Encoding:gzip,deflateUser-Agent:Mozilla/4.0(compatible;MSIE5.01;WindowsNT5.0)Connection:Keep-Alive………………………………)

[下载]14134209591.rar




上一篇:WINDOWS网络编程技术【教学,自学,精讲,带案例】2
下一篇:网络编程指南【精讲,带案例】