Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

cgiwrap & nph-build.cgi - Bad header=HTTP/1.0 200

Quote Reply
cgiwrap & nph-build.cgi - Bad header=HTTP/1.0 200
I saw this problem posted before, but not a good solution. What needs to be done to cgiwrap on the server in order to correct this problem?

------------------


Greg
grubby@earthling.net
Quote Reply
Re: cgiwrap & nph-build.cgi - Bad header=HTTP/1.0 200 In reply to
Try commenting out all

print "HTTP/1.0 200";

lines. Worked for me.


------------------
Sincerely,

Jason C. Levine
http://members.aol.com/jason1178/
Quote Reply
Re: cgiwrap & nph-build.cgi - Bad header=HTTP/1.0 200 In reply to
Try going to your admin-html.pl file in your text editor, find the build section and replace files that say:
nph-build.cgi

with:
/cgi-bin/nph-cgiwrap/yourpassword/cgi/to your files/nph-build.cgi

wing
Quote Reply
Re: cgiwrap & nph-build.cgi - Bad header=HTTP/1.0 200 In reply to
My friend Eclipse helped me out with this problem...like the guyn said above remove all the HTTP:/200 or whatever comments from the script and it will run fine...I have no idea why they added that crap to the script anyway

------------------
Shawn Muder aka King Of Chaos

www.realmsofevil.com
Quote Reply
Re: cgiwrap & nph-build.cgi - Bad header=HTTP/1.0 200 In reply to
I have the cgiwrap thing to. The file,

nph-build.cgi

gives me this for a return:

Internal Server Error

malformed header from script. Bad header=HTTP/1.0 200 OK


Here is the script nph-build.cgi where I have seen this, HTTP/1.0 200 OK



# Required Librariers
# --------------------------------------------------------
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \

require "links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/links.def";
$build_use_templates ?
require "$db_lib_path/site_html_templates.pl" :
require "$db_lib_path/site_html.pl";
use vars qw(%category %subcategories @links @new_links @cool_links %stats $grand_total $use_html $nph $date $time);
};
if ($@) {
print "HTTP/1.0 200 OK\n";
print "Content-type: text/plain\n\n";
print "Error including libraries: $@\n";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
exit;
}
# ========================================================

When I remove it it states the same error so in short, I've come to the conclusion that this script sucks!