Clear questions and runnable code
get the best and fastest answer
Solution for your problem with LWP, frames, login, and parent.main.location.replace()by arhuman (Vicar)
|on Mar 02, 2001 at 23:32 UTC||Need Help??|
I've slightly modified (messed) your code and it works now...
Or at least it seems to work,
(My german doesn't allow me to be 100% affirmative)
I've printed the last reached page for you can check it.
Take note of the 'id' parameter passed on the url when you connect to the site.
It's a 'session id', It changes with each connexion.
when you use an 'id' that you got long before (and the password associated to this 'session id' the session is no longer valid, and you get the message telling 'you haven't been connected for too long' (Or something like that, my german isn't what it was supposed to be.))
BTW your User Agent is not a valid one
(something like :
"Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)"
is more common)
and in this case is useless.
I've leaved the debugging code (printing MATCH)
to show you that the id value changes every time...
the regex are ugly (please japhy don't hit me hard) but were just done to test it. In a real code you'll have to harden them...