通过ASHX处理程序支持HTTP断点续传的下载? [英] Supporting resumable HTTP-downloads through an ASHX handler?

查看:255
本文介绍了通过ASHX处理程序支持HTTP断点续传的下载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们通过在ASP.NET中ASHX处理程序提供我们的应用程序设置的下载量。

We are providing downloads of our application setups through an ASHX handler in ASP.NET.

一位顾客告诉我们,他使用一些第三方下载管理器应用程序,而我们提供的文件的方式目前不支持他的下载管理器应用程序的恢复功能。

A customer told us he uses some third party download manager application and that our way of providing the files currently does not support the "resume" feature of his download manager application.

我的问题是:

什么是背后恢复下载的基本思路?有没有告诉我的偏移量,开始一定HTTP GET请求?

What are the basic ideas behind resuming a download? Is there a certain HTTP GET request that tells me the offset to start at?

推荐答案

通常恢复下载通过HTTP 范围头工作。例如,如果客户只想要一个文件的第二个千字节,它可能会发送标题范围:字节= 1024-2048

Resuming a download usually works through the HTTP Range header. For example, if a client wants only the second kilobyte of a file, it might send the header Range: bytes=1024-2048.

您可以看到的RFC 139页的HTTP / 1.1 了解详情。

You can see page 139 of the RFC for HTTP/1.1 for more information.

这篇关于通过ASHX处理程序支持HTTP断点续传的下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆