Help for this page

Select Code to Download


  1. or download this
    my $myagent    = LWP::UserAgent->new();
    my $cookie_jar = HTTP::Cookies->new(
    ...
        ignore_discard => 1,
        );
    $myagent->cookie_jar( $cookie_jar );
    
  2. or download this
    %options = ( "url"      => "j_security_check",
                "j_username" => $username,
                "j_password" => $password,
                "useragent"  => $myagent );
    
  3. or download this
    my $cookie_jar = HTTP::Cookies->new(
        autosave       => 1,
        ignore_discard => 1,
        );
    $client->getUseragent()->cookie_jar( $cookie_jar );