Hello,
I have been using Net::SSLeay to make the HTTPS post, but now I would like
to set a cookie while sending over the post and am having trouble doing so.
Here is the Net::SSLeay code I have been doing basically to make the HTTPS
post:
($page, $response, %reply_headers)
= post_https('www.bacus.pt', 443, '/foo.cgi', '',
make_form(
'OK' => '1',
'name' => 'Sampo'
));
Will HTTP::Cookies work with Net::SSLeay?
Here is the code I was trying, but it didn't seem to work properly:
my $cookie_jar = HTTP::Cookies->new;
$cookie_jar->set_cookie(
\undef, # $version,
$key, # $key,
$val, # $val,
'/', # $path,
$COOKIE_DOMAIN, # $domain,
undef, # $port,
0, # $path_spec
0, # $secure
undef, # $maxage,
0, # $discard,
{}, # \%rest,
);
$ua->cookie_jar($cookie_jar);
Any help would be apreciated.
Thanks
Dave Stack