_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));这些东西都不懂,有谁可以帮我解释下这些代码嘛?
- 2 回答
- 0 关注
- 391 浏览
添加回答
举报
0/150
提交
取消