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