Hi All,
I hope someone can help. I have a script that gets some pages and it needs to remember the cookies. I have dones this using the cookie jar functionality of the LWP::UserAgent module:
[tt]
my $ua = LWP::UserAgent->new();
$ua->cookie_jar(HTTP::Cookies->new(file => "/path/to/lwpcookies.txt", autosave => 1));
[/tt]
except most importantly for me, it doesn't update the cookie jar when I make the request via SSL. Although everything else about the request comes down fine like the page content, the cookies do not get added to the jar although they are retrieved from the remote server. Anyone got any ideas? I have tried sending the cookies manually as part of the header but I think they are in the wrong format, what should the format of the cookies be in the header?
Will.
fortytwo
will@hellacool.co.uk
I hope someone can help. I have a script that gets some pages and it needs to remember the cookies. I have dones this using the cookie jar functionality of the LWP::UserAgent module:
[tt]
my $ua = LWP::UserAgent->new();
$ua->cookie_jar(HTTP::Cookies->new(file => "/path/to/lwpcookies.txt", autosave => 1));
[/tt]
except most importantly for me, it doesn't update the cookie jar when I make the request via SSL. Although everything else about the request comes down fine like the page content, the cookies do not get added to the jar although they are retrieved from the remote server. Anyone got any ideas? I have tried sending the cookies manually as part of the header but I think they are in the wrong format, what should the format of the cookies be in the header?
Will.
fortytwo
will@hellacool.co.uk