libcurl中不支持或禁用协议https [英] Protocol https not supported or disabled in libcurl

查看:1058
本文介绍了libcurl中不支持或禁用协议https的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序(它在OSCOMMERCE)中使用Authorize.net,当用户付款时返回空响应。我调试并发现它返回此错误:

I am using Authorize.net in my application(its in OSCOMMERCE) , When the user making payment its returning empty response. I debugged and find that it returning this error:


libcurl中不支持或禁用协议https

Protocol https not supported or disabled in libcurl

我发送一个prober url以https开头,在那里没有空格
https://secure.authorize.net/gateway/transact.dll

I am sending a prober url starts with https there is no space in that https://secure.authorize.net/gateway/transact.dll

我在共享托管服务器上的应用程序。我怀疑这是服务器端问题还是编程问题?

My application in shared hosting server. My doubt is this is server side problem or Programming problem ?

推荐答案

创建一个名为info.php的脚本, c $ c><?php phpinfo(); ?> 。

Create a script called info.php and in it put <?php phpinfo(); ?>. Save it somewhere on your site so you can access it from a browser.

找到 curl 部分,查看协议强>。如果未列出 https ,则cURL不是使用SSL支持构建的,您不能使用https。

Find the curl section and check what Protocols are supported. If https is not listed, then cURL was not built with SSL support and you cannot use https.

还要查看注册的PHP流的第一部分,看看是否列出了 https 。如果是这样,那么你可以使用PHP的套接字函数或函数 file_get_contents() fopen a href =http://php.net/stream_context_create>上下文。

You can also look in the very first section for Registered PHP Streams and see if https is listed. If so, then you can fallback to use PHP's socket functions or functions such as file_get_contents() or fopen with a context.

由于您提到您在共享主机上,请请求您的主机重新编译PHP,以便PHP和curl都是用OpenSSL支持构建的,所以你可以使用加密,否则你将需要找到另一个解决方案。

Since you mention you are on a shared host, request that your host recompile PHP so that both PHP and curl are built with OpenSSL support so you can use encryption, otherwise you will need to find another solution.

这篇关于libcurl中不支持或禁用协议https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆