in reply to Specifying filename for download

You can specify the filename for downloading using the "Content-Disposition" header. Like this:
#!/usr/bin/perl -w open (ZIP, "test.zip"); binmode(ZIP); @all = <ZIP>; close(ZIP); print "Content-type: application/zip\n"; print "Content-Disposition: filename=test.zip\n"; print "\n"; foreach (@all) { print; }

Replies are listed 'Best First'.
Re: Re: Specifying filename for download
by Chady (Priest) on Mar 02, 2001 at 12:34 UTC