We have Java application running on tomcat server and i wrote a simple script to login but i won't allow me to login it is just hanging on br.open
step.
#!/usr/bin/python
import mechanize
br=mechanize.Browser()
br.open('https://www.example.com')
br.select_form(nr=0)
br['user[login]']= user1
br['user[password]']= Pass1
br.submit()
br.retrieve('https://www.example.com/','page1.html')
When i am running it interactively on python shell its hanging on br.open
>>> br.open('https://www.example.com/')
hanging here.....
Does mechanize work with j_security_check
? or java base application?