Platforms to show: All Mac Windows Linux Cross-Platform

Back to CFProxyMBS class.

Previous items

CFProxyMBS.kCFProxyTypeHTTPS as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation Network MBS MacCF Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the proxy types.

The proxy is a tunneling proxy as used for HTTPS.

CFProxyMBS.kCFProxyTypeKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation Network MBS MacCF Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Key for the type of proxy being represented.

value will be one of the kCFProxyType* constants listed below.

CFProxyMBS.kCFProxyTypeNone as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation Network MBS MacCF Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the proxy types.

No proxy should be used; contact the origin server directly.

CFProxyMBS.kCFProxyTypeSOCKS as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation Network MBS MacCF Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the proxy types.

The proxy is a SOCKS proxy.

CFProxyMBS.kCFProxyUsernameKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation Network MBS MacCF Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Key for the username to be used with the proxy.

Value is a String. Note that this key will only be present if the username could be extracted from the information passed in. No external credential stores (like the Keychain) are consulted.

CFProxyMBS.ProxiesForAutoConfigurationScript(proxyAutoConfigurationScript as string, URL as string, byref error as CFErrorMBS) as Dictionary()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation Network MBS MacCF Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All

Synchronously executes the given proxy autoconfiguration script and returns a valid proxyList and nil error upon success or a
nil proxyList and valid error on failure.

proxyAutoConfigurationScript: A string containing the code of the script to be executed.
targetURL: The URL that should be input in to the autoconfiguration script.
error: A return argument that will contain a valid error in case of failure.

Returns an array of dictionaries describing the proxies returned by the script or nil on failure.

Some examples using this method:

CFProxyMBS.ProxiesForURL(URL as string, proxySettings as Dictionary = nil) as Dictionary()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation Network MBS MacCF Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Given a URL and a proxy dictionary, determines the ordered list of proxies that should be used to download the given URL.

url: The URL to be accessed
proxySettings: A dictionary describing the available proxy settings; the dictionary's format should match the dictionary returned by SystemProxySettings described below. If you pass nil, the plugin queries SystemProxySettings functions for you.

Returns an array of dictionaries; each dictionary describes a single proxy. See the comment at the top of this file for how to interpret the returned dictionaries.

Some examples using this method:

CFProxyMBS.SystemProxySettings as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation Network MBS MacCF Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Dictionary containing the current system internet proxy settings.
Example
dim d as Dictionary = CFProxyMBS.SystemProxySettings

dim k as string = CFProxyMBS.kCFProxyTypeKey
MsgBox "Type: "+d.lookup(k, "unknown")

Returns a dictionary containing key-value pairs that represent the current internet proxy settings.
Value is nil if no proxy settings have been defined or if an error was encountered.

Some examples using this method:

Previous items

The items on this page are in the following plugins: MBS MacCF Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...