To force the save window is easy - make up your own content subtype (main
type application) and set it:
Content-Type: application/x-download-this-file-you-stupid-browser
Remember to start with an x- as your type is obviously not registered with
the IANA.
The tricky part is setting up the
On Wed, Nov 20, 2002 at 11:24:33AM +0200, Issac Goldstand wrote:
To force the save window is easy - make up your own content subtype (main
type application) and set it:
Content-Type: application/x-download-this-file-you-stupid-browser
Remember to start with an x- as your type is obviously
never heard of.
Issac
- Original Message -
From: Tom Hukins [EMAIL PROTECTED]
To: Issac Goldstand [EMAIL PROTECTED]
Cc: Dennis Daupert [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, November 20, 2002 12:27 PM
Subject: Re: How do I force a 'Save Window?'
On Wed, Nov 20, 2002 at 11
Thanks all for the great suggestions. This group is wonderfully helpful.
I tried the quick route, setting MIME type to application/octet-stream,
and that works fine for xl spreadsheets, but I still get the same behavior
as before with MS Project files (browser IE 5.00.3105.0106, which is one
of
your users to right-click on the link and
select Save Target As... to get a save window.
Francisco
[EMAIL PROTECTED]
- Original Message -
From: Dennis Daupert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 20, 2002 7:10 AM
Subject: Re: How do I force a 'Save Window
: Wednesday, November 20, 2002 9:21 AM
Subject: Re: How do I force a 'Save Window?'
Dennis,
Microsoft has documentation on how IE handles MIME types,
content-disposition headers, etc. It may be out of date, and not
accurate,
but it's certainly worth reading. Have a look at:
http
-
From: "Dennis Daupert" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 20, 2002 10:10
AM
Subject: Re: How do I force a 'Save
Window?'
Thanks all for the great suggestions. This group is
wonderfully helpful. I tried the quick route, setting MIME type
Bonus Points : Use
Content-Disposition: attachment;filename=blabla
and pre-set the name of the file on disk.
I tried it hard (in my case I generate PDF files. No way. Internet
Explorer ignored it. Finally I decided to perform redirect to URL
ending with /blabla.pdf - then it worked
I guess its a your mileage may vary sort of thing. The
marketing folks here use XP and whatever IE comes with it.
I send
$r-content_type( 'application/vnd.ms-excel' ) ;
$r-header_out('Content-Disposition' =
'attachment; filename=report.xls' ) ;
#$r-content_type(
You can always set the content type to application/octet-steam but I
wouldn't expect IE to honor the content type.
Regards,
Tim Tompkins
--
Programmer
http://www.clipart.com/
http://www.rebelartist.com/
--
PROTECTED]; Dennis Daupert [EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 4:27 PM
Subject: Re: How do I force a 'Save Window?'
You can always set the content type to application/octet-steam but I
wouldn't expect IE to honor the content type.
Regards,
Tim Tompkins
Quick google search shows :
http://www.utoronto.ca/webdocs/HTMLdocs/Book/Book-3ed/appb/mimetype.html
Send the mime type as : application/vnd.ms-project
I do this with excel using application/vnd.ms-excel and
the marketing folks love it.
So, you would have to provide a link to your modperl
For IE 5.5, IE doesn't respect the Content-Disposition header and will
prompt the user to save a file as foo.pl (or whatever the name of your
script happens to be)
M$ claims that this was fixed in IE 5.5 SP1.
They document this bug (as fixed) here:
13 matches
Mail list logo