I have a problem supplying a parameter list to the UserAgent Post function (using the https module). The examples are of the form:
my $ua = LWP::UserAgent->new();
my $response = $ua->post( $url, { 'param1', 'value1', 'param2', 'value2' } );
The API I want to access accepts parameters using duplicate key names, where the order of parameters is important. For example:
https://URL?feature_name='animal'&feature_value='dog'&feature_name='vehicle'&feature_value='boat'
I can't pass this to the POST function as a hash because of the duplicate key names. Is it possible to pass the parameters as a string instead?