Martin v. Löwis <mar...@v.loewis.de> added the comment: > Martin, that is an interesting viewpoint, and one I considered, but > didn't state, because it seems much too restrictive. Most CGI > programs are written in scripting languages, not compiled to .exe. > So it seems the solution should allow for launching at least Perl and > Python scripts, as well as .exe.
Notice that it does support launching Python scripts. I disagree that Perl scripts need to be supported. The idea of CGI is really that "programs" get run by the web server, with the notion of "programs" clearly deviating from system to system. Window really doesn't support "scripts" (in the hash-bang sense), and it isn't the function of http.server to extend Windows here. At best, support for .bat files might be negotiable, using cmd.exe to launch them (but I personally would not). Anybody who wants support for other kinds of scripts on Windows will have to subclass CGIHTTPRequestHandler (and it might be useful to simplify subclassing that class). In any case, the bug as stated ("def executable is simply wrong") has a clear resolution - make it match what the rest of the code supports. Anything beyond that is a feature request. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10483> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com