Help for this page

Select Code to Download


  1. or download this
    my $ua = LWP::UserAgent->new();
    $ua->cookie_jar(HTTP::Cookies->new());
    
  2. or download this
    Path::Tiny::path("cookies.LWP.txt")->spew(join("\n", $ua->cookie_jar()
    +->as_string));
    
  3. or download this
    my $NC = HTTP::Cookies::Netscape->new($ua->cookie_jar());
    my $MC = HTTP::Cookies::Microsoft->new($ua->cookie_jar());
    
    Path::Tiny::path("cookies.Netscape.txt")->spew($NC->as_string);
    Path::Tiny::path("cookies.Microsoft.txt")->spew($MC->as_string);