Just in case someone interested in the answer, the following looks like
the correct one.
> what is the correct way for letting the user to download the binary
> file as script's response ?
#!/usr/bin/perl
use CGI qw(:standard);
print header;
print << 'STOP';
Text, usually
At 05:51 AM 07/10/2001 +0200, Evgeny Goldin (aka Genie) wrote:
>
> Hello,
>
> My goal is following : after user accesses http://host/script.pl ( either
> by direct link or by submitting the filled form ) I'd like to open a
> "Save as" dialog - to let him download a binary ( compressed ) file.
>
>
Hello,
My goal is following : after user accesses http://host/script.pl ( either
by direct link or by submitting the filled form ) I'd like to open a
"Save as" dialog - to let him download a binary ( compressed ) file.
1) print header( "application/x-gzip" );
open ( FIN, "TXTs.tar.gz"