Help for this page

Select Code to Download


  1. or download this
      if ($args{user} || $args{password}) { 
          use MIME::Base64;
          $tkxf_auth='Authorization: Basic '.encode_base64($args{user}.':'
    +.$args{password},''); 
          }
    
  2. or download this
    use MIME::Base64;
    my $headers = {
    ...
                      'Content-Type' => "application/json",
                      Authorization => 'Authorization: Basic '.encode_base
    +64($args{user}.':'.$args{password},'')
                  };