Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP Header Problem

Status
Not open for further replies.

kirsch59

Programmer
Oct 4, 2001
15
US
I've written programs that dynamically creates and downloads EXCEL spreadsheets and PDF Files. MS EXCEL and Acrobat Reader open the files outside the browser.

This past weekend out web server crashed. Everything works fine except for the spreadsheet and PDF transactions. For some unknown reason the content-type is text/html and the data is dispayed in the browser.

Is their an IIS setting or registry entry that overrides the content-type so it is always text/html?

BTW - The code works fine on my development server.

Any help is appreciated.

Thanks,
Mark
 
There is a registry entry that you need to check...search for MIME and check to see if you have extensions registered for PDF and Excel.

-DNG

 


If you ask in the IIS forum, you're likely to get a better answer. forum41

Though just in case, you might want to post your code that sets the HTTP header in ASP.



A smile is worth a thousand kind words. So smile, it's easy! :)
 
I believe the registry is fine because I have Acrobat Reader installed on the web server and when I double click on a PDF file Acrobat Reader opens and displays the PDF file.

Thanks,
Mark
 
nope...opening the application directly is different...

you need to see if that content type is registered on the server...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top