Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (16 sloc) 0.676 kb
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
1 from base import *
2
45cc694 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2762 5dc97367-97f1...
alobbs authored
3 DIR = "pathinfo2/deep/deep"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
4 PATH_INFO = "/param1/param2/param3"
5
6 class Test (TestBase):
7 def __init__ (self):
bc8d926 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2179 5dc97367-97f1...
alobbs authored
8 TestBase.__init__ (self, __file__)
45cc694 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2762 5dc97367-97f1...
alobbs authored
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
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
13
14 def Prepare (self, www):
45cc694 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2762 5dc97367-97f1...
alobbs authored
15 d = self.Mkdir (www, DIR)
16 self.WriteFile (d, "test.php", 0444,
fe0ecb6 @alobbs A few warning were being printed by PHP. This patch fixes a few
alobbs authored
17 '<?php echo "PathInfo is: ".$_SERVER[\'PATH_INFO\']; ?>')
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
18
19 def Precondition (self):
327c12c @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@491 5dc97367-97f1-...
alobbs authored
20 return os.path.exists (look_for_php())
Something went wrong with that request. Please try again.