http://www.perlmonks.org?node_id=1016239


in reply to URI::Escape::escape_char error when posting to a form inside perl script

I would try it like this:
#!/usr/bin/perl use strict; use warnings; use LWP::UserAgent; use HTTP::Request::Common qw/POST/; my(@fields) = ( 'http://your.url.com', [ data1 => 'something', data2 => 'somethingelse', data3 => 'andanother' ] ); my $ua = LWP::UserAgent->new; my $req = POST @fields; print $ua->request($req)->as_string();
  • Comment on Re: URI::Escape::escape_char error when posting to a form inside perl script
  • Download Code