HttpRequest
在线手册:中文 英文
PHP手册

HttpRequest::setSslOptions

(PECL pecl_http >= 0.10.0)

HttpRequest::setSslOptionsSet ssl options

说明

public bool HttpRequest::setSslOptions ([ array $options ] )

Set SSL options.

参数

options

an associative array containing any SSL specific options; if empty or omitted, the SSL options will be reset

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.


HttpRequest
在线手册:中文 英文
PHP手册
PHP手册 - N: Set ssl options

用户评论:

Andy Christianson (24-Jul-2008 06:12)

This page does not describe the possible keys for the input array.

Here are the SSL option keys from the cURL source code as of 2008-07-24:

CERT: String that holds file name of the SSL certificate to use
CERTTYPE: String that holds file type of the SSL certificate to use
KEY: String that holds file name of the SSL certificate to use
KEYTYPE: String that holds file type of the SSL certificate to use
PASSWD: String that holds the SSL or SSH private key password.
ENGINE: String that holds the SSL crypto engine.
ENGINE_DEFAULT: flag to set engine as default.