Hello from Russia


How can I set a name for some file? Here is some code from my script.


sub set_cyk3{
my $name=join("",@_);
$name="date/$name";
my $c_a="val1=$value1,val2=$value2";
my $cookie=cookie(-name=>'something',
-value=>"$c_a",
-expires=>'+30m');
print header(-type=>"application/octet-steam",-cookie=>$cookie);
}


&set_cyk3("readme.doc");
open(FILE, "dirnicecool/readme.doc") || &die("Cant open data file");
binmode STDOUT;binmode FILE;
print <FILE>;
close(FILE);


The browser promts to save the file with the name "start.cgi"(it is the name of the 
script) but I want it to be "readme.doc"
That is the problem.

And what is Content-Disposition ?


Excuse my English, it leaves much to be desired.

Please reply to my e-mail box.

Reply via email to