简体   繁体   中英

python cgi on IIS

How do you set up IIS so that you can call python scripts from asp pages?

Ok, so I found the answer to that question here: http://support.microsoft.com/kb/276494

So on to my next question: How do you call a cgi script from within classic asp (vb) code? Particularly one which is not in the web root directory.

You could also do it this way .

I don't believe that VBScript as hosted by IIS has any way of executing an external process. If you are using python as an AXscripting engine then you could just use the sys module. If the script you're calling is actually meant to be a cgi script you'll have to mimic all the environment variables that the cgi uses. The alternative is to put the script on the python path, import it and hope that it is modular enough that you can call the pieces you need and bypass the cgi handling code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM