- 论坛徽章:
- 0
|
系统:linux fordra 7.0
boa位置: ./boa -c /home/yen/boa
- #define SERVER_NAME "www.bxmon.com"
- #define SAVED_ENVIRONMENT "/tmp/cgicsave.env"
- #include <stdio.h>
- #include <cgic.h>
- #include <string.h>
- #include <unistd.h>
- #define CFGFILE "/home/yen/netbk/netbk.conf"
- int cgiMain() {
- char pwdstr[32],tmp[128],a[32],b[32],*p;
- FILE *fp;
- cgiFormStringNoNewlines("logpwd",pwdstr,64);
- /* Send the content type, letting the browser know this is HTML */
- cgiHeaderContentType("text/html");
- fprintf(cgiOut, "<html><title>Netbk</title>\n");
- fprintf(cgiOut,"<frameset cols=20%,*>\n");
- fprintf(cgiOut,"<frame src=menu.html noresize=noresize >\n");
- fprintf(cgiOut,"<frame src=netconf.html name=showframe />\n");
- fprintf(cgiOut,"</frameset></html>");
- }
复制代码
windows: 浏览器运行:http://192.168.0.2:1080
错误提示:502 Bad Gateway
The CGI was not CGI/1.1 compliant.
不知道是什么原因。请各位赐教。 |
|