Suppress IE HTTP Error Pages

Hi,

I'm trying to send custom error-pages with the HTTP-Server I wrote. No

when it comes to the IE (6 in my tests), the browser replaces the error

pages I send with it's own. And in this case destroying the website

layout I use.

How can I assure that my custom error pages will be used?

I'm sending for example:

[code]

HTTP/1.0 404 Not Found

Connection: close

Date: the actual date

Server: myHTTP Server v.0.0.1

Content-Type: text/html

Content-length: 4711

<!DOCTYPTE..........

[/code]

and so on...

Greetz

Spanky

[555 byte] By [Spankmaster79] at [2007-12-27]
# 1
In IE7 & IE6 its based on the size of the page. So if you make your error page large enough (in bytes) IE will show it instead. I think its 512 bytes of content which is the trigger point.
Ixpah at 2007-9-4 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 2
thx for the info. Then the problem must be in the Socket Handling.....

Does someone know what parameters are required to answer a HTTP-Post

request ? The Moment I close the connection it show's the "This Page

Cannot Be Shown" error-page...

Spankmaster79 at 2007-9-4 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...