rootcho has asked for the wisdom of the Perl Monks concerning the following question:
$req = new HTTP:Req(GET => url1); $req->header('Cookie' => cookie1); $resp = $mech->simple_request($req); my $session = $resp->header('set-cookie'); $req2 = new HTTP:Req(GET => url1);#yes url1 again ;( $req2->header('Cookie' => $session); $req2->{_headers}->authorization_basic(user,pass); $resp2 = $mech->simple_request($req2); $req3 = new HTTP:Req(GET => url3); $req->header('Cookie' => $session); $resp3 = $mech->simple_request($req3); done..continue with $mech only..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mechanize questions ?
by davidrw (Prior) on Jun 09, 2006 at 00:44 UTC | |
by rootcho (Pilgrim) on Jun 09, 2006 at 17:33 UTC | |
|
Re: mechanize questions ?
by planetscape (Chancellor) on Jun 09, 2006 at 03:01 UTC |