Thanks for the replies.
I added this following line to my code.
my $ua = new LWP::UserAgent;
$ua->cookie_jar(HTTP::Cookies->new(file=>'cookies.txt',autosave=>1,ignore_discar
d=>1));
Then I can see the cookie details in cookies.txt file. The status tells me that the page is redirected to "application.cgi". But I do not see the contents of the redirected page.
AKJ.
You can use <code> tags. please do. it will make your posts easier to read, your code easier to download, and you're much more likely to get a helpful reply. And use the preview button and look at the output before you submit a post.