HTTP::Cookies::Find - Locate cookies for the current user on the local machine.


HTTP-Cookies-Find documentation  | view source Contained in the HTTP-Cookies-Find distribution.

Index


NAME

Top

HTTP::Cookies::Find - Locate cookies for the current user on the local machine.

SYNOPSIS

Top

  use HTTP::Cookies::Find;
  my $oCookies = HTTP::Cookies::Find->new('domain.com');
  my @asMsg = HTTP::Cookies::Find::errors;
  # Now $oCookies is a subclass of HTTP::Cookies
  # and @asMsg is an array of error messages

  # Call in array context to find cookies from multiple
  # browsers/versions:
  my @aoCookies = HTTP::Cookies::Find->new('domain.com');
  # Now @aoCookies is an array of HTTP::Cookies objects

DESCRIPTION

Top

Looks in various normal places for HTTP cookie files.

METHODS

Top

new

Returns a list of cookie jars of type HTTP::Cookies::[vendor], for all vendor browsers found on the system. If called in scalar context, returns one cookie jar for the "first" vendor browser found on the system. The returned cookie objects are not tied to the cookie files on disk; the returned cookie objects are read-only copies of the found cookies. If no argument is given, the returned cookie objects contain read-only copies of ALL cookies. If an argument is given, the returned cookie objects contain read-only copies of only those cookies whose hostname "matches" the argument. Here "matches" means case-insensitive pattern match; you can pass a qr{} regexp as well as a plain string for matching.

errors

If anything went wrong while finding cookies, errors() will return a list of string(s) describing the error(s).

BUGS

Top

Please notify the author if you find any.

AUTHOR

Top

Martin Thurn mthurn at cpan.org

COPYRIGHT

Top

SEE ALSO

Top

HTTP::Cookies, HTTP::Cookies::Microsoft, HTTP::Cookies::Mozilla, HTTP::Cookies::Netscape

SPECIAL THANKS

Top

To David Gilder, for the FireFox (Mozilla) code additions. To David Gilder, for the Vista MSIE code additions.


HTTP-Cookies-Find documentation  | view source Contained in the HTTP-Cookies-Find distribution.