Protocol https not supported or disabled in libcurl

后端 未结 3 1565
夕颜
夕颜 2020-12-01 18:15

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:<

相关标签:
3条回答
  • 2020-12-01 18:41

    I had this problem and it was because of space in url:

    ' https://www.google.com/recaptcha/api/siteverify'
    

    as you see there is a space before https

    0 讨论(0)
  • 2020-12-01 18:41

    For those that have https support but still get an error similar to below

    [curl] 1: Protocol %20https not supported or disabled in libcurl [url] %20https://www.example.com/%20
    

    Ensure that the URL is valid

    • Try on a basic URL such as https://www.example.com
    • Check your URLs and make sure no spaces at start/end of URL (as shown above as %20)
    • Check for characters in your URL likely to break the curl request
    0 讨论(0)
  • 2020-12-01 18:48

    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.

    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.

    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.

    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.

    0 讨论(0)
提交回复
热议问题