发表文章

[PHP] react-guzzle-psr7 忽略狂饮的验证选项以配置 ssl 证书验证 react-guzzle-psr7 ignores guzzle's verify option to configure ssl certificate verification[react-guzzle-psr7]

dhoffend 2017-10-9 28

我不知道从哪里开始的初始问题/报告..。

创建狂饮客户端或启动请求时, 狂饮的验证选项将被忽略, 而不会被传递。但这个问题深入到反应库。

这里是对象链/创建的实例

  • HttpClientAdapter 正在创建一个基于响应/Http/客户端的 HttpClient
  • 反应 \ Http \ 客户端正在创建一个反应 \n SocketClient \n SecureConnecter 对象
  • 响应 \n SocketClient \ 连接器对象正在使用 stream_context_create () 和 stream_socket_client () 创建初始流对象, 并带有一个空的 stream_context 数组。

解决的办法是, 我们将能够向下推入其他 stream_context 选项管道的反应 \n SocketClient \ 连接器对象... 然后, 我们可以将给定的参数传输到流创建对象。

在此期间, 它看起来像我不能使用 react-guzzle-psr7 包, 由于这个问题, 我无法打开和关闭的验证测试。

原文:

I'm not sure where to start the initial issue/report ... well let's start

When creating the guzzle client or starting the request the verify option of guzzle gets ignored and not passed on. But this problems boils deep into the react library.

Here's the chain of objects / created instances

  • The HttpClientAdapter is creating an HttpClient based on React/Http/Client
  • The React\Http\Client is creating a React\SocketClient\SecureConnecter Object
  • The React\SocketClient\Connector Object is creating the initial stream object using stream_context_create() and stream_socket_client() with an empty stream_context array.

The solution would be that we would be able to push down additional stream_context options down the pipe to the React\SocketClient\Connector object .... then we could transport the given parameters down to the stream creating object.

In the meantime it looks like i'm not able to use the react-guzzle-psr7 package due to this problem where I'm not able to turn the verification on and off for testing.

相关推荐
最新评论 (2)
WyriHaximus 2017-10-9
1

你是在正确的地方, 但主要的问题在于其他地方。连接器对象不接受任何上下文选项, 因此我还不能实现该功能。然而, 有一个公关的问题, 将解决这个问题: reactphp/socket-client#17

原文:

You're in the right place but the main problem lies somewhere else. The connector object doesn't accept any context options so I can't implement that feature yet. There is however a PR on the matter that would resolve this issue: reactphp/socket-client#17

WyriHaximus 2017-10-9
2

关闭此问题, 因为没有任何活动, 因此假设它已解决。

原文:

Closing this issue for no activity thus assuming it has been resolved.

返回
发表文章
dhoffend
文章数
1
评论数
0
注册排名
60872