CGI中的代码
`
printf("Content-Disposition:attachment;filename=%s", fileName);
printf("\r\n");
printf("Content-Length:%ld", sb.st_size);
printf("\r\n");
printf("Content-Type:application/octet-stream\r\n");
printf("\r\n");
`
js中的代码
`
function downloadToFile(fileName)
{
document.data.data.value = fileName;
document.data.action = "/cgi-bin/downloadDCULog.cgi";
document.data.submit();
}
`
WEB服务器采用的是boa,发现测试下来无法下载大的文件,当下载大于256KB文件时,下载失败了。
请教一下如何下载大的文件