At 06:13 PM 10/10/2001 -0400, Geoff Talvola wrote:
>I finally got around to testing this.  You're right, wkcgi.exe hangs when 
>used with IIS 4.0 if the page you're viewing forwards to another 
>page.  This happens even with Webware from CVS so moving up to the latest 
>CVS won't fix it.
>
>wkcgi.exe does work properly with Apache though.  Strange.

IIS and Apache treat some CGI environment variables differently, so I 
suspect the problem lies there.

For example in Apache, a URL like http://localhost/Tests/env.cgi/path gives:
   PATH_INFO: /path
   SCRIPT_NAME: /Tests/env.cgi

But I _believe_ IIS gives:
   PATH_INFO: /Tests/env.cgi/path
   SCRIPT_NAME: /Tests/env.cgi

Also, we assume in HTTPRequest.pathInfo() that PATH_INFO's first char is /. 
I don't know if that's true in IIS.

I recommend running env.cgi under both servers and looking at the difference.

#!python

print '''Content-type: text/html

<html> <p>'''

import os

print '<table>'
keys = os.environ.keys()
keys.sort()
for key in keys:
         print '<tr> <td>%s:</td> <td>%s</td> </tr>\n' % (key, os.environ[key])
print '</table>'



I can't take this further, because I don't use or even have IIS.

Don't forget to try a URL with extra path info:
   http://localhost/env.cgi/extra/path


-Chuck


_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to