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

HMM's Avatar, Join Date: Nov 2007
HMM
Newbie Member
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
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
The required file GetCookie.pl should return a true value!