httplib or urllib2 tomcat username and password

2006-01-13 Thread Michael Oliver
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

Tomcat username and password2

2006-01-13 Thread Michael Oliver
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)

Python Client accessing Tomcat

2006-01-14 Thread Michael Oliver
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 authentication from python

2006-01-15 Thread Michael Oliver
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