I followed the steps in a respose to how to Set up Python for IIS : Python on IIS: how?
But when I write my script and try running it it fails on the first line. I get this error message:
HTTP Error 502.2 - Bad Gateway The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are " File "C:\Development\Python\helloworld.py", line 1 print 'Content-Type: text/plain' ^ SyntaxError: invalid syntax ".
This is my frist attempt at python. What is going wrong?
print('Content-Type: text/plain')