RE: Change default file name...

2001-08-09 Thread Stephen Bardsley
Thanks to all of you. This works great. Steve _ Stephen Bardsley RLW Inc. Malta, NY - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Change default file name...

2001-08-09 Thread ap
Here's some snippets of code that I use to send a textfile; to generate the link that the user clicks on to download the file (sorry for the mess, I cut it straight out of the ASP script!): print "{'id'}, "\" title=\"", $href->{'uzfname'}, "\" type=\"application/octet-stream\">", $href->{'uzfname

Re: Change default file name...

2001-08-09 Thread Håkan Lindqvist
Sure you can... Just send a header like this in addition to the Content-Type: Content-Disposition: attachment; filename="whateverfilenameyoulike" /Håkan On Friday 10 August 2001 00:29, you wrote: > Greetings, > > I am printing data from a script directly back > to the browser. The data is tex

Re: Change default file name...

2001-08-09 Thread Sven Köhler
use the content-disposition header ! look at any e-mail with an attachement - in it's source there should be the header: content-dispostion: attachement; filename= (i'm not sure if this is 100% right) "attachement" forces the saveas-dialog even if the content-type would be text/plain or text/ht