Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookies and LWP::UserAgent

Status
Not open for further replies.

fortytwo

Technical User
Apr 18, 2000
206
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top