Change/Edit the proxy settings on windows using python -



Change/Edit the proxy settings on windows using python -

i'am trying edit/configure proxy server using python on windows using below code. error. need help !!

import winreg internet_settings = winreg.openkey(winreg.hkey_current_user, r'software\microsoft\windows\currentversion\internet settings', 0, winreg.key_all_access) def set_key(name, value): _, reg_type = winreg.queryvalueex(internet_settings, name) winreg.setvalueex(internet_settings, name, 0, reg_type, value) set_key('proxyenable', 1) set_key('proxyserver', u'192.168.0.5:3128')

windows

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -