Help for this page

Select Code to Download


  1. or download this
    $client->POST('URL', ... credentials ...);
    my $token = $client->responseHeader('Set-Cookie');
    ...
    
  2. or download this
    my $response = $ua->post('URL', Content => ... credentials ...);
    my $token = $response->headers->{'Set-Cookie'}; # if there is only one
    + cookie line
    ...
    my $token = $cookies->get_cookies( 'URL', 'AUTH_TOKEN' );
    
    ...