[Tutor] Re: Run python cgi in local Windows???

Rob Andrews rob@uselesspython.com
Mon Feb 17 08:29:04 2003


Your version of Windows may have also come with Personal Web Server, which
should do the trick.

-Rob A.

> On Sat, Feb 15, 2003 at 02:36:04AM +0000, prog wrote:
> | I am using PythonWin and would like to make some python cgi's. =20
> | is there a possibility that a cgi can run on a local Windows which
> | is NOT a web server?
>
> No.  CGI is the specification of the interface between the web server
> and the application.  Without the web server, you don't have CGI.
> Instead you would have a regular application.
>
> | For example, when you type:
> |=20
> |  c:/python/mycounter.cgi=20
> |=20
> | in the address box of the IE, the IE triggers the python or whatever
> | machnism and executes the cgi and display the 'print ...' to back to
> | the browser?
>
> No, IE simply reads the file, which has a MIME type of text/plain, and
> renders it according to the MIME type.  No execution has occurred.
>
> If you want to test out CGI scripts on your own machine, download
> apache and set it up.
>