in reply to Re^3: Reading a cookie from an active browser session
in thread Reading a cookie from an active browser session
use strict; use warnings; use Data::Dumper; $ENV{MOZREPL} = "localhost:8888"; # using a non-standard port since 4 +242 is used by ncui use HTTP::Cookies::MozRepl; my $repl = MozRepl::RemoteObject->install_bridge(); my $document = $repl->expr('document'); print $document->{title};
This prints out the correct title: Junos Pulse Secure Access Service - Home - Mozilla Firefox
So I added:
my $cookie_jar = HTTP::Cookies::MozRepl->new( repl => $repl ); my @cookies = $cookie_jar->extract_cookies(); print Dumper \@cookies;
Now it just hangs there, it doesn't even print the title.
Any ideas what am I doing wrong?
Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Reading a cookie from an active browser session
by Corion (Patriarch) on Nov 20, 2013 at 16:05 UTC | |
by xorl (Deacon) on Nov 20, 2013 at 16:33 UTC | |
by xorl (Deacon) on Jan 11, 2014 at 04:45 UTC |