Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
February 5, 2007, 6:53 pm
rate this thread
My web application pushes an extemporaneous PDF file out to a web
page. It adds a 'Content-type: application/pdf' header to the HTTP
headers, but the web server automatically adds a 'Content-type:
text/html' header before mine.
Firefox embeds this in a web page just fine, but IE always brings up
the full Adobe reader application to show the file. Is this caused by
this first header? The web server gives me no way to remove it. I
could find nothing in Google but that IE has had some 'Content-type:'
problems in the past. A quick glance at the RFC revealed nothing
about how conflicting headers should be handled.
Re: Different Content-type: headers, Firefox and IE
If your Web server is Apache (and perhaps others), set the .htaccess
file to contain:
AddType application/pdf pdf
This goes in the root of your domain; that is, for my Web site, it would
go directly in www.rossde.com, which is www.vcnet.com/~rossde. Then, it
should override what your server's default .htaccess file is doing,
which is incorrect.
You should also contact your host server's operator and request that
they correct their default .htaccess file.
David E. Ross
I use SeaMonkey as my Web browser because I want
a browser that complies with Web standards. See
- » What html do I insert in opening Flash page to be search engine friendly?
- — Previous thread in » HTML Authoring Forum