getting curl error

Posted in General by lakshmi Wed May 31 2017 06:02:29 GMT+0000 (UTC)·3·Viewed 601 times

hi i am using php Api link https://github.com/Instamojo/instamojo-php i have called this function paymentRequestPaymentStatus(id,payment_id); for getting status of payment. But i am getting this error: Error: Something went wrong. cURL raised an error with number: 1 and message: Protocol https not supported or disabled in libcurl. [] How I can fix this?
Instamojo
May 31, 2017

Hello,

Thanks for writing in. Please include the following lines of code to check what all protocols does your cURL provide:

$values = curl_version();
print_r(array_values($values["protocols"]));

The error corresponds to your cURL not supporting https. I would suggest you please check the reason as described here: https://curl.haxx.se/docs/faq.html#Protocol_xxx_not_supported_or_di

I would suggest you to delete/uninstall your curl and install it again.

Thanks & Regards,
Saransh Kumar

lakshmi
May 31, 2017

thanks for response. now i have solved that error. but now i get the other error
error is Error: null
[]

shivani srivastava
Sep 15, 2018

i m also getting null error...

  
Markdown is allowed