giulienk has asked for the wisdom of the Perl Monks concerning the following question:
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' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting HTTP:Headers using HTTP::Request::Common
by blakem (Monsignor) on Sep 24, 2001 at 12:06 UTC | |
|
Re: Setting HTTP:Headers using HTTP::Request::Common
by Zaxo (Archbishop) on Sep 24, 2001 at 12:09 UTC | |
|
(dkubb) Re: (1) Setting HTTP:Headers using HTTP::Request::Common
by dkubb (Deacon) on Sep 24, 2001 at 12:15 UTC | |
by giulienk (Curate) on Sep 24, 2001 at 12:35 UTC |