stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Gomez <>
Subject RE: question about serving pages from a database
Date Wed, 18 Jan 2006 17:05:07 GMT
The headers are actually produced by whatever script or program is writing
the pages to the browser.

Usually it's something like the following depending on the language:
setContentType("text/html");  //  If this line is missing, or is set to     
                              //"text/plain" Then we get the results we're
                              // seeing now.
out.println("<body bgcolor=\"white\">");

string title = "SessionExample";
out.println("<title>" + title + "</title>");

Do we have access to the actual code that serves the pages out of the DB?  


-----Original Message-----
From: Martin Sebor [] 
Sent: Wednesday, January 18, 2006 10:03 AM
Subject: Re: question about serving pages from a database

Benjamin Gomez wrote:
> Hi Martin,
> The problem is that the headers being returned from the server include a
> content-type of text/plain instead of text/html.  IE picks up the fact
> it is formatted as a web page and displays as a web page, but Mozilla
> formats it as it is supposed to.

Thanks. I assume the headers are part of the files themselves,
correct? I made a change to this page and added a meta tag with
the text/html content but still no dice. Do you see anything
wrong with what I did?


View raw message