getContext()
getContext(string $url, array $defaultOptions = array(), array $defaultParams = array()) : resource
Creates a context supporting HTTP proxies
Parameters
string | $url | URL the context is to be used for |
array | $defaultOptions | Options to merge with the default |
array | $defaultParams | Parameters to specify on the context |
Throws
- \RuntimeException
if https proxy required and OpenSSL uninstalled
Returns
resource —Default context