[X4U] OT - Secure Web Page Validation Problem

Eugene list-themacintoshguy at fsck.net
Mon Dec 19 00:15:37 PST 2005


On Sun, Dec 18, 2005 at 08:26:26PM CST, Milton van der Veen <miltonlist at hurontel.on.ca> wrote:
: On Dec 18, 2005, at 4:42 PM, Eugene wrote:
: >On Sat, Dec 17, 2005 at 10:17:05PM CST, Milton van der Veen <miltonlist at hurontel.on.ca> wrote:
: >:
: >: But I keep getting people using Firefox browser who tell me
: >: they're getting the HTML code in their browser instead of
: >: the rendered page.
: >: <https://host.zerowebhosting.com/scaw/secure/index.shtml>
: >:
: >[...]
: >:
: >: I've checked with my ISP and they assure me that their
: >: server is set up correctly. They also tell me that the page
: >: is coded correctly.  But I still get regular complaints ...
: >: especially now as the giving season is here.
: >
: >Your ISP is run by morons.  Their web server is set up
: >incorrectly.  When a browser goes to your URL, it gets the
: >following response headers:
: >
: >>Date: Sun, 18 Dec 2005 21:29:45 GMT
: >>Server: Apache/1.3.33 (Unix)
: >>PHP/4.3.10 Rewrit/1.1a mod_ssl/2.8.22 OpenSSL/0.9.7e
: >>Last-Modified: Sun, 18 Dec 2005 06:23:54 GMT
: >>Etag: "21b013-3e8a-43a5007a"
: >>Accept-Ranges: bytes
: >>Content-Length: 16010
: >>Content-Type: text/plain
: >>
: >>200 OK
: >
: >The "Content-Type" header is set to "text/plain".  This means that the
: >web server is telling your web browser that the following page is a
: >plain text page.  If it was set up correctly, it would report an HTML
: >page with a Content-Type of "text/html".
: 
: Thanks for the additional ammunition, Eugene. I can't find anywhere  
: in my code where I declare the code as being plain text. But I have  
: gone through my files and removed the "s" in the extension. Now, it  
: seems to be working all right. Did I not have to go to the trouble?  
: The link is now:
: <https://host.zerowebhosting.com/scaw/secure/index.html>
: 
: And Firefox seems to be having no trouble with it now.

Yep, that worked.  The Content-Type is coming back as text/html
as it should.  The problem was likely with ".shtml" (which was
not only unneccesary, but also only works on web servers with
that feature enabled).  Still, your ISP is still run by morons.
They should have realized the problem within a minute of you
reporting the issue.


-- 
Eugene
http://www.coxar.pwp.blueyonder.co.uk/


More information about the X4U mailing list