MKDoc doesn't generate HTTP headers the mod_perl way, see: http://perl.apache.org/docs/1.0/guide/porting.html#Generating_correct_HTTP_Hea ders and http://perl.apache.org/docs/general/correct_headers/correct_headers.html
Not a bug
The “errors” documented here are not actually errors they are just the extra data that chunked transfer encoding adds, this was pointed out by Henrik Nordstrom:
On Fri 09-Jun-2006 at 01:30:30PM +0200, Henrik Nordstrom wrote:
Googled for something else and found this page…
http://www.mkdoc.org/bugs/stable/normal/http-headers/
not sure if mailing you is the correct method of contact, but it is what I found on the page.. Not interested in mkdoc as such, but I thought I might explain what those strange looking lines is about.
there is nothing wrong with those extra lines in the responses. Those responses are simply encoded using chunked transfer encoding as indicated in the header “Transfer-Encoding: chunked”. chunked transfer encoding is a key component of HTTP/1.1 allowing for persistent HTTP connections even when the content-length is not known.
Rough description of the format:
NNN<newline> [0xNNN octets of data] <newline> [repeat for as many chunks of data there is..] 0<newline> <newline> END OF RESPONSEThere is some fineprint not included above such as trailer headers. See RFC2616 for full details if you are interested.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1
Extra line before the document
The easiest way to see the errors is using telnet:
telnet mkdoc.com 80 Trying 195.10.230.124... Connected to mkdoc.com (195.10.230.124). Escape character is '^]'. GET / HTTP/1.1 Host: mkdoc.com HTTP/1.1 200 OK Date: Wed, 27 Apr 2005 13:55:18 GMT Server: Apache/1.3.31 (Unix) mod_throttle/3.1.2 mod_gzip/1.3.26.1a mod_perl/1.29 Vary: * Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 45a0 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ...
The odd thing in the example above is the line before the DOCTYPE with 45a0 — what generates this, where is it from?