Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-03 17:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (55 votes), past polls