$r->content_type( 'application/vnd.ms-excel' ) ;
$r->header_out('Content-Disposition' => 'attachment; filename=report.xls' ) ;
#$r->content_type( 'application/octet-stream' ) ;
$r->send_http_header;
and for their XP boxes it opens properly in browser ( same for project ). They are posting to index.html in this case but get the filename properly.
On my mac os x I actually get a file named 'report.xls' in my save dialog.
So, as often is the case, Your Mileage May Vary :)
John-
On 20 Nov 2002 22:00:25 +0100
Marcin Kasperski <[EMAIL PROTECTED]> wrote:
I tried it hard (in my case I generate PDF files. No way. InternetBonus Points : Use Content-Disposition: attachment;filename=blabla and pre-set the name of the file on disk.
Explorer ignored it. Finally I decided to perform redirect to URL
ending with /blabla.pdf - then it worked more-or-less as expected.
--
( Marcin Kasperski | A reusable framework that is developed by itself will )
( http://www.mk.w.pl | probably not be very reusable. (Martin) )
(----------------------------------------------------------------------------)
( Porady dla twórców serwisów WWW: http://www.mk.w.pl/porady/porady_www )