Contents

SCDynamicStoreCopyProxies(_:)

Returns the key-value pairs that represent the current internet proxy settings.

Declaration

func SCDynamicStoreCopyProxies(_ store: SCDynamicStore?) -> CFDictionary?

Parameters

  • store:

    The dynamic store session that should be used for communication with the server. Pass NULL to use a temporary session.

Return Value

A dictionary of key-value pairs that represent the current internet proxy settings, or NULL if no proxy settings have been defined or if an error occurred. You must release the returned value.

Discussion

The returned proxy settings dictionary can include the following key-value pairs:

Key

Type

Description

kSCPropNetProxiesExceptionsList

A CFArray of CFString objects

Host name patterns that should bypass the proxy

kSCPropNetProxiesHTTPEnable

A CFNumber with the value 0 or 1

Enables or disables the use of an HTTP proxy

kSCPropNetProxiesHTTPProxy

CFString

The proxy host

kSCPropNetProxiesHTTPPort

CFNumber

The proxy port number

kSCPropNetProxiesHTTPSEnable

A CFNumber with the value 0 or 1

Enables or disables the use of an HTTPS proxy

kSCPropNetProxiesHTTPSProxy

CFString

The proxy host

kSCPropNetProxiesHTTPSPort

CFNumber

The proxy port number

kSCPropNetProxiesFTPEnable

A CFNumber with the value 0 or 1

Enables or disables the use of an FTP proxy

kSCPropNetProxiesFTPProxy

CFString

The proxy host

kSCPropNetProxiesFTPPort

CFNumber

The proxy port number

kSCPropNetProxiesFTPPassive

A CFNumber with the value 0 or 1

Enables or disables passive mode operation for use behind connection filtering firewalls

See Also

Group