Created
July 26, 2015 13:25
-
-
Save omz/9b918c98d3f6bd66c1cc to your computer and use it in GitHub Desktop.
CFNetworkProxySettings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Print system proxy settings using CFNetwork | |
# NOTE: Requires Pythonista 1.6 (currently in beta) | |
from objc_util import * | |
CFNetworkCopySystemProxySettings = c.CFNetworkCopySystemProxySettings | |
CFNetworkCopySystemProxySettings.restype = c_void_p | |
CFNetworkCopySystemProxySettings.argtypes = [] | |
proxy_settings = ObjCInstance(CFNetworkCopySystemProxySettings()) | |
print proxy_settings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment