FYI, if your login page has code that identifies the userid and possword form with a form name, like this:
Code:
<form name='whatever'
then use this:
Code:
br.select_form(name='whatever')
However, I seldom seem to find login forms with the "name=" label. In that case, use the form's numerical index, like this:
Code:
br.select_form(nr=3)
You can count the forms (numerical index starts at 0) or just increase until you find the right one.