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

[ad_1]

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";

[ad_2]

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