I try to create a session from my workstation to my ePO-Server (both systems are on the same side of the company firewall) using mcafee.client ("ePO-fqdn", "port", "user", "password"). This statement works fine if i execute it locally on the ePO-Server. But if i try this from my workstation i get an error ("502 unauthorized") from the company proxy. Either Python or the mcafee.client-command tries to connect using the proxy - although of course the use of the proxy is excluded for local traffic. How can i modify the way my script connects?
Ok, i did some testing & research. The default urllib2.ProxyHandler of Python cannot handle proxy exceptions and therefore forwards all traffic to the proxy server. If i set up an empty ProxyHandler it works for a call to urlopen(local_address), but still fails for mcafee.client. So mcafee.client uses the default proxyhandler of urllib2, which cannot handle local destinations. Is there a way to "override" the ProxyHandler in the mcafee-module?