Re: The binary file as CGI output

2001-07-11 Thread Evgeny Goldin (aka Genie)
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

Re: The binary file as CGI output

2001-07-10 Thread Mel Matsuoka
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. > >

The binary file as CGI output

2001-07-09 Thread Evgeny Goldin (aka Genie)
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"