Help for this page

Select Code to Download


  1. or download this
    my $type = 'post';
    my $url = redacted;
    ...
      },
    }
    my $response = $ua->$type( $url, %{$headers} );
    
  2. or download this
    $headers->{Content}->{'foo'} = ['bar', 'baz']
    
  3. or download this
    "field3": "HASH(0x2308c10)"
    
  4. or download this
    $args = {data => $args};
    my @newstring;
    ...
    }
    $args = join('&',@newstring);
    my $response = $ua->post( $url, Content => $args );