免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8752 | 回复: 1
打印 上一主题 下一主题

http 断点续传 206 问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-18 21:42 |只看该作者 |倒序浏览
<code>
GET /friends1.rmvb HTTP/1.1
Host: 192.168.1.160
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Range: bytes=24600576-


HTTP/1.1 206 Partial Content
Content-Type:video/vnd.rn-realvideo
Connection:close
Content-Range=bytes 24600576-124763741/124763742
Content-Length:124763742


</code>
我这段报文似乎不正确,我用firefox做下载测试,暂停重新下载时候,显示下载的文件变大了。
正确的报文应该怎么写呢。
主要是Content-Range=bytes ????

论坛徽章:
0
2 [报告]
发表于 2009-09-19 11:05 |只看该作者
Content-Range=bytes 24600576-124763741/124763742
这句写错了,应该是
Content-Range: bytes 24600576-124763741/124763742
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP