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 | |
by almut (Canon) on Jun 03, 2010 at 15:38 UTC |