python requests get访问文件提示500 - Internal Server Error. GET / cgi/ url_ redirect. Apacheで、 エラー500で「 Internal Server Error」 となる原因としては、 以下が考えられる。 CGIの先頭にあるperl. · It looks like the print statement in Python adds a \ n itself. And again, you forgot the empty line between header and body. Therefor, the following should work:. I am trying to run a simple cgi script after configuring my server. My script looks like this: print " Content- type: text/ html" print print " < html> < head>