HTTP::Cookies::Safari - Cookie storage and management for Safari
use HTTP::Cookies::Safari; my $cookie_jar = HTTP::Cookies::Safari->new; $cookie_jar->load( '/Users/Buster/Library/Cookies/Cookies.plist' ); # otherwise same as HTTP::Cookies
This package overrides the load() and save() methods of HTTP::Cookies so it can work with Safari cookie files.
load()
save()
HTTP::Cookies
Note: If the source Safari cookie file specifies and expiry date past the unix 32-bit epoch, this file changes the expiry date to 0xFFFFFFFF in unix seconds. That should be enough for anyone, at least to the next release.
See HTTP::Cookies.
This module is in Github:
http://github.com/briandfoy/HTTP-Cookies-Safari
brian d foy, <bdfoy@cpan.org>
<bdfoy@cpan.org>
Jon Orwant pointed out the problem with dates too far in the future
Copyright © 2003-2017, brian d foy <bdfoy@cpan.org>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTP::Cookies::Safari, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Cookies::Safari
CPAN shell
perl -MCPAN -e shell install HTTP::Cookies::Safari
For more information on module installation, please visit the detailed CPAN module installation guide.