Hi guys,

I'm using a CGI script to control authorisation to file downloads. The
script takes the users authorisation from a web page, checks an authorise
file and if the details match, it delivers the requested file (which sits
outside of the web server's sphere of influence)  to the browser for
download.

Little problem - this all works fine, but the file name is not returned to
the browser's download box - if I want to download a file called "file.zip",
the download box will try to save the file as "download.pl" (which is the
post-to script's name).

Is there any way, ideally via the CGI headers, to return the filename so
that the browser tries to save the file under the correct name?

I'm currently using this for the CGI header:

print $query->header(-type=>'application/octet-stream',
                -Content-length=>$fsize,
                -nph=>1);

Cheers,

Ben Hall
KM New Media, Larkfield
Kent Messenger Group Newspapers Ltd.



Ben Hall
KM New Media, Larkfield
Kent Messenger Group Newspapers Ltd.




******************************************************************************
Any views or opinions are solely those of the author and do not
necessarily represent those of Kent Messenger Group Newspapers.

******************************************************************************
The Information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or privileged
material. If you are not the intended recipient of this message, please
do not read, copy, use or disclose this communication and notify
the sender immediately. It should be noted that any review,
retransmission, dissemination or other use of, or taking action
in reliance upon, this information by persons or entities other than
the intended recipient is prohibited.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
Kent Messenger Group Newspapers can not be held responsible
for any virus or virus like content transmitted in this email.

www.kentonline.co.uk
*****************************************************************************
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to