I am trying to write a Python client to access a Tomcat servlet using Tomcat
Realm authentication with no success.
I can use the httplib to connect to localhost port 8080 ok and post and get
and all that is fine, but when I try to set username and password and access
a protected part of tomcat
Still trying to get python to access my local tomcat secured with the tomcat
realm
import urllib2
handler = urllib2.HTTPBasicAuthHandler()
handler.add_password(None,
'localhost:8080/manager/html', 'root', 'root')
opener = urllib2.build_opener(handler)
urllib2.install_opener(opener)
I am trying to write a Python client to
access a Tomcat servlet using Tomcat Realm authentication with no success.
I can use the httplib to connect to
localhost port 8080 ok and post and get and all that is fine, but when I try to
set username and password and access a protected part of
I need to access tomcat applications from
python, some are Axis/SOAP web services, and some are file/WebDAV operations.
But so far I cannot get python to
authenticate and access http://localhost:8080/manager/html
much less to any of the other applications.
I have found examples for