in reply to Re: LWP::UserAgent can't login to phpbb forum
in thread LWP::UserAgent can't login to phpbb forum

Thank you, you're kind. i read HTTP::Request, LWP::UserAgent, lwp cookbook, tried all, i only have the http headers of the response printed. not the header of the post. i tried this
use 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;
i also tried this
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;
how can i get the headers of my posts please ?

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

    You only see the headers of the response because you only print the headers of the response. Maybe you should try printing the headers of the request instead? I think I recommended that to you already.

    Other than that, you might just want to inspect the network traffic by other means, like using WireShark, a network sniffer, or by using LWP::Debug.