Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,228 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,884 people online right now. Registration is fast and FREE... Join Now!




CGI error: "did not produce a valid header"

 
Reply to this topicStart new topic

CGI error: "did not produce a valid header"

79762
13 Mar, 2007 - 09:01 AM
Post #1

New D.I.C Head
*

Joined: 6 Dec, 2006
Posts: 11


My Contributions
Hi,

When running a cgi executable on SunOne Web server 6.1, I got the HTTP4044 error. The same cgi is running well on another Unix box. Has anyone seen this before or know what may be causing this problem? Thanks in advance.

failure (10126): for host ##.###.##.### trying to GET /cgi-bin/ensbill.cgi, cgi_scan_headers reports: HTTP4044: the CGI program /process/cgi-bin/ensbill.cgi did not produce a valid header (program terminated without a valid CGI header. Check for core dump or other abnormal termination)



User is offlineProfile CardPM
+Quote Post

Amadeus
RE: CGI Error: "did Not Produce A Valid Header"
13 Mar, 2007 - 09:14 AM
Post #2

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,230



Thanked: 40 times
Dream Kudos: 25
My Contributions
Could be a number of things - file permissions, first output lines. Does the first output line produce a valid CGI header? Something like
QUOTE

Content-type: text/html

or

Content-type: text/plain

Are the file permissions (as well as any files your script may read or write to) set correctly? Can you run the script from the terminal?
User is online!Profile CardPM
+Quote Post

79762
RE: CGI Error: "did Not Produce A Valid Header"
13 Mar, 2007 - 10:24 AM
Post #3

New D.I.C Head
*

Joined: 6 Dec, 2006
Posts: 11


My Contributions
I run ensbill.cgi directly on Unix. It looks like that libclntsh.so.9.0 file is missing in $ORACLE_HOME/lib at this point.
Thanks Amadeus.


User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/4/08 03:09PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month