http协议

response.setHeader("Content-Disposition", "attachment;filename=\"" + getFileName() + "\"");  
response.setHeader("Cache-Control", "must-revalidate, post-check=0, pre-check=0");  
response.setHeader("Pragma", "public");
response.setDateHeader("Expires", (System.currentTimeMillis() + 1000));
 

本文出自 “风云” 博客,转载请与作者联系!

你可能感兴趣的:(http)