The third argument to HTTP::Request->new is an HTTP::Headers object. Try

    my $request = HTTP::Request->new(POST=>$action, HTTP::Headers->new
(%args));

HTH,

Rob



"Chris Greenhill" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> I can't seem to pass a hash to a request like this -
> my $request = HTTP::Request->new(POST=>$action,%args);
> I get an error saying 'Bad header argument'. I'm sure it's just a symantic
> problem on my part
>
> Christopher Greenhill
>
>


Reply via email to