Hello all
Quick form of my question is: I need "switch on" cookies support in
lwp-request with https scheme of URL. Is there common way to do it?
I can write cookie support for my own case but lwp-request looks very
convenient and is exactly what I need except "cookies with https"...
I tried to add something like (from lwpcook book)
my $JARFILENAME = "/tmp/cookie.jar";
my $cookies = HTTP::Cookies->new(File => $JARFILENAME, AutoSave =>
1);
$self->cookie_jar($cookies);
to "sub new" in package RequestAgent (file lwp-request) but unsuccessfully
because of the error:
Can't locate object method "epath" via package "URI::https" at
/perl/site/lib/HTTP/Cookies.pm line 110.
Really this request results in sequence of redirections to various
https-URLs on the same host and finally they asks me authorization. If it's
Ok they set cookies and... well all Ok if I send them this cookies header.
Any tips will be greatly appreciated
Serguei