HTTP::CookieMonster

Easy read/write access to your jar of HTTP::Cookies
Download

HTTP::CookieMonster Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Olaf Alders
  • Publisher web site:
  • http://search.cpan.org/~oalders/

HTTP::CookieMonster Tags


HTTP::CookieMonster Description

HTTP::CookieMonster is a Perl module created because messing around with HTTP::Cookies is non-trivial. It's a very useful code, but using it is not always as easy and clean as it could be. For instance, instead of returning you a list of cookies, you have to use a callback: $cookie_jar->scan( \&callback )The callback will be invoked with 11 positional parameters: 0 version 1 key 2 val 3 path 4 domain 5 port 6 path_spec 7 secure 8 expires 9 discard 10 hashThat's a lot to remember and it doesn't make for very readable code.SYNOPSIS use HTTP::CookieMonster; use WWW::Mechanize; my $mech = WWW::Mechanize->new; $mech->get( 'http://www.nytimes.com' ); my $monster = HTTP::CookieMonster->new( cookie_jar => $mech->cookie_jar ); my $cookie = $monster->get_cookie('RMID'); print $cookie->val;Product's homepage


HTTP::CookieMonster Related Software