CGI Error - CGI application misbehaved by not returning a complete set of HTTP Header

HMM
Newbie Member
16Nov2007,00:18   #1
HMM's Avatar
Guys, I am getting following error,

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

Here is a program,
Code:
use CGI qw/:all/;
use MIME::Base64;

$web = new CGI;
$FirstScreenIn = 1;
require "d:/inetpub/APP/cgi/cookie/GetCookie.pl";
&GetCookie;

if ($UsernameIn eq "") {
   print $web->header();
   print "REDIREDCT*****".$UsernameIn;

} else {
...
}
GetCookie.pl
Code:
sub GetCookie {
#!perl -w
use CGI qw/:standard/;
use CGI::Cookie;
use MIME::Base64;
%Cookies = fetch CGI::Cookie;
...
use SOAP::Lite;
I use activePerl and is hosted by IIS 5.0

Can anyone give my direction to look for the issue? TIA

Last edited by shabbir; 16Nov2007 at 07:39.. Reason: Code block
Team Leader
16Nov2007,10:14   #2
pradeep's Avatar
The required file GetCookie.pl should return a true value!