Getting python to work, Internal Server Error

后端 未结 12 1789
無奈伤痛
無奈伤痛 2021-02-08 11:07

I\'m trying to get Python scripts, called from a web browser, to work. I keep getting the error:

500 Internal Server Error

When I check my err

12条回答
  •  再見小時候
    2021-02-08 11:44

    Two things spring immediately to mind.

    1. Make sure you are outputting the Content-Type: text/html header
    2. Make sure you are adding two newlines ("\n") after the headers before you output "Hello, world" or whatever.

提交回复
热议问题