Publishing without Authenticating gives ProtocolError

In [24]: server = xmlrpclib.Server("http://localhost:8080/plumitest/Members/andy/videos/test123.mov/publishXML")
In [25]: server.publishObject('ATEngageVideo', {'id':'my-link2','title':'My Link','raw_file_data':'Hello im in the file'})
---------------------------------------------------------------------------
xmlrpclib.ProtocolError                             Traceback (most recent call last)

/home/OPT/instances/plumitest/<ipython console> 

/home/OPT/instances/plumitest/xmlrpclib.py in __call__(self, *args)
   1094         return _Method(self.__send, "%s.%s" % (self.__name, name))
   1095     def __call__(self, *args):
-> 1096         return self.__send(self.__name, args)
   1097 
   1098 ##

/home/OPT/instances/plumitest/xmlrpclib.py in __request(self, methodname, params)
   1381             self.__handler,
   1382             request,
-> 1383             verbose=self.__verbose
   1384             )
   1385 

/home/OPT/instances/plumitest/xmlrpclib.py in request(self, host, handler, request_body, verbose)
   1135                 host + handler,
   1136                 errcode, errmsg,
-> 1137                 headers
   1138                 )
   1139 

ProtocolError: <ProtocolError for localhost:8080/plumitest/Members/andy/videos/test123.mov/publishXML: 401 Unauthorized>

Authenticating like so :

In [26]: server = xmlrpclib.Server("http://username:password@localhost:8080/plumitest/Members/andy/videos/test123.mov/publishXML")

In [27]: server.publishObject('ATEngageVideo', {'id':'my-link2','title':'My Link','raw_file_data':'Hello im in the file'})
Out[27]: True




