By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,222 Members | 2,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,222 IT Pros & Developers. It's quick & easy.

CGIHTTPServer, popen3, and windoze

P: n/a
Hello all,

I may well post this a a bug on Monday (after testing with Python 2.3)
- but I thought I'd post here to see if anyone has any ideas.

The basic problem is that under Python 2.4 (and windoze XP SP2)
CGIHTTPServer isn't passing the CGI environment variables to scripts it
runs.

I've checked that the environment variables all exist in os.environ
before the subprocess is launched using popen3.

I've *also* checked that when I launch a test subprocess using popen3
myself, environment variables *are* passed on - so I'm a bit
confused...

I wonder if anyone can shed any light on this behavior ?

All the best,
Fuzzyman
http://www.voidspace.org.uk/python

P.S. I've also patched CGIHTTPServer so that it can handle paths wih
spaces and CGIs in subdirectories of the 'cgi-bin' folder. I'll
*suggest* these changes to the maintainers - but my tests were on the
original version.

Sep 11 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Fuzzyman wrote:
Hello all,

I may well post this a a bug on Monday (after testing with Python 2.3)
- but I thought I'd post here to see if anyone has any ideas.

Hmm... testing on Python 2.3 I *don't* have the same problem - but it's
very frustrating under Python 2.4 (different machine). I wonder what
else is different ?

Fuzzyman
http://www.voidspace.org.uk/python
The basic problem is that under Python 2.4 (and windoze XP SP2)
CGIHTTPServer isn't passing the CGI environment variables to scripts it
runs.

I've checked that the environment variables all exist in os.environ
before the subprocess is launched using popen3.

I've *also* checked that when I launch a test subprocess using popen3
myself, environment variables *are* passed on - so I'm a bit
confused...

I wonder if anyone can shed any light on this behavior ?

All the best,
Fuzzyman
http://www.voidspace.org.uk/python

P.S. I've also patched CGIHTTPServer so that it can handle paths wih
spaces and CGIs in subdirectories of the 'cgi-bin' folder. I'll
*suggest* these changes to the maintainers - but my tests were on the
original version.


Sep 14 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.