W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2007

[Bug 4586] LWP retrieves empty page

From: <bugzilla@wiggum.w3.org>
Date: Sun, 27 May 2007 00:25:38 +0000
CC:
To: www-validator-cvs@w3.org
Message-Id: <E1Hs6Zm-0005Oq-Hc@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4586


ot@w3.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ERROR "no Doctype found"    |LWP retrieves empty page
                   |when checking by Referer    |




------- Comment #2 from ot@w3.org  2007-05-27 00:25 -------
(In reply to comment #0)
> The validator works fine both via "File Upload" and "Direct Input", but FAILS
> when fired by referer ("uri=?referer"). It also fails the complete URL is
> passed as parameter.
> 
> The complete error message:
> -------------------------------------------------
>  This page is not Valid (no Doctype found)!
>  Error Line 1 column 0: end of document in prolog.
> -------------------------------------------------

Apparently this has nothing to do with the document type. If you turn on the
"show page source" option, you will see that the validator is given an empty
document to validate (and hence, does not find a doctype - or any content for
that matter).

I traced the issue down to libwww-perl, the (usually extremely rubust) library
the validator uses to retrieve documents on the web. When using this library,
one gets empty content back from your server.

Not sure what is going on between LWP and your server, but this is a very rare
case. Possibly, the fact that your server is sending two "Content-Type" HTTP
headers could be confusing LWP, but I'm not sure about it yet.
Received on Sunday, 27 May 2007 00:25:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:22 UTC