_Response.AddHeader("Accept-Ranges", "bytes");
_Response.Buffer = false;
这个是什么意思?
if (_Request.Headers["Range"] != null)
{
_Response.StatusCode = 206;
string[] range = _Request.Headers["Range"].Split(new char[] { '=', '-' });
startBytes = Convert.ToInt64(range[1]);
}
这又是什么意思啊
_Response.AddHeader("Content-Length", (fileLength - startBytes).ToString());
_Response.AddHeader("Connection", "Keep-Alive");
_Response.ContentType = "application/octet-stream";
_Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(_fileName, System.Text.Encoding.UTF8));
这些东西都不懂,有谁可以帮我解释下这些代码嘛?
回首忆惘然
慕的地6264312