俺用IntraWeb写的CGI程序,出现下列情况是怎么回事?(50分)

L

lyfwz

Unregistered / Unconfirmed
GUEST, unregistred user!
俺在Delphi7环境下编程运行正常,但不在开发环境下运行
如://localhost/dj/iwproject.exe/start
提示如下错误:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
The headers it did return are:
 
我也碰到这个问题
 
You have either not deployed the CGI to your web server correctly or the system path is incorrect. CGI apps that are dynamically linked to the Run Time Library(RTL) or use run-time packages must have the proper DLLs and BPLs available to them on the system path. VCL50.BPL, CC3250.dll, INET50.BPL and BORLNDMM.DLL are a few shared libraries that are most commonly needed by CGI apps. Make sure these and any other necessary DLLs and BPLs are accessible to the CGI.
The text file "deploy.txt", found in the root folder of your C++ Builder installation, contains additional information on this subject.
 
没有返回完整的HTTP头所以........
 
intraweb要用自己的服务器运行,其他的服务器比如IIS好象是不行的。
直接在本地执行你的intraweb cgi exe,然后再在ie 中输入地址,应该就对了
 
1、要使用stand alone application的EXE程序,需要先用 IWProject.exe -install注册,
然后在组件服务中启动。在浏览器中输入http://locahost:xxxx就可以访问。xxx是程序中
设置的端口号。
2、使用ISAPI application向导建立的dll程序,将其放到有执行权限的虚拟目录webtest下,在
IE中输入http://localhost/webtest/IWISAPIProject.dll就可以访问了,不用加端口号,
加了反倒出不来。
3、若程序中设置了启动命令,则要加上此启动命令如http://localhost/webtest/IWISAPIProject.dll/start
 
多人接受答案了。
 

Similar threads

I
回复
0
查看
807
import
I
I
回复
0
查看
732
import
I
I
回复
0
查看
712
import
I
I
回复
0
查看
815
import
I
顶部