Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何在guzzle中使用CURLOPT_ERRORBUFFER_Php_Curl_Guzzle_Guzzle6_Guzzlehttp - Fatal编程技术网

Php 如何在guzzle中使用CURLOPT_ERRORBUFFER

Php 如何在guzzle中使用CURLOPT_ERRORBUFFER,php,curl,guzzle,guzzle6,guzzlehttp,Php,Curl,Guzzle,Guzzle6,Guzzlehttp,我正在为SSO使用PHP网站的扩展,它使用guzzle。运行时会出现此错误 Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 35: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in.....

我正在为SSO使用PHP网站的扩展,它使用guzzle。运行时会出现此错误

Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 35: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in.....
当我访问错误35中提到的网站时,它说:

CURLE_SSL_CONNECT_ERROR (35)

A problem occurred somewhere in the SSL/TLS handshake. You really want the error buffer and read 
the message there as it pinpoints the problem slightly more. Could be certificates (file formats, paths,
permissions), passwords, and others.
网站的顶部告诉我们这一点

No matter what, using the curl_easy_setopt option CURLOPT_ERRORBUFFER is a good idea as it will 
give you a human readable error string that may offer more details about the cause of the error 
than just the error code.
正如网站上提到的,我如何在guzzle中使用

任何答案都将不胜感激


请告诉我该怎么做。

似乎不支持
CURLOPT\u ERRORBUFFER
。在Php手册中找不到。@UmairKhan在这篇评论中看到,他说guzzle是可以的,但他没有提到如何实现。在Php中,错误缓冲区是使用@DanielStenberg提供的,那么如何在guzzle中实现呢