又有了新困难。

mao 2000-02-27 09:07:00
大家好。
报表问题比较头疼。连问几家厂商,也没有Unix系统 netscape服务器的报表控件,Readsoft和CrystalReport都不支持。请各位兄台给小弟出出主意。
另外Netscape下的Cgi 又出了问题。访问时总是报:Server has encounted an internal error.
结果到服务端查了日志,里面有这么一段话:
[27/Feb/2000:20:21:54] failure ( 2376): for host 192.168.1.31 trying to POST /cgi_bin/temp, cgieng_scan_headers reports: the CGI program /home/zqzhang/insms/cgi_bin/temp did not produce a valid header (name without value: got line "")
我的exe文件是
printf(
"<html>\n"
"<head>\n"
"<meta http-equiv=\"Content-type\" charset=gb2312\">%c%c\n"
"<title>江苏智能网业务管理系统</title>\n"
"</head>\n"
"<body background=\"images/bk_yellow.JPG\" bgproperties=\"fixed\" topmargin=\"0\" leftmargin=\"0\"\n"
"marginheight = \"0\">\n"
"hello our people"
"</body></html>",10,10);
原以为是 "<meta http-equiv=\"Content-type\" content=\"text/html; charset=gb2312\">%c%c\n"的原因,改成“content-type:text/html”还是不行。我简直无计可施。
再一次向大家求助。
焦急的 *_*
...全文
210 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
radish 2000-03-01
  • 打赏
  • 举报
回复
把下面用这段加到头里面,打印的页面就变了
<link rel=alternate media=print href="D:\test.htm" type="text/html">
mao 2000-03-01
  • 打赏
  • 举报
回复
问题只有一个有无适合Unix下的Netscape的报表
mao 2000-02-29
  • 打赏
  • 举报
回复
果然如Beck兄所说,但小弟在编译执行时确实遇到了各种困难。但现在的问题比较麻烦。
因为我的应用是基于数据库。单独加数据库证明连接有效。
单独测试CGI输出证明也有效,主要是出在编译上,因为即使我不加上跟数据库有关的东西。但只要编译时包含Sybase的库,就出问题,驱除该库,就输出正常。怀疑是CGI编译执行时调用该库,请问该如何办如何设置,驱除了库那跟数据库就没法连,实在头疼。
请各位兄台在帮忙想一想。
radish 2000-02-28
  • 打赏
  • 举报
回复
delete
"<meta http-equiv=\"Content-type\" content=\"text/html; charset=gb2312\">%c%c\n"
把头去掉,你这是一段中文确省的HTML,可以不用的
beck 2000-02-28
  • 打赏
  • 举报
回复
iis居然可以? faint,你根本就没有输出头嘛. i have say that, hmm, again. u cgi
must like this:

printf( "Content-type: text/html\n\n" );
printf(
"<html>\n"
"<head>\n"
"<meta http-equiv=\"Content-type\" charset=gb2312\">%c%c\n"
"<title>江苏智能网业务管理系统</title>\n"
"</head>\n"
"<body background=\"images/bk_yellow.JPG\" bgproperties=\"fixed\" topmargin=\"0\" leftmargin=\"0\"\n"
"marginheight = \"0\">\n"
"hello our people"
"</body></html>",10,10);
mao 2000-02-28
  • 打赏
  • 举报
回复
小弟把标准html放入下面目录,结果也不能正常出现,报同样错,
另外忘了告诉我把cgi_bin置成CGI目录了。
同样这段程序在IIS(microsoft)下是完全正确的。可以肯定是Netscape自己的原因,哪位对Netscape配置较熟的朋友,帮帮我!!!
mao 2000-02-28
  • 打赏
  • 举报
回复
%c%c其实就是\n\n改过来仍旧无用。
mao 2000-02-28
  • 打赏
  • 举报
回复
cgi_bin/login did not produce a valid header (program terminated without a valid CGI header. Check for core dump or other abnormal termination) !!
Why?
I am serious!
beck 2000-02-27
  • 打赏
  • 举报
回复
u cgi must output
""Content-type: text/html\n\n" first
then the html.

4,356

社区成员

发帖
与我相关
我的任务
社区描述
通信技术相关讨论
社区管理员
  • 网络通信
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧