- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我从我的服务器向其他服务器(http://example.com:8180)发送 api 请求
我得到这个错误
"cURL error 35: gnutls_handshake() failed : An unexpected TLS packet was received."
CURLOPT_SSL_VERIFYPEER
和
CURLOPT_SSL_VERIFYHOST
错误但仍然没有工作。
PHP Version => 7.2.1
System => Linux ip-x-x-x-x 4.4.0-1060-aws #69-Ubuntu SMP Sun May 20 13:42:07 UTC 2018 x86_64
Build Date => Jan 31 2019 05:39:24
Configure Command => './configure' '--enable-fpm' '--with-openssl' '--with-pdo-mysql' '--enable-mbstring' '--with-libxml-dir' '--enable-intl' '--with-gettext' '--with-mhash' '--with-gd' '--with-pc
re-jit' '--with-zlib' '--enable-bcmath' '--enable-calendar' '--with-zlib-dir' '--with-curl' '--enable-zip'
curl
cURL support => enabled
cURL Information => 7.47.0
Age => 3
Features
AsynchDNS => Yes
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => Yes
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => Yes
SPNEGO => Yes
SSL => Yes
SSPI => No
TLS-SRP => Yes
HTTP2 => No
GSSAPI => Yes
KERBEROS5 => Yes
UNIX_SOCKETS => Yes
PSL => No
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtmp, rtsp, smb, smbs, smtp, smtps, telnet, tftp
Host => x86_64-pc-linux-gnu
SSL Version => GnuTLS/3.4.10
ZLib Version => 1.2.8
echo | openssl s_client -connect x.x.x.x:8180
CONNECTED(00000003)
139662896404120:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:794:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 305 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.2
Cipher : 0000
Session-ID:
Session-ID-ctx:
Master-Key:
Key-Arg : None
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1560955018
Timeout : 300 (sec)
Verify return code: 0 (ok)
---
最佳答案
问题已经解决了。
我使用 laravel 并且有一个黑盒是 route() helper functiong
它根据服务器配置设置 url http 或 https
并且生产服务器设置为 https
这就是它导致错误的原因。
关于php - Guzzle (35) gnutls_handshake() 失败 : An unexpected TLS packet was received over HTTP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56672701/
当我运行以下代码(使用最新的 Guzzle v6)时,请求的 URL 是 http://example.com/foobar?foo=bar删除 boo=far从请求。 $guzzle_http_cl
我正在使用 Guzzle 并发请求工具: http://docs.guzzlephp.org/en/latest/quickstart.html#concurrent-requests 我的代码类似于
我需要将 header 类型添加到下面的 guzzle 请求中,但无法弄清楚如何在不出错的情况下添加它这是我要添加的内容: $command->set('command.headers', array
我正在使用 lumen 尝试通过 guzzle 设置简单的 api 请求。 问题是 base_uri 参数似乎没有在初始 new Client() 上正确传递. 简化示例: use GuzzleHtt
我正在使用 Guzzle 6。 我正在尝试模拟客户端并像这样使用它: 'application/json'], 'foo'), ]); $history = []; $history_middlew
我正在尝试使用 Guzzle 而不是直接使用 cURL 来实现和 HTTP 请求。我如何使用 Guzzle 发出相同类型的请求?或者我应该坚持使用cURL? $ch = curl_init(); //
Guzzle 的 API 文档在哪里? 有这两个链接(看起来是同一件事): http://guzzle.readthedocs.org/en/latest/quickstart.html http:/
我有一个页面使用 Guzzle 6 执行一些 REST 查询。它工作正常,但有时速度太慢,因为它总是进行查询。我发现有 guzzle-cache-middleware应该缓存来自远程 API 的响应。
在 Symfony 4 项目中,我使用 eightpoints/guzzle 包来调用远程 API。安装 bundle (并在单独的 yaml 文件中配置客户端)后,我关注了 this quide让我
您可以使用 Guzzle 的 Pool:batch() 方法并行执行 http 请求。它允许您使用第三个参数中的 options 键为请求设置默认选项。 但是如果我需要为池中的不同请求提供不同的选项怎
我正在尝试使用 Guzzle 5 连接到 WooCommerce API(Guzzle 6 似乎没有 oAuth 选项 o.O)。 Woocommerce requires the oAuth aut
我在 laravel 项目中遇到问题。 它显示了这个错误 Fatal Error : Class 'Guzzle\Http\Client' not found 我已安装 Guzzle 并将其添加到配置
Guzzle/Http的新手。 我有一个API rest url登录名,如果未授权,则用401代码回答;如果缺少值,则用400回答。 我将获取http状态代码以检查是否存在某些问题,但不能仅包含代码(
A. 总结 顾名思义,Guzzle 允许一次发送多个请求以节省时间,如 documentation . $responses = $client->send(array( $requestOb
我正在使用 PayPal API 模拟负面响应,以便在客户通过 onApprove 方法批准付款时获得响应并正确处理付款的关键部分。 我正在使用 GuzzleHttp + Laravel 来捕获 客户
我一直在尝试从工作中获取 GET 请求,但不断收到 500 错误。 我不知道发生了什么。 如果我执行以下操作,它可以正常工作: 'http://www.google.com', ]); $respo
我如何通过 guzzle 服务客户端获取发布数据 getCommand功能? 我的 json 如下所示: "createMessage": { "httpMethod": "P
之间有什么区别? GuzzleHttp ReactPHP Amphp 它们之间有何不同?与典型的用例一起使用是什么? 最佳答案 它们之间的主要区别是Guzzle是HTTP客户端,而Amp和ReactP
我不确定为什么会收到此错误: php composer.phar require guzzle/guzzle:~3.7 错误 : ./composer.json has been update
我想使用Guzzle和Silex将请求发送到https页面。 使用http url我有一个回应: app->get('/',function() use ($app, $client){ $r
我是一名优秀的程序员,十分优秀!