Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.425 kb
from base import *
DIR = "post1"
class Test (TestBase):
def __init__ (self):
TestBase.__init__ (self, __file__) = "Post request without length"
self.request = "POST /%s/test.php HTTP/1.0\r\n" % (DIR)
self.expected_error = 411
def Prepare (self, www):
d = self.Mkdir (www, DIR)
self.WriteFile (d, "test.php", 0444, "<?php echo $_POST; ?>")
Jump to Line
Something went wrong with that request. Please try again.