Hi list, I want to present the user of my application with a 'download' pop-up box when he clicks on a certain link. The download box must have a default name already filled in. The (ASCII) data is generated on the fly.
This works already if I set $self->header_props(-type=>'application/octet-stream') but (1) I'm not really downloading an application (just a text file) and (2) the default name is the name of my application, what I dislike. According to RFC 1806 (http://www.pasteur.fr/cgi-bin/mfs/01/18xx/1806) I should use the '-Content-Disposition' http header field. So I created the following concoction: $self->header_props(-type=>'text/plain',-Content-Disposition=>'attachment;filename=dbase.txt'); However, this prints the text in the browser window instead, of bringing up a pop-up download box. So the Q. is: Can header_props accept more than one argument? And if so, does it accept 'Content-Disposition'? By the way: this is not a browser quirk: behaviour is consistent in Konqueror, Nitscope, Mozilla and Internet Exploder. Regards, Martijn -- +----------------------------------+ Martijn van den Burg ASML, CS PPC Inform@tion Systems Voice: +31 (0)40 268 3856 +----------------------------------+ --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/cgiapp@lists.vm.com/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]