LWP ->set_cookie

Andy Lester <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
What's goin' on here?

#!/usr/bin/perl

use HTTP::Cookies;

use Data::Dumper;

my $cj = HTTP::Cookies->new;

$cj->set_cookie(
     1,                     # version
     'username',            # key
     'joe',                 # value
     '',                    # path
     'tparsons.co.uk',      # domain
     '80',                  # port
     '/blah',                     # path_spec
     0,                     # secure
     3600,                  # maxage
     0,                     # discard
);
print $cj->as_string, "\n";
{use Data::Dumper; local $Data::Dumper::Sortkeys=1;
     print Dumper( $cj)}


Why does the cookie not set?  And why does ->set_cookie() never return  
anything to show failure?  And why does ->set_cookie() never get  
exercised in the test suite?

Should ->set_cookie() go away?  How else would one set a cookie?

Thanks,
xoxo,
Andy

--
Andy Lester => [email protected] => www.theworkinggeek.com => AIM:petdance
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.