hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : cURL error:Protocol https not supported or disabled in libcurl
Reply

Forum Jump

cURL error:Protocol https not supported or disabled in libcurl

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-12-2010, 06:42 AM
ovisopa ovisopa is offline
Junior Guru
 
Join Date: Dec 2002
Location: Sibiu, Romania
Posts: 220

cURL error:Protocol https not supported or disabled in libcurl


Hello guys,

I have an issue with libcurl while trying to make an PHP script conecting to an https link using curl, the script returns

PHP Code:
  Array
(
    [
url] => https://www.justvoip.com/myaccount/sendsms.php?username=...............
    
[http_code] => 0
    
[header_size] => 0
    
[request_size] => 0
    
[filetime] => -1
    
[ssl_verify_result] => 0
    
[redirect_count] => 0
    
[total_time] => 0
    
[namelookup_time] => 0
    
[connect_time] => 0
    
[pretransfer_time] => 0
    
[size_upload] => 0
    
[size_download] => 0
    
[speed_download] => 0
    
[speed_upload] => 0
    
[download_content_length] => 0
    
[upload_content_length] => 0
    
[starttransfer_time] => 0
    
[redirect_time] => 0
)


cURL error number:1

cURL error
:Protocol https not supported or disabled in libcurl 
than I have checked the server

# curl --version
curl 7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

# curl-config --feature
SSL
IPv6
libz
IDN
NTLM

# openssl version -a
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
built on: Fri Sep 4 08:29:03 EDT 2009
platform: linux-elf
options: bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -I/usr/kerberos/include -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -Wa,--noexecstack -DOPENSSL_USE_NEW_FUNCTIONS -fno-strict-aliasing -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
OPENSSLDIR: "/etc/pki/tls"
engines: padlock dynamic

Do I still need to recompile the Apache/PHP using Easy Apache in WHM ? or is there an configuration I can make to curl to be able to use SSL.



Sponsored Links
  #2  
Old 01-12-2010, 06:59 AM
LeaTrueman LeaTrueman is offline
Web Hosting Guru
 
Join Date: Oct 2009
Posts: 275
Hello,

Could you please confirm that you have compiled php with curlSSL. Please run easyapache to enable curlSSL.

  #3  
Old 01-12-2010, 07:18 AM
ovisopa ovisopa is offline
Junior Guru
 
Join Date: Dec 2002
Location: Sibiu, Romania
Posts: 220
In EasyApache the curlSSL is not checked, I was thinking to ask before because as I seen # curl --version is reporting https, # curl-config --feature shows the SSL .. I was thinking it is already installed and maybe there's some more config to be done to enable it.

Tonight I will try to run EasyApache because I'm not sure if ImageMagick and Imagick will work fine after recompiling PHP, I think I'll have to reinstall ImageMagick also .. this is why I didn't tryed now to recompile it because I have few visited websites (4000+ unique/day) which depends on ImageMagick and Imagick

Sponsored Links
  #4  
Old 01-12-2010, 07:53 AM
LeaTrueman LeaTrueman is offline
Web Hosting Guru
 
Join Date: Oct 2009
Posts: 275
Easyapache wont affect ImageMagick installation. You can recompile it with curlSSL which will fix the issue.

  #5  
Old 01-12-2010, 08:02 AM
ovisopa ovisopa is offline
Junior Guru
 
Join Date: Dec 2002
Location: Sibiu, Romania
Posts: 220
Thank you. I'll try it and let you guys know.

P.S. so if # curl-config --feature reports SSL and # curl --version supports protocol https, this doesn't mean that SSL is available ?

  #6  
Old 01-12-2010, 09:10 AM
LeaTrueman LeaTrueman is offline
Web Hosting Guru
 
Join Date: Oct 2009
Posts: 275
Hello,

Please try selecting the curlSSL from easyapache and let me know if you are still having issues.

  #7  
Old 01-12-2010, 11:29 AM
ovisopa ovisopa is offline
Junior Guru
 
Join Date: Dec 2002
Location: Sibiu, Romania
Posts: 220
just a short notice

Imagick doesn't work after recompiling Apache/PHP using Easy Apache

I'll be back with more info after I will fix the issue with ImageMagick and Imagick


Last edited by ovisopa; 01-12-2010 at 11:38 AM.
  #8  
Old 01-12-2010, 11:56 AM
ovisopa ovisopa is offline
Junior Guru
 
Join Date: Dec 2002
Location: Sibiu, Romania
Posts: 220
The default versions (Imagick & ImageMagick) installed using WHM had some issues and I had to manualy downgrade to another version to make them work ok.

I have reinstalled (first remove and than install again, NOT update or Reinstall button from WHM) Imagick and it worked.

It seems that what I was afraid off ..did happened. This is why is better to recompile on night time, there's a small chance that things go wrong.

With curlSSL installed my php script is working perfect, now I can send SMS messages from my webpage

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Curl (PHP)login to https php_techy Programming Discussion 1 06-22-2009 01:59 AM
cURL with OpenSSL and Secure HTTPS AndreF Programming Discussion 6 06-19-2008 08:15 AM
Protocol scheme 'https' is not supported DephNet[Paul] Programming Discussion 12 11-11-2006 05:41 PM
redirect from http to https protocol DarthClark Hosting Security and Technology 24 07-14-2006 09:08 PM
Need HELP with CURL/PHP secure https post with curl_exec() hoser Hosting Security and Technology 5 04-11-2002 03:58 AM

Related posts from TheWhir.com
Title Type Date Posted
Payment Platform Co-Founded by Mt. Gox Creator Gets Backing from Stripe Web Hosting News 2014-08-04 09:29:39
Admin Error Brings Down Joyent’s Ashburn Data Center Web Hosting News 2014-05-28 10:18:18
Dropbox Vulnerability Allows Unauthorized Access of User Files Web Hosting News 2014-05-07 14:31:27
Google Releases Hosted Database Service Cloud SQL to General Availability Web Hosting News 2014-02-12 13:46:02
Lengthy Outages for Hacker News, FastHosts Web Hosting News 2014-01-06 09:56:36


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?