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?
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.
Community Help Hub
New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.