Elliott has asked for the wisdom of the Perl Monks concerning the following question:
With other servers whem I've done something similar, I've been able to name the Perl script file.zip - and that ends up as the name of the downloaded file. With this server, it refuses to allow me to send it a post if I give it a .zip extension. If I give it a .pl extension, it delivers the file but named so as to confuse poor Windoze.print "Content-type: application/zip\n\n"; open(Z,"<zipfile.zip"); @zip=<Z>; close Z; foreach$zip(@zip) { print $zip; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Delivering a zipped file
by dws (Chancellor) on Jun 20, 2003 at 00:13 UTC | |
by Elliott (Pilgrim) on Jun 20, 2003 at 00:20 UTC |