View Single Post
Old 01-03-2013, 03:09 AM   #4
flyingfoxlee
Member
flyingfoxlee began at the beginning.
 
Posts: 21
Karma: 10
Join Date: May 2011
Device: kindle 3
Quote:
Originally Posted by kovidgoyal View Post
returned_html = br.submit().read()

Then look for something like "Log Out" or Welcome" or whatever in the returned html to check if the login succeeded.
Thanks for the reply. there was nothing like that.
It seems as if it was still in the login page or redirecting .
the source of the form is as follows:
Code:
<dd><label>email address</label>
<input id="username" name="username" 
title="email" class="txt" onblur="UserCheck(this);" type="text">
</dd>
                        
<dd><label>pswd</label>
<input id="password" name="password" 
value="" class="txt" type="password"></dd>

<dd><label>&nbsp;</label>
<input onclick="CheckLoginForm(); return false;" id="sButton" 
src="http://somesite/file/other/login/images/btn_login.png" type="image"></dd>
Did I miss something in the get_browser function?
flyingfoxlee is offline   Reply With Quote