It's been my experience that IE will ignore the sent content-type when it
thinks it knows what to do by the file extension. So, if the request is
say, .html which happens to be dynamic with respect to your server and may
return another content-type, IE will try to display it as html anyway. You
should be able to use an unknown (to IE) extension and return the desired
content-type for the appropriate action by the client (but that's not
necessarily guaranteed). The simplest solution may be to make sure that
you're requesting or redirecting to a .pdf file for IE. This would actually
be much simpler if you were using custom content handlers rather than
Apache::Registry.
Thanks,
Tim Tompkins
----------------------------------------------
Staff Engineer / Programmer
http://www.arttoday.com/
----------------------------------------------
----- Original Message -----
From: "Eustace, Glen" <[EMAIL PROTECTED]>
To: "Mod-Perl Mailing List (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, November 30, 2000 1:02 PM
Subject: mime-type headers
> This isn't strictly a mod_perl issue but Im hoping someone knows what I am
> doing wrong. The code is running under Apache::Registry
>
> I have a series of invoices, stored as postscript files. I have a page
> which allows the client to select a file. I then run it through 'gs' and
> convert it to a PDF using open(). prior to reading the pipe and spitting
the
> data to the browser, I have output the headers 'content-type:
> application/pdf' and 'window-target: Invoice'.
>
> The result is as expected with netscape, on Win32 I get a new window and
> netscape has started Acrobat and displays the invoice in the new window.
On
> linux, netscape starts a new window but fires up xpdf to actually show the
> page. All in all it works pretty well.
>
> But with IE, no go. I have 2 PCs, both with IE5.5 and with acrobat 4 and
the
> other acrobat 3. On the first, on both I get no new window, a page of
> hieroglyphics on the first and on the second I get acrobat started but no
> page displayed.
>
> Any clues ?
> --
> Glen Eustace, Systems Engineer - Networking.
> Information Technology Services, Turitea, Massey University, Palmerston
> North, NZ.
> Ph: +64 6 350 5799 x 2707, Fax: +64 6 350 5607
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]