[Solved] How to use POST method in perl? [closed]


Using LWP:

use warnings;
use strict;
use LWP::UserAgent;
my $linkid = "link identifier";

my $browser = LWP::UserAgent->new;
my $response = $browser->post(
  'http://sitewithlinks/linkget.php',
  [
    'linkid'  => $linkid,
    'hidden' => 'somethinghidden'
  ],
);
die "Error: ", $response->status_line
 unless $response->is_success;

print "GOT THIS: $response->content";

solved How to use POST method in perl? [closed]