I have searched everywhere, but all I could find was un-comment a certain line in php.ini file, which did not work for me.
I have un-commented the line in php.ini file.
phpinfo.php file shows curl is enabled. It gives the following output
cURL support enabled
cURL Information 7.47.1
Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp
SSL Version OpenSSL/1.0.2d
ZLib Version 18.104.22.168
libSSH Version libssh2/1.7.0
I am using PHP 5.5.34 (cli) (built: Mar 30 2016 12:58:33) in XAMPP 5.5.34