Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (23 sloc) 0.933 kb
from base import *
CONF = """
vserver!1!rule!310!match = directory
vserver!1!rule!310!match!directory = /post3
vserver!1!rule!310!handler = common
class Test (TestBase):
def __init__ (self):
TestBase.__init__ (self, __file__) = "Post request"
self.expected_error = 200
self.conf = CONF
self.request = "POST /post3/test.php HTTP/1.1\r\n" +\
"Host: localhost\r\n" +\
"Content-type: application/x-www-form-urlencoded\r\n" +\
"Connection: Close\r\n" + \
"Content-length: 8\r\n" = "12345678"
def Prepare (self, www):
self.Mkdir (www, "post3")
self.WriteFile (www, "post3/test.php", 0444, "<?php echo $_POST; ?>")
def Precondition (self):
return os.path.exists (look_for_php())
Jump to Line
Something went wrong with that request. Please try again.