Article ID: 276494
Python is an interpreted scripting language similar in concept to Microsoft Visual Basic Script (VBScript), Microsoft JScript, Perl, or other scripting languages. While Internet Information Server (IIS) uses the Windows Scripting Host for its VBScript and JScript needs, IIS can use other script interpreters for Active Server Pages (ASP) as well as simple Common Gateway Interface (CGI) scripts. This article describes how to use Python as your scripting language of choice for both CGI and ASP.
You can choose any Python interpreter as the script engine for processing Python scripts. The example in this article uses ActiveState's ActivePython 2.0.
The following steps show how to set up the installed Python interpreter as a script engine for use with IIS and ASP.
Create a file in a text editor such as Microsoft Notepad, and include the following lines of code. Save the file in the scripts folder as Test.py.
Browse "Test.py" on the Web site:
http://<computer_name>/scripts/test.pyAlternatively, you can use the Python interpreter as your script interpreter in your ASP pages. After you have the Python scripting engine registered, create a file by using Notepad and include the following lines of code. Save the file in the scripts folder as Python.asp.
Browse "Python.asp" on the Web site:
For more information on Python see:
http://www.python.org/For the ActiveState Python Interpreter see:
The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.
Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
Article ID: 276494 - Last Review: June 19, 2014 - Revision: 3.0
Contact us for more help