微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何在枪口中使用CURLOPT_ERRORBUFFER

如何解决如何在枪口中使用CURLOPT_ERRORBUFFER

我正在使用我的PHP网站扩展来使用Suzz的SSO。运行它时会给出此错误

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.

如网站中所述,我如何在狂饮中使用CURLOPT_ERRORBUFFER

任何答案都值得赞赏。

请让我知道我该怎么做。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。