CGI vs mod_python

Victor Subervi victorsubervi at gmail.com
Wed Nov 11 08:25:01 EST 2009


On Tue, Nov 10, 2009 at 6:12 PM, John Nagle <nagle at animats.com> wrote:

> ssteinerX at gmail.com wrote:
>
>>
>> On Nov 9, 2009, at 10:18 AM, Victor Subervi wrote:
>>
>>  Yes, obviously. But if CGI is enabled, it should work anyway, should it
>>> not?
>>>
>>
>> Depends on what "CGI is enabled" means.
>>
>> Usually, web servers are not set to just handle cgi scripts from anywhere,
>> but only from specific file system locations.  Otherwise, an an anonymous
>> upload could be executed as CGI and wreak havoc.
>>
>
>    If it won't work as a CGI program, which is relatively straightforward,
> it probably won't work at all.
>
>    First, write some trivial CGI program in Python and make sure the
> environment works - Python loads, the Python program loads, and you
> can get a response back.
>
>    Bear in mind that most hosting services don't make much of an attempt
> to support Python. Expect important libraries to be missing or obsolete.
>

The problem was not CGI. It turned out to be line-endings being mangled by
Windoze and __invisible __ in my unix editor. Lovely.
Thanks anyway,
V
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091111/d707a088/attachment-0001.html>


More information about the Python-list mailing list