in reply to Re: performing a POST on HTTPS using LWP module
in thread performing a POST on HTTPS using LWP module

I changed the line to

my $response = $lwp->post($url, {DATA=>our $USER, DATA=>our $PASS, VAL +UE=>"Submit"} );

no help - just hangs - no error

Replies are listed 'Best First'.
Re^3: performing a POST on HTTPS using LWP module
by almut (Canon) on Jun 03, 2010 at 15:38 UTC

    Don't use a hashref ({...}) if you have multiple identical keys  (for this purpose, the API also allows an arrayref).

    my $hashref = {DATA=>"foo", DATA=>"bar", VALUE=>"Submit"}; use Data::Dumper; print Dumper $hashref; __END__ $VAR1 = { 'VALUE' => 'Submit', 'DATA' => 'bar' # where's 'foo'? };

    (not saying this will necessarily fix the hang, but it's wrong anyway)

    See also LWP::Debug.