I need to download excel file over http. The problem is that Chrome browser ignores file name that I’m setting in response header, while other browsers behave well.
resp.setContentType("application/vnd.ms-excel");
resp.setHeader("Content-disposition:", "attachment; filename=grid.xls");
Chrome saves it as “excel.xls”. How can I make chrome set file name? Thanks
Obtain an HTTP trace, or test your site with redbot.org.
BTW: the trailing colon in the first parameter to setHeader looks fishy.