saintex has asked for the wisdom of the Perl Monks concerning the following question:
please, do you have any suggestions?use WWW::Scripter; use HTTP::Cookies::Netscape; my $cook= HTTP::Cookies::Netscape->new(file => 'ciao.txt' ,ignore_disc +ard => 1,autosave=>1); $m = new WWW::Scripter(autocheck=>1,cookie_jar=>$cook) ; $m->use_plugin(JavaScript => engine => 'SpiderMonkey' ); $m->get( 'http://mypage/provaw.php'); my $res=$m->response(); $m->cookie_jar->extract_cookies($res); $m->cookie_jar->save; my $cookie_content = $m->cookie_jar->as_string; print $cookie_content;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW Mechanize and JavaScript Cookie
by Anonymous Monk on Mar 15, 2011 at 15:40 UTC | |
by saintex (Scribe) on Mar 15, 2011 at 16:01 UTC | |
by Anonymous Monk on Mar 15, 2011 at 16:14 UTC | |
by saintex (Scribe) on Mar 15, 2011 at 16:37 UTC | |
by Anonymous Monk on Mar 15, 2011 at 23:14 UTC | |
|