morningstar has asked for the wisdom of the Perl Monks concerning the following question:

Hello, all,
I'm trying to write a cgi script that'll query a database, and download files based on the result of that query. The query logic is all done already, and I have two lists:
  1. a list of the urls of the files(on the server machine) and
  2. a list of what those files should be called when they are downloaded onto the client machine.
Any ideas?

Cheers,
morningstar

  • Comment on Downloading files to a client using CGI

Replies are listed 'Best First'.
Re: Downloading files to a client using CGI
by tachyon (Chancellor) on Nov 28, 2001 at 20:52 UTC
Re: Downloading files to a client using CGI
by merlyn (Sage) on Nov 28, 2001 at 21:26 UTC
Re: Downloading files to a client using CGI
by AidanLee (Chaplain) on Nov 28, 2001 at 20:30 UTC
Re: Downloading files to a client using CGI
by fuzzysteve (Beadle) on Nov 28, 2001 at 20:48 UTC
    copy the file to another location, and send a location header to cause it to download the file?
    (then use a cron script to delete everything in the temporary location)
Re: Downloading files to a client using CGI
by Beatnik (Parson) on Nov 29, 2001 at 16:51 UTC