It seems the "forms" parsing is highly broken, here is my simple code snippet:
#!/usr/bin/python
import mechanize
br = mechanize.Browser()
br.set_handle_equiv(True)
br.set_handle_redirect(True)
br.set_handle_referer(True)
br.set_handle_robots(False)
r = br.open('http://192.168.1.1/login')
for f in br.forms():
print f
Hi,
It seems the "forms" parsing is highly broken, here is my simple code snippet:
Returns:
However if you look at the original HTML page, there are two forms:
Looking forward for you answer!
Regards, Adam