asp.net 文件下载实现代码
代码如下:public static bool DownloadFile(HttpContext httpContext, string filePath, long speed) { bool ret = true; try { #region–验证:HttpMethod,请求的文件是否存在 switch (httpContext.Request.HttpMethod.ToUpper()) { //目前只支持GET和HEAD方法 case “GET”: case “HEAD”: break; default: httpContext.Response.StatusCode =
用户评论