HTTP::Cookies::Netscape(3) User Contributed Perl Documentation HTTP::Cookies::Netscape(3)

HTTP::Cookies::Netscape - Access to Netscape cookies files

version 6.10

use LWP;
use HTTP::Cookies::Netscape;
$cookie_jar = HTTP::Cookies::Netscape->new(
  file => "c:/program files/netscape/users/ZombieCharity/cookies.txt",
my $browser = LWP::UserAgent->new;
$browser->cookie_jar( $cookie_jar );

This is a subclass of "HTTP::Cookies" that reads (and optionally writes) Netscape/Mozilla cookie files.

See the documentation for HTTP::Cookies.

Please note that the Netscape/Mozilla cookie file format can't store all the information available in the Set-Cookie2 headers, so you will probably lose some information if you save in this format.

At time of writing, this module seems to work fine with Mozilla Phoenix/Firebird.


Gisle Aas <>

This software is copyright (c) 2002 by Gisle Aas.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2022-05-29 perl v5.36.0