linux - python mechanize issue with java application -


we have java application running on tomcat server , wrote simple script login won't allow me login 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 running interactively on python shell hanging on br.open

>>> br.open('https://www.example.com/')  hanging here..... 

does mechanize work j_security_check? or java base application?

i'm not familiar mechanize, speaking, urllib2 go html in python. possible try http rather https?

the java app needs serve html, in standard format. mechanize pulls down html , lets stuff it, note not run javascript, if login screen javascript popup, it's not going work, believe things in standard post format.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -