in reply to Download Files Server by PERL?

Write a CGI script that:

Don't forget to write the correct Content-type header.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you don't talk about Perl club."

Replies are listed 'Best First'.
Re: Re: Download Files Server by PERL?
by koo (Novice) on Oct 16, 2001 at 19:22 UTC
    Yes as davorg suggests just dumping the file to STDOUT from the script is enough.

    Beware of the security implications though.
    Make sure your script will not open just any file it is asked to.
    You don't want some kid typing: www.myserver.org/myscript.pl?file=../../../etc/passwd or some such thing !!!