At 01:04 PM 4/23/01 +0200, you wrote:
>On Mon, Apr 23, 2001 at 12:06:06PM +0100, Jon Galliers wrote:
> > The main problem is that the zipped file downloads as "NameOfCGIFile.zip"
> > and not "download.zip".
>
>I think you might like to have a look at the Content-Disposition MIME
>header.
>
>Something like this:
>
>print "Content-type:application/x-zip-compressed\n" .
>           "Content-Disposition: attachment; filename=$file\n\n";
>
>--
>Niklas Nordebo -><- [EMAIL PROTECTED] -><- +447966251290


Cheers, that worked a treat. I must admit I've never even heard 
of  "Content-Disposition:", what exactly is it, and where can i find out 
more information?

Again, Thanks





Jon

*****************************************
  Jon Galliers   [EMAIL PROTECTED]
  Programmer     Perl/C++/MySQL/DB2/Java
  Design Net     http://www.design.net.uk
         Tel: +44(0)870 240 0088
         Fax: +44(0)870 240 0099
*****************************************

Reply via email to