Hi,

I am trying to configure a POST request using LWP to post the hash below.

my %test = (
        user            => '[EMAIL PROTECTED]',
        passwd             => 'B3NzaC1yo7393Cbonx2a1xd562LiCjtYwU7LAb',
        contrib      => $code,
        name         => $name,
        id              => $id,
);


At the moment the only way I can get the request to send the data
correctly is to use the method shown in The libwww-perl cookbook, EG:

use HTTP::Request::Common qw(POST);

my $req = POST $url, [user => '[EMAIL PROTECTED]', passwd =>
'B3NzaC1yo7393Cbonx2a1xd562LiCjtYwU7LAb' , contrib      => $code];


Is there a way I can use the HTTP::Request content method, so I can
pass it a hash or hash reference? Alternatively a way to arraify a
hash?

Thanx,
Dp.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to