HTTP::Cookies::Microsoft(3pm)

HTTP::Cookies::Microsoft3pm

Access to microsoft cookies files

Usage

 use LWP;
 use HTTP::Cookies::Microsoft;
 use Win32::TieRegistry(Delimiter => "/");
 my $cookies_dir = $Registry->
      {"CUser/Software/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders/Cookies"};
 $cookie_jar = HTTP::Cookies::Microsoft->new(
                   file     => "$cookies_dir\\index.dat",
                   'delayload' => 1,
               );
 my $browser = LWP::UserAgent->new;
 $browser->cookie_jar( $cookie_jar );

Version

version 6.12

Overview

This is a subclass of "HTTP::Cookies" which loads Microsoft Internet Explorer 5.x and 6.x for Windows (MSIE) cookie files.

See the documentation for HTTP::Cookies.

Methods

The following methods are provided:

$cookie_jar = HTTP::Cookies::Microsoft->new;

The constructor takes hash style parameters. In addition to the regular HTTP::Cookies parameters, HTTP::Cookies::Microsoft recognizes the following:

  delayload:       delay loading of cookie data until a request
                   is actually made. This results in faster
                   runtime unless you use most of the cookies
                   since only the domain's cookie data
                   is loaded on demand.

Caveats

Please note that the code DOESN'T support saving to the MSIE cookie file format.

Releases

6 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. Arch

Author

Johnny Lee <[email protected]>

Author

Gisle Aas <[email protected]>

From perl-http-cookies 6.12-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.