Change default filename when downloading from cgi
Posted on 1999-07-06
I am using a cgi script (perl with windows nt) to send file to client browser (download fonction).
The problem is : when the window open (save as), the default name of the file is the name of the cgi program.
how can i change the default name before the "save as" window open ??
I use this code to send the file :
print "HTTP/1.0 302 Found\n";
print "Content-type: multipart/x-zip\n\n";
open (FILE, $file);
read (FILE, $buffer, -s $file);