Skip to main content

developerWorks >  WebSphere  >  Forums  >  IBM HTTP Server  >  developerWorks

Raw HTML on browser - Http Server Serving wrong MIME type    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 2 - Pages: 1 - Last Post: Nov 5, 2009 2:57 PM Last Post By: brent.halsey Threads: [ Previous | Next ]
Debashis123

Posts: 1
Registered: Sep 25, 2009 02:14:37 PM
Raw HTML on browser - Http Server Serving wrong MIME type
Posted: Sep 25, 2009 02:31:40 PM
 
Click to report abuse...   Click to reply to this thread Reply
Hi,

We are having an issue of raw HTML(JSP) code being displayed on browser. This is an intermittent behaviour and seems to occur under high load.
In our project, the JSP pages reside in the Application Server(IBM websphere on UNIX environment and the web project runs on ATG framework).
Traffic is routed to the application server via the IBM HTTP Web servers i.e. the webservers are the first to intercept the incoming http requests.
We have tried to debug the issue and found that the response headers have different MIME type when the browser displays raw HTML code.
Somehow it is being set to text/plain instead of text/html.

Here are the response headers:

Good response:

Date: Fri, 25 Sep 2009 04:53:22 GMT
Server: IBM_HTTP_Server
Content-Length: 15012
X-ATG-Version: UNKNOWN DPSLicense/0
Keep-Alive: timeout=15, max=92
Connection: Keep-Alive
Content-Type: text/html;charset=UTF-8
Content-Language: en-US

Bad Response:

Date: Fri, 25 Sep 2009 04:52:39 GMT
Server: IBM_HTTP_Server
Content-Length: 15017
Keep-Alive: timeout=15, max=98
Connection: Keep-Alive
Content-Type: text/plain
Content-Language: en-US

We are setting the MIME type in the JSPs too like
<%@ page language="java" contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8" %>

Please let me know if anyone has faced this issue and can help me debug it.
Is it somethinng to do with the webserver setting wrong MIME type under load?
If so please let me know where to look at to fix it. Thanks!

Regards,
Debashis
brent.halsey

Posts: 2
Registered: Nov 05, 2009 02:25:55 PM
Re: Raw HTML on browser - Http Server Serving wrong MIME type
Posted: Nov 05, 2009 02:26:18 PM   in response to: Debashis123 in response to: Debashis123's post
 
Click to report abuse...   Click to reply to this thread Reply
We are also having this issue. Any idea how to fix this?
brent.halsey

Posts: 2
Registered: Nov 05, 2009 02:25:55 PM
Re: Raw HTML on browser - Http Server Serving wrong MIME type
Posted: Nov 05, 2009 02:57:28 PM   in response to: brent.halsey in response to: brent.halsey's post
 
Click to report abuse...   Click to reply to this thread Reply
Nevermind- resolved the issue by updating the httpd.conf and setting the Default_Type to text/html instead of text/plain. Thanks!
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums