I use WWW::Mechanize, but I end up at a page withhttps://myaccount.server.com/clx/index.php?part=menu&justloggedin=true
Now I either loose the session, or I just reload exatly this page.<meta http-equiv="Refresh" content="0;url=index.php?part=menu&justloggedin=true">
If I do these I loose the session (need to re-login):use WWW::Mechanize; my $m = WWW::Mechanize->new( agent => 'Linux Konqueror' ); $m->get( $url ); $r = $m->success or die "Can't get this url $url\n\n"; # login-Page is loaded .. my $r = $m->submit_form( fields => { $uFld => $uNme, $pFld => $pPwd } ); die "Couldn't submit form" unless $r->is_success; # Login was successfull here print $r->content # prints this #<html><head> #<meta http-equiv="Refresh" #content="0;url=index.php?part=menu&justloggedin=true"> #</head><body><a #href="index.php?part=menu&justloggedin=true"></a></body></html>
If I try to create the url by my self by$m->follow_link(n=>0); $m->follow_link(n=>1);
this gives me:print join('; ',@{${$m->links()}[0]}),"\n\n"; print join('; ',@{${$m->links()}[1]}),"\n";
So I just try:index.php?part=menu&justloggedin=true; ; ; meta; https://myaccount.ser +ver.com/clx/index.php; HASH(0x864c5f8) index.php?part=menu&justloggedin=true; ; ; a; https://myaccount.server +.com/clx/index.php; HASH(0x86168bc)
and the session is lost => re-login$m->get( 'https://myaccount.server.com/clx/index.php?part=menu&justlog +gedin=true' )
And even what I have found on Active bugs for WWW-Mechanize
(http://rt.cpan.org/Public/Bug/Display.html?id=12882)
shows: https://myaccount.server.com/clx/index.phpprint $m->response->request->uri;
I just reload meta="Refresh.. page$m->reload();
Anybody with an idea how I can get beyond this "meta-page"?
Thanks a lot in advance;
Carl
In reply to meta="Refresh" by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |