[thelist] creating and delivering a formatted documentwith classic asp

Erik Mattheis gozz at gozz.com
Wed Feb 21 16:34:26 CST 2007

I recall this is ASP - one can say:

Response.ContentType = "application/x-unknown" (or "application/rtf")
Response.AddHeader "content-disposition","attachment; filename=document.rtf"

-----Original Message-----

The only reason it *seems* wrong to you are the widespread myths that:
1) the URL has to map to a filename and directory path on the local disk
(it doesn't as explained above), and 2) what would be the filename
extension on the URL if it was a filename identifies what is at that URL
(it doesn't, Content-Type does).

In order to actually do this, given an Apache server, one would have to
turn on Option MultiViews and rename the file to something like

More information about the thelist mailing list