Permalink
Newer
Older
100644 21 lines (16 sloc) 676 Bytes
4
PATH_INFO = "/param1/param2/param3"
5
6
class Test (TestBase):
7
def __init__ (self):
8
TestBase.__init__ (self, __file__)
9
self.name = "PathInfo, php"
10
self.request = "GET /%s/test.php%s HTTP/1.0\r\n" %(DIR, PATH_INFO)
11
self.expected_error = 200
12
self.expected_content = "PathInfo is: "+PATH_INFO
15
d = self.Mkdir (www, DIR)
16
self.WriteFile (d, "test.php", 0444,
17
'<?php echo "PathInfo is: ".$_SERVER[\'PATH_INFO\']; ?>')
20
return os.path.exists (look_for_php())