Re: cgiwrap & nph-build.cgi - Bad header=HTTP/1.0 200In 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
Re: cgiwrap & nph-build.cgi - Bad header=HTTP/1.0 200In 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!