You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My stream_context_optionsparameters was not working.
I found the solution in file /src/Transport/Client.php on line 73 : $socketClient = new SocketHttpClient($messageFactory, $socketClientOptions);
replaced by : $socketClient = new SocketHttpClient($messageFactory, null, $socketClientOptions);
because the SocketHttpClient constructor is :
/**
* Constructor.
*
* @param array $config {
*
* @var string $remote_socket Remote entrypoint (can be a tcp or unix domain address)
* @var int $timeout Timeout before canceling request
* @var array $stream_context_options Context options as defined in the PHP documentation
* @var array $stream_context_param Context params as defined in the PHP documentation
* @var bool $ssl Use ssl, default to scheme from request, false if not present
* @var int $write_buffer_size Buffer when writing the request body, defaults to 8192
* @var int $ssl_method Crypto method for ssl/tls, see PHP doc, defaults to STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT
* }
*/
public function __construct($config1 = [], $config2 = null, array $config = [])
{
if (\is_array($config1)) {
$this->config = $this->configure($config1);
return;
}
@trigger_error('Passing a Psr\Http\Message\ResponseFactoryInterface and a Psr\Http\Message\StreamFactoryInterface to SocketClient is deprecated, and will be removed in 3.0, you should only pass config options.', E_USER_DEPRECATED);
$this->config = $this->configure($config);
}
Kind regards
The text was updated successfully, but these errors were encountered:
Hello,
I found a problem when I wanted to connect to a print server using HTTPS and a self-signed certificate.
My
stream_context_options
parameters was not working.I found the solution in file /src/Transport/Client.php on line 73 :
$socketClient = new SocketHttpClient($messageFactory, $socketClientOptions);
replaced by :
$socketClient = new SocketHttpClient($messageFactory, null, $socketClientOptions);
because the SocketHttpClient constructor is :
Kind regards
The text was updated successfully, but these errors were encountered: