<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Comic Sans MS";
panose-1:3 15 7 2 3 3 2 2 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:"Comic Sans MS";
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>I need to access tomcat applications from
python, some are Axis/SOAP web services, and some are file/WebDAV operations.</span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'> </span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>But so far I cannot get python to
authenticate and access <a href="http://localhost:8080/manager/html">http://localhost:8080/manager/html</a>
much less to any of the other applications.</span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'> </span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>I have found examples for httplib with a
base64 Basic Authentication header, and a urllib2 Authentication Handler, but
neither one works.</span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'> </span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>I am not an experienced python developer,
but I am an experienced Java Developer. I am using PyDev plugin for Eclipse, I
am using Python24.</span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'> </span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>I can connect to tomcat without
authentication for those pages/uri’s that do not require authentication
on that tomcat server, so the problem is with the authentication mechanism in
python. Obviously I can connect to the entire site and all applications with a
browser and programmatically from Java.</span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'> </span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>Any help greatly appreciated.</span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'> </span></font></p>
<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'> </span></font></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=600
style='width:6.25in'>
<tr>
<td style='padding:0in 0in 0in 0in'>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=right
width=600 style='width:6.25in'>
<tr>
<td style='padding:0in 0in 0in 0in'>
<table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 width=600
style='width:6.25in;border:solid #666666 1.0pt'>
<tr height=1 style='height:.75pt'>
<td width="100%" height=1 bgcolor="#4E81C4" style='width:100.0%;
border:none;background:#4E81C4;padding:.75pt .75pt .75pt .75pt;
height:.75pt'>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
width="100%" style='width:100.0%'>
<tr>
<td style='padding:.75pt .75pt .75pt 3.75pt'>
<p class=MsoNormal><font size=2 color=white face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:white'><a
href="http://www.alariussystems.com" target="_blank"><font color=white><span
style='color:white;text-decoration:none'><img border=0 width=225
height=50 src="cid:image001.gif@01C619AC.23049510"></span></font></a></span></font></p>
</td>
<td style='padding:.75pt 3.75pt .75pt .75pt'>
<p class=MsoNormal align=right style='text-align:right'><font size=1
color=white face=Verdana><span style='font-size:7.0pt;font-family:Verdana;
color:white'><a href="http://mikeoliveraz.blogspot.com" target="_blank"><font
color=white><span style='color:white;text-decoration:none'>Highly
Cohesive and Loosely Coupled</span></font></a></span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal></p>
</td>
<td height=1 bgcolor="#4E81C4" style='border:none;background:#4E81C4;
padding:.75pt .75pt .75pt .75pt;height:.75pt'>
<p class=MsoNormal><font size=1 face="Times New Roman"><span
style='font-size:1.0pt'> </span></font></p>
</td>
</tr>
<tr>
<td colspan=2 style='border:none;padding:.75pt .75pt .75pt .75pt'>
<table class=MsoNormalTable border=0 cellpadding=0 align=right
width="100%" style='width:100.0%' height="100%">
<tr height=1 style='height:.75pt'>
<td height=1 valign=top style='padding:.75pt .75pt 3.0pt 3.0pt;
height:.75pt'>
<p class=MsoNormal><b><font size=1 color="#4e81c4" face=Verdana><span
style='font-size:8.0pt;font-family:Verdana;color:#4E81C4;font-weight:
bold'>Mike Oliver</span></font></b><font size=1 color="#4e81c4"
face=Verdana><span style='font-size:8.0pt;font-family:Verdana;
color:#4E81C4'><br>
<i><span style='font-style:italic'>CTO</span></i> </span></font></p>
</td>
<td height=1 valign=top style='padding:.75pt 3.0pt 3.0pt .75pt;
height:.75pt'>
<p class=MsoNormal align=right style='text-align:right'><b><font
size=1 color="#4e81c4" face=Verdana><span style='font-size:8.0pt;
font-family:Verdana;color:#4E81C4;font-weight:bold'>Alarius Systems LLC</span></font></b><font
size=1 color="#4e81c4" face=Verdana><span style='font-size:8.0pt;
font-family:Verdana;color:#4E81C4'><br>
<a
href="http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=6800+E.+Lake+Mead+Blvd&csz=Las+Vegas%2C+NV+89156&country=us"
target="_blank"><font color="#4e81c4"><span style='color:#4E81C4;
text-decoration:none'>6800 E. Lake Mead Blvd<br>
Apt 1096<br>
Las Vegas, NV 89156</span></font></a> </span></font></p>
</td>
</tr>
<tr height=1 style='height:.75pt'>
<td height=1 valign=bottom style='padding:.75pt .75pt 3.0pt 3.0pt;
height:.75pt'>
<p class=MsoNormal><font size=1 color="#4e81c4" face=Verdana><span
style='font-size:8.0pt;font-family:Verdana;color:#4E81C4'><a
href="mailto:ollie@alariussystems.com" target="_blank"><font
color="#4e81c4"><span style='color:#4E81C4;text-decoration:none'>ollie@alariussystems.com</span></font></a><br>
<a href="http://www.alariussystems.com/" target="_blank"><font
color="#4e81c4"><span style='color:#4E81C4;text-decoration:none'>http://www.alariussystems.com/</span></font></a>
</span></font></p>
</td>
<td height=1 valign=bottom style='padding:.75pt 3.0pt 3.0pt .75pt;
height:.75pt'>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
align=right>
<tr>
<td nowrap style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=right style='text-align:right'><font size=1
color="#4e81c4" face=Verdana><span style='font-size:8.0pt;font-family:
Verdana;color:#4E81C4'>tel: <br>
fax: <br>
mobile: </span></font></p>
</td>
<td nowrap style='padding:.75pt .75pt .75pt 3.0pt'>
<p class=MsoNormal align=right style='text-align:right'><font size=1
color="#4e81c4" face=Verdana><span style='font-size:8.0pt;font-family:
Verdana;color:#4E81C4'>(702)953-8949 <br>
(702)974-0341<br>
(518)378-6154 </span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal align=right style='text-align:right'></p>
</td>
</tr>
</table>
<p class=MsoNormal></p>
</td>
</tr>
</table>
<p class=MsoNormal></p>
</td>
<td style='padding:0in 0in 0in 0in'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal></p>
</td>
</tr>
<tr>
<td style='padding:0in 0in 0in 0in'>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%"
style='width:100.0%'>
<tr>
<td style='padding:0in 0in 0in 0in'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><a
href="https://www.plaxo.com/add_me?u=25769982367&v0=355403&k0=305933374"
target="_blank"><i><font size=1 color="#777777" face=Verdana><span
style='font-size:7.0pt;font-family:Verdana;color:#777777;font-style:italic;
text-decoration:none'>Add me to your address book...</span></font></i></a></span></font></p>
</td>
<td style='padding:0in 0in 0in 0in'>
<p class=MsoNormal align=right style='text-align:right'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><a
href="http://www.plaxo.com/signature" target="_blank"><i><font size=1
color="#777777" face=Verdana><span style='font-size:7.0pt;font-family:Verdana;
color:#777777;font-style:italic;text-decoration:none'>Want a signature like
this?</span></font></i></a></span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal></p>
</td>
</tr>
</table>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
</div>
</body>
</html>