The output looks like thisuse HTTP::Request::Common qw(POST); use Data::Dumper; $req = POST 'http://gino/ciccio.cgi', [ sessionid => 'something', mittente => 'something', prefix => 'number', numtel => 'number', messagetext => 'message', flash => "0", Submit => " Invia " ]; print Dumper($req);
I see there is a HTTP:Headers object but i'm no really good in assigning anything to it or even display its content: can anybody help me? Thank you.$VAR1 = bless( { '_method' => 'POST', '_headers' => bless( { 'content-type' => 'application +/x-www-form-urlencoded', 'content-length' => 109 }, 'HTTP::Headers' ), '_uri' => bless( [ bless( do{\(my $o = 'http://gino/c +iccio.cgi' )}, 'URI::http' ), undef ], 'URI::URL' ), '_content' => 'sessionid=something&mittente=something +&prefix=number&numtel=number&messagetext=message&flash=0&Submit=+Invi +a+' }, 'HTTP::Request' );
In reply to Setting HTTP:Headers using HTTP::Request::Common by giulienk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |