in reply to Re^4: parsing curl api
in thread parsing curl api

You should see some warnings. The Content key takes a hash reference, not a hash (See post of LWP::UserAgent):

my $response = $ua->post( $url, 'Authorization' => 'Basic QUM5YzFmZjJkMTg4MGU0YWZmOWQxNmQzYTAzM2I0 +NjMxYzplYmFjZTRhYmQ0ZmY1NGM5NDNlZGFlZTg0YjJhMGY0MA==', 'Content-Type' => 'application/x-www-form-urlencoded', 'Content' => \%form, # note the backslash here! );

Replies are listed 'Best First'.
Re^6: parsing curl api
by frank1 (Monk) on Mar 24, 2022 at 14:29 UTC

    Thank you, its working now