Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 cooling their heels in the Monastery: (9)
As of 2014-12-25 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls