Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by Khen1950fx (Canon)
on Jan 31, 2013 at 07:26 UTC ( #1016239=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016239]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2017-02-23 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (347 votes). Check out past polls.