in reply to The Problem & My Solution (please comment)
in thread Tar File To Web Browser
Update I found the Author's reply (here for the
heck of it):
--- quote
From: Stephen Zander gibreel@pobox.com>
To: Andy Bach root@wiwb.uscourts.gov>
Subject: Re: Archive::Tar
>> "Andy" == Andy Bach root@wiwb.uscourts.gov> writes:
We just send back an http header saying tar.gzip file to
follow and dump the output to STDOUT and the browser handles
the saving, but I couldn't get $tar->write() to use stdout
easily, w/ compression on.
Try using ->write(\*STDOUT) to force the output to the pre-existing STDOUT handle. This should Just Work. If it doesn't I'd appreciate the output of any error logs from apache and information on your environment (eg, apache version perl version, Archive::Tar version, whether you're using mod_perl etc)
Thanks
Stephen
"Farcical aquatic ceremonies are no basis for a system of government!"
--- end quote
a
|
|---|