I'm developing a component require to use a management software api, which is using curl to accessing the data in that software.

However, it seems joomla restrict the curl access, because the api working fine without the joomla. When in joomla it show the error

 1 Curl error: Protocol " https" not supported or disabled in libcurl 

after some research on google, i found joomla may only accept curl request sending from JHttpTransportCurl. Please advice relate tutorial or example of how to using JHttpTransportCurl class.

  • See this answer, why you think this is Joomla! problem? I think that CURL over https is simply not allowed. – Rene Korss May 5 '15 at 9:54
  • Because I have check the setting, the setting is fine. – user3508896 May 6 '15 at 0:12
  • So i thinking joomla might block the normal curl request, have to use JHttpTransportCurl::request() to send curl request() – user3508896 May 6 '15 at 0:19

Set the following cURL options:

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,  2);

CURLOPT_SSL_VERIFYPEER - verify the peer's SSL certificate (http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html)

CURLOPT_SSL_VERIFYHOST - verify the certificate's name against host (http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.