SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-HTTP-CookieMonster rpm build for : OpenSuSE. For other distributions click perl-HTTP-CookieMonster.

Name : perl-HTTP-CookieMonster
Version : 0.11 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp155.1.1 Date : 2023-07-20 16:42:09
Group : Development/Libraries/Perl Source RPM : perl-HTTP-CookieMonster-0.11-lp155.1.1.src.rpm
Size : 0.04 MB
Packager : https://www_suse_com/
Summary : Easy read/write access to your jar of HTTP::Cookies
Description :
This module was created because messing around with HTTP::Cookies is
non-trivial. HTTP::Cookies a very useful module, but using it is not always
as easy and clean as it could be. For instance, if you want to find a
particular cookie, you can\'t just ask for it by name. Instead, 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 hash

That\'s a lot to remember and it doesn\'t make for very readable code.

Now, let\'s say you want to save or update a cookie. Now you\'re back to the
many positional params yet again:

$cookie_jar->set_cookie( $version, $key, $val, $path, $domain, $port, $path_spec, $secure, $maxage, $discard, \\%rest )

Also not readable. Unless you have an amazing memory, you may find yourself
checking the docs regularly to see if you did, in fact, get all those
params in the correct order etc.

HTTP::CookieMonster gives you a simple interface for getting and setting
cookies. You can fetch an ARRAY of all your cookies:

my AATTall_cookies = $monster->all_cookies;
foreach my $cookie ( AATTall_cookies ) {
print $cookie->key;
print $cookie->val;
print $cookie->secure;
print $cookie->domain;

}

Or, if you know for a fact exactly what will be in your cookie jar, you can
fetch a cookie by name.

my $cookie = $monster->get_cookie( \'plack_session\' );

This gives you fast access to a cookie without a callback, iterating over a
list etc. It\'s good for quick hacks and you can dump the cookie quite
easily to inspect its contents in a highly readable way:

use Data::Printer;
p $cookie;

If you want to mangle the cookie before the next request, that\'s easy too.

$cookie->val(\'woohoo\');
$monster->set_cookie( $cookie );
$mech->get( $url );

Or, add an entirely new cookie to the jar:

use HTTP::CookieMonster::Cookie;
my $cookie = HTTP::CookieMonster::Cookie->new(
key => \'cookie-name\',
val => \'cookie-val\',
path => \'/\',
domain => \'.somedomain.org\',
path_spec => 1,
secure => 0,
expires => 1376081877
);

$monster->set_cookie( $cookie );
$mech->get( $url );

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-H/15.5/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-HTTP-CookieMonster-0.11-lp155.1.1.noarch.rpm
     

Provides :
perl(HTTP::CookieMonster)
perl(HTTP::CookieMonster::Cookie)
perl-HTTP-CookieMonster

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(HTTP::Cookies)
perl(Moo) >= 1.000003
perl(Safe::Isa)
perl(Sub::Exporter)
perl(URI::Escape)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/HTTP
/usr/lib/perl5/vendor_perl/5.26.1/HTTP/CookieMonster
/usr/lib/perl5/vendor_perl/5.26.1/HTTP/CookieMonster.pm
/usr/lib/perl5/vendor_perl/5.26.1/HTTP/CookieMonster/Cookie.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-HTTP-CookieMonster
/usr/share/doc/packages/perl-HTTP-CookieMonster/CONTRIBUTORS
/usr/share/doc/packages/perl-HTTP-CookieMonster/Changes
/usr/share/doc/packages/perl-HTTP-CookieMonster/README.md
/usr/share/doc/packages/perl-HTTP-CookieMonster/examples
/usr/share/doc/packages/perl-HTTP-CookieMonster/examples/read_cookies.pl
/usr/share/licenses/perl-HTTP-CookieMonster
/usr/share/licenses/perl-HTTP-CookieMonster/LICENSE
/usr/share/man/man3/HTTP::CookieMonster.3pm.gz
/usr/share/man/man3/HTTP::CookieMonster::Cookie.3pm.gz

 
ICM