in reply to Re: LWP::UserAgent can't login to phpbb forum
in thread LWP::UserAgent can't login to phpbb forum
i also tried thisuse HTTP::Request::Common qw(POST); use LWP::UserAgent; $ua = LWP::UserAgent->new; my $req = POST 'http://www.host.com/login.php?sid='.@sids[0], [ username => 'myUserName', password => 'myPasswd', lo +gin => 'Connexion' ]; print $ua->request($req)->as_string;
how can i get the headers of my posts please ?open WRITER3 ,"> header.txt" my $res = $ua->post($url_base.'?sid='.$sids[0],[username => 'myUsernam +e', password=>'myPasswd',login=>'Connexion']); print WRITER3 $res->as_string;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: LWP::UserAgent can't login to phpbb forum
by Corion (Patriarch) on Apr 03, 2008 at 15:52 UTC |