Help for this page

Select Code to Download


  1. or download this
    use HTTP::Request::Common qw( POST );
    
    use LWP::UserAgent;
    ...
    
    my $req = POST 'http://perlmonks.org/index.pl', [node_id => '20494'];
    print $ua->request($req)->as_string;
    
  2. or download this
     $req->content_type('application/x-www-form-urlencoded');
    $req->content('node_id=20494');