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; }
In reply to Delivering a zipped file by Elliott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |