![]() Tip: you may setup default request options via yii\httpclient\Client::$requestConfig. >setData([ 'name' => 'John Doe', 'email' => => 'tcp://:5100', // use a Proxy 'timeout' => 5, // set timeout to 5 seconds for the case server is not responding sslPassphrase: Passphrase with which your sslLocalCert file was encoded.įor example: use yii\ httpclient\ Client.sslLocalPk: Path to local private key file on filesystem in case of separate files for certificate (sslLocalCert) and private key.The private key also may be contained in a separate file specified by sslLocalPk. It can optionally contain the certificate chain of issuers. It must be a PEM encoded file which contains your certificate and private key. sslLocalCert: Path to local certificate file on filesystem.sslCapath: string, a directory that holds multiple CA certificates.The 'sslVerifyPeer' option to authenticate the identity of the remote peer. sslCafile: string, location of Certificate Authority file on local filesystem which should be used with.sslVerifyPeer: boolean, whether verification of the peer's certificate should be performed.maxRedirects: integer, the max number of redirects to follow.followLocation: boolean, whether to follow any "Location: " header that the server sends as part of the HTTP header. ![]() userAgent: string, the contents of the "User-Agent: " header to be used in a HTTP request.proxy: string, URI specifying address of proxy server.timeout: integer, the maximum number of seconds to allow request to be executed.You may use yii\httpclient\Request::$options to adjust particular request execution.įollowing options are supported (case-sensitive):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |