調(diào)試網(wǎng)頁時出錯,無意中發(fā)現(xiàn)出錯頁的源文件中有這樣一段注釋:
<title>404 Not Found</title>
<h1>404 Not Found</h1>
/asfsfdsd.jsp was not found on this server.
<p /><hr />
<small>
Resin 2.0.3 (built Wed Oct 17 10:11:08 PDT 2001)
</small>
</address>
<!--
-- Unfortunately, Microsoft has added a clever new
-- "feature" to Internet Explorer. If the text in
-- an error's message is "too small", specifically
-- less than 512 bytes, Internet Explorer returns
-- its own error message. Yes, you can turn that
-- off, but *surprise* it's pretty tricky to find
-- buried as a switch called "smart error
-- messages" That means, of course, that many of
-- Resin's error messages are censored by default.
-- And, of course, you'll be shocked to learn that
-- IIS always returns error messages that are long
-- enough to make Internet Explorer happy. The
-- workaround is pretty simple: pad the error
-- message with a big comment to push it over the
-- five hundred and twelve byte minimum. Of course,
-- that's exactly what you're reading right now.
-->
這就叫以牙還牙:凡是用Resin服務(wù)器的網(wǎng)站,都不會出現(xiàn)M$的惱人友好信息了。
版權(quán)所有 羅明