CGI錯誤,誰能幫我解決這個問題?(100分)

  • 主题发起人 shinesoft
  • 开始时间
S

shinesoft

Unregistered / Unconfirmed
GUEST, unregistred user!
我用DELPHI的web application寫WIN-CGI時,編譯都通過了,但在瀏覽器中運行時卻出現以
下錯誤,好象是與什麼HTTP頭信息相關,怎麼弄啊?誰能告訴我?謝啦。。
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
 
这个错误信息很模糊的,最好先用INTRABOB调试一下你的程序。
 
我也曾碰到同样的问题,关注!
 
别忘了在编CGI程序时应先返回一部分的头部,特别是Content-type:
如果你发的是Html文件,先输出:
Content-Type: text/html#10#13
#10#13
然后发送文件内容。
如果你想使用转向:
也可以发送:
Location:http://zeroworld.533.net#10#13
#10#13
以此类推。。。
明白了吗?
 
not returning a complete set of HTTP headers.
说得很明白了呀.
 
顶部