Perlwannabe
Technical User
Hello,
Wondering what's wrong in that cgi script:
It should pass a plan text to a form,but it doesn't work.
It connects to the page,show the form but any text is passed.
Could you enlight me,please?
Should I define an encoding method, maybe?
Thanks for your feedbacks
Sincerely
Wondering what's wrong in that cgi script:
Code:
#!perl
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
$ua = LWP::UserAgent->new;
my $req = POST '[URL unfurl="true"]http://localhost/cgi-bin/control.cgi?newpage',[/URL]
[ pass => 'blah' , text => 'xxx'];
print "Content-type: text/html\n\n";
print $ua->request($req)->as_string;
It should pass a plan text to a form,but it doesn't work.
It connects to the page,show the form but any text is passed.
Could you enlight me,please?
Should I define an encoding method, maybe?
Thanks for your feedbacks
Sincerely