def getXmlrpcClient(server_uri, auth = ()):
    """ this will return an xmlrpc client which supports
    basic authentication/authentication through cookies 
    """

    trans = CookieAuthXMLRPCTransport()
    if auth!= ():
        trans.credentials = auth
    client = xmlrpclib.Server(server_uri, transport=trans, verbose=False)
    
    return client
 this will return an xmlrpc client which supports
    basic authentication/authentication through cookies 
    
recipes/Python/501148_xmlrpc_serverclient_which_does_cookie_handling/recipe-501148.py