The POST method does not take a hashref as an argument. It takes an arrayref instead. ( try [ ] instead of { }, see perlref if you don't understand).
update: oops. apparently it does, not documented at all (i'm kind of a stickler for things like that)
update: you say you "can log in fine", how do you know?###### line 113 in sub form_data in HTTP/Request/Common.pm my @data = ref($data) eq "HASH" ? %$data : @$data; # copy
I don't see $cookie_jar->add_cookie_header($request); or $cookie_jar->extract_cookies($response); anywhere. What good is an empty cookie jar, in which you never reach?
Please check the HTTP::Cookies documentation.
update:
I was reviewing some of my nodes, and then I noticed $ua->cookie_jar ( you know, it would've be nice if somebody pointed this out to me). Turning to the documentation would've still been helpfull though (you'd have known the following, and could've dismissed my comments quickly ;)
$ua->cookie_jar([$cookies])
Get/set the HTTP::Cookies object to use. The default is to have no cookie_jar, i.e. never automatically add ``Cookie'' headers to the requests.
Look ma', I'm on CPAN (and I just saved the day).
** The Third rule of perl club is a statement of fact: pod is sexy.
In reply to (podmaster) Re: LWP and HTML 302 Error
by PodMaster
in thread LWP and HTML 302 Error
by inblosam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |