Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- LWP::UserAgent Cookie question
September 29, 2015, 7:47 am
rate this thread
How do I tell LWP::UserAgent I want to use (from curl):
--header 'Cookie: oraclelicense=accept-securebackup-cookie'
These two attempts give me a hard time:
$ua->default_headers ( "Cookie:
$ua->cookie_jar( "oraclelicense=accept-secure-backup-cookie" );
Re: LWP::UserAgent Cookie question
I'd have to do some reading to answer that, but I always use a
cookie file and place the cookies in there and let LWP use them.
use 'file' => $CookieFile if allowed in ua.
or I usually use:
my $cookie_jar = HTTP::Cookies->new('file' => $CookieFile);