擅长:python、mysql、java
<p>为了完整起见,本文将在上述评论之后作为答案发布。</p>
<p>如上所述,cgi脚本应该由某个服务器执行。这是摘要<a href="http://www.ietf.org/rfc/rfc3875" rel="nofollow">from CGI 1.1 RFC</a>:</p>
<blockquote>
<p>The Common Gateway Interface (CGI) is a simple interface for running
external programs, software or gateways under an information server in
a platform-independent manner. Currently, the supported information
servers are HTTP servers.</p>
</blockquote>
<p>有关环境变量(丢失并触发错误)的信息,请参阅RFC中的第4.1节。</p>