curl -X POST "https://mysite.com/lookup" \ -d '{"name":"respond", "falvour": green, "location": europe, "entities":[369662]}' \ -H "Content-Type: application/json" #### my $ua = LWP::UserAgent->new; $ua->default_header('Content-Type' => 'application/json'); $data = { name => "responding", flavour => "green", entities => '[369662]' , location => "europe", }; my $response = $ua->post( 'https://mysite.com/lookup', $data