Subject: | POE Test assumes not.localhost does not exist. |
I'm using the DNS servers provided by Suddenlink. Their DNS servers
catch everything and relay it back to their own webserver. This is bad
practice, not nice, and a shitty dns hack that results in huge security
issues -- with that said the test t/01 fails with:
not ok 11 - unexpected response
# Failed test 'unexpected response'
# at ./t/01_request.t line 175.
# path(/badhost) code(400)
# response(((
# 400 Bad Request
#
# <html>
# <HEAD><TITLE>Error: Bad Request</TITLE></HEAD>
# <BODY>
# <H1>Error: Bad Request</H1>
# incomplete response b 6. Wanted 259 octets. Got 200.
# </BODY>
# </HTML>
# )))
ok 12 - got 408 response for timed out request
# Looks like you failed 1 test of 12.
If I disable the test in the eof the fail sub for "incomplete response
b". I get:
# Failed test 'unexpected response'
# at ./t/01_request.t line 175.
# path(/badhost) code(302)
# response(((
# HTTP/1.1 302 Found
# Connection: close
# Date: Tue, 24 Feb 2009 08:51:32 GMT
# Location:
http://search.suddenlink.net/index.php?origURL=http://not.localhost/badhost
# Server: Apache/2.2.6 (Unix) PHP/5.2.5 mod_ssl/2.2.6 OpenSSL/0.9.8g
mod_perl/2.0.4 Perl/v5.8.5
# Content-Length: 259
# Content-Type: text/html; charset=iso-8859-1
#
# <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
# <html><head>
# <title>302 Found</title>
# </head><body>
# <h1>Found</h1>
# <p>The document has moved <a href="http://search.suddenlink.net
/index.php?origURL=
# )))
What is happening is my not.localhost exists, so I get a 200, with a
bigger file size than you do. This triggers the eof failure because the
max size is 200 octets and I'm getting 270ish.
The fix is to use a better dead host. Maybe an IP that doens't exist
254.254.254.1