This is a brief version of this article. It is not easy to find the right keyword for Google unless you know how.
The key is to set both content-type and Content-Disposition header. Here’s the code from the web page above:
// Set the headers.
res.setContentType("application/x-download");
res.setHeader("Content-Disposition", "attachment; filename=" + filename);
By setting content-type to x-download, most browsers won’t guess […]
Categories
tags:
adsense apache bbdb blog chinese cli config cooking cross platform database dell download emacs extension feedparser file system firefox freebsd Fvwm google grease monkey ipod Linux mail minix misc mobile mouseless mplayer openssh os perl pim planner portable ports programming proverb pyblosxom python python-challenge quixote reader rss screen security spam ssh sysadmin terminal trac usb-key web development wife windows wordpress X zsh-
Subscribe
Posts