in reply to performing a POST on HTTPS using LWP module

Are you sure you need the same field name "DATA" for both user and password? (just wondering — it's possible, but multi-valued fields are unusual for logins)

Also, I think you need [ ... ] around the form parameters (otherwise, the key/value pairs would end up as HTTP headers).

Why did you comment out use strict?  To get rid of the Bareword "Submit" not allowed while "strict subs" in use?  Better fix it... :)

my $response = $lwp->post($url, [ DATA=>$USER, DATA=>$PASS, VALUE=>"Su +bmit" ]);

Update: as for your updated node: I'd say you still need the [ ... ]

Replies are listed 'Best First'.
Re^2: performing a POST on HTTPS using LWP module
by kbarker (Initiate) on Jun 03, 2010 at 15:29 UTC

    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

      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.