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

# [SYNOPSIS](#SYNOPSIS)

```
 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 );
```

# [DESCRIPTION](#DESCRIPTION)

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

See the documentation for HTTP::Cookies.

# [CAVEATS](#CAVEATS)

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.

# [SEE ALSO](#SEE_ALSO)

HTTP::Cookies::Microsoft

2026-10-26 perl v5.44.0

---

Document: HTTP::Cookies::Netscape(3pm) from perl-http-cookies 6.12-r2 (Chainguard OS)
Source: https://github.com/libwww-perl/HTTP-Cookies
