Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
But that simply display the text in the browser. I've also tried:print "Content-Disposition:attachment;filename=file.txt\n"; print "Content-type: text/plain\n\n";
But that seems to force the Windows2000 users to save the file as file.txt.exe (they can modify the file.txt part, but not the .exe part). Not having the most patient users in the world, I'd really like to have it saved simply as file.txt. I Suppose I could let the browser display the text and have them do "file"->"save", but here again, they're impatient and want things to go more smoothly.print "Content-Disposition:attachment;filename=file.txt\n"; print "Content-type: application/octet-stream\n\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(wil) Re: File Download from CGI Script
by wil (Priest) on Jun 27, 2002 at 15:18 UTC | |
|
Re: File Download from CGI Script
by emilford (Friar) on Jun 27, 2002 at 15:12 UTC | |
|
Re: File Download from CGI Script
by gryphon (Abbot) on Jun 27, 2002 at 16:57 UTC | |
|
Re: File Download from CGI Script
by Aristotle (Chancellor) on Jun 27, 2002 at 17:42 UTC | |
|
Re: File Download from CGI Script
by Joost (Canon) on Jul 09, 2002 at 14:37 UTC | |
|
Re: File Download from CGI Script
by TorontoJim (Beadle) on Mar 19, 2016 at 21:35 UTC |