YellowRubberDuckie
IS-IT--Management
I have the following script
use LWP::UserAgent;
use CGI::Cookie;
$cookie1 = new CGI::Cookie(-name=>'JSESSIONID',-value=>'53449883E3A4A2E9322091F2b43062F5',-domain=>'$cookie2 = new CGI::Cookie(-name=>'MTVIPREG',-value=>'true',-domain=>'
my $ua = LWP::UserAgent->new(env_proxy => 1,keep_alive => 1,timeout => 30);
$ua->cookie_jar([$cookie1,$cookie2]);
$response = $ua->get('
When I run this I get the error message
"Can't call method "add_cookie_header" on unblessed reference."
What does this mean?
What am I doing wrong?
Thanks
Mitch
use LWP::UserAgent;
use CGI::Cookie;
$cookie1 = new CGI::Cookie(-name=>'JSESSIONID',-value=>'53449883E3A4A2E9322091F2b43062F5',-domain=>'$cookie2 = new CGI::Cookie(-name=>'MTVIPREG',-value=>'true',-domain=>'
my $ua = LWP::UserAgent->new(env_proxy => 1,keep_alive => 1,timeout => 30);
$ua->cookie_jar([$cookie1,$cookie2]);
$response = $ua->get('
When I run this I get the error message
"Can't call method "add_cookie_header" on unblessed reference."
What does this mean?
What am I doing wrong?
Thanks
Mitch