[Bug 4586] LWP retrieves empty page

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