[solved] cURL ERROR: Protocol https not supported or disabled in libcurl

#1
Hi guys,

Been running LiteSpeed for 6 months, and so far I am pretty happy with it.

Today, I needed to to cURL an https URL with PHP, but the script returned this error:

HTTP ERROR: cURL ERROR: 1: Protocol https not supported or disabled in libcurl

My PHP is compiled with cURL and SSL, so I don't really know why this error is popping up.

Code:
'--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--enable-wddx' '--prefix=/usr/local' '--with-bz2' '--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pic' '--with-png-dir=/usr' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'
Take at look at my phpinfo():

http://meiler.com/phpinfo.php

Code:
cURL support	enabled
cURL Information	libcurl/7.19.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Do you have any idea about this error? should I recompile curl or something. Any thoughts would be appreciated!

PD: I tried the same script on my Windows machine and it worked perfectly.
 
Last edited by a moderator:
#3
NiteWave, when I read your reply, I noticed my mistake.

I have two servers, and the one running this domain didn't have SSL enabled for cURL. I recompiled and now it's working fine.

Thanks for your time, and I am sorry for the confusion!
 
Top