in reply to Re^6: WWW Mechanize and JavaScript Cookie
in thread WWW Mechanize and JavaScript Cookie

I see no problem
#!/usr/bin/perl -- use strict; use warnings; use WWW::Scripter; my $w = WWW::Scripter->new; $w->use_plugin('JavaScript'); #~ http://www.w3schools.com/JS/js_cookies.asp #~ http://www.w3schools.com/JS/tryit.asp?filename=tryjs_cookie_usernam +e #~ http://www.w3schools.com/JS/tryit_view.asp?filename=tryjs_cookie_us +ername $w->set_prompt_function( sub { 'teh usernaem ' } ); $w->get('http://www.w3schools.com/JS/tryit_view.asp?filename=tryjs_coo +kie_username'); print $w->cookie_jar->as_string, "\n\n"; print $w->document->body->as_text; __END__ Set-Cookie3: ASPSESSIONIDCARTDDCR=EFEIMDHAHLJNFCHKOGLODEKM; path="/"; +domain=www.w3schools.com; path_spec; discard; version=0 Set-Cookie3: username=teh%20usernaem%20; path="/JS"; domain=www.w3scho +ols.com; expires="2012-03-15 16:43:55Z"; version=0

Replies are listed 'Best First'.
Re^8: WWW Mechanize and JavaScript Cookie
by saintex (Scribe) on Mar 16, 2011 at 22:11 UTC
    Hello,
    on Friday I will try you page,
    and I will tell you, if your sample works with my setup (JavaScript.pm Spidermonkey and so on...)

    For now, thank youQ
        1) upgrade all modules and test again 2) forward bug report :)