|
#!perl
print << "EOF" ;
Content-type: text/html
<HTML>
<HEAD>
<TITLE>CGI</TITLE>
<BODY>
Hello CGI!
</BODY>
EOF
http://localhost:8080/cgi-bin/hello2.cgi
Hello CGI!
一个需留意的是在Content-type: text/html与<HTML>中是必须空一行的,
否则如下会
#!perl
print << "EOF" ;
Content-type: text/html
<HTML>
<HEAD>
<TITLE>CGI</TITLE>
<BODY>
Hello CGI!
</BODY>
EOF
http://localhost:8080/cgi-bin/hello2.cgi
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@domain and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
就这一行我足足找了好久,为什么。
(现在在win下别BS我了,我是用Linux的) |
|