I am totally new to Perl and have just inherited a site I need to make alterations to. The first thing is to get it to run in IIS. Currently it is returning the error:
"The specified CGI application misbehaved by not returning a complete set of HTTP headers."
I found the following article ( and tried to add the block of text it suggested. I don't think I did it right at all though.
The routine I have that I need to alter is:
sub http_header {
#print STDERR "http_header: cookies = $hccp::cookie_answers, $hccp::cookie_qtaken\n";
print $hccp::query->header(-expires=>'now',
-Pragma=>'no-cache',
-cookie=>[$hccp::cookie_answers,$hccp::cookie_qtaken,$hccp::cookie_session,$hccp::cookie_survey]);
}
Can anyone tell me how I need to alter this to make it work in IIS?
Thanks,
Eva
"The specified CGI application misbehaved by not returning a complete set of HTTP headers."
I found the following article ( and tried to add the block of text it suggested. I don't think I did it right at all though.
The routine I have that I need to alter is:
sub http_header {
#print STDERR "http_header: cookies = $hccp::cookie_answers, $hccp::cookie_qtaken\n";
print $hccp::query->header(-expires=>'now',
-Pragma=>'no-cache',
-cookie=>[$hccp::cookie_answers,$hccp::cookie_qtaken,$hccp::cookie_session,$hccp::cookie_survey]);
}
Can anyone tell me how I need to alter this to make it work in IIS?
Thanks,
Eva