Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2002
    Location
    Sibiu, Romania
    Posts
    221

    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.

  2. #2
    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. #3
    Join Date
    Dec 2002
    Location
    Sibiu, Romania
    Posts
    221
    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

  4. #4
    Join Date
    Oct 2009
    Posts
    275
    Easyapache wont affect ImageMagick installation. You can recompile it with curlSSL which will fix the issue.

  5. #5
    Join Date
    Dec 2002
    Location
    Sibiu, Romania
    Posts
    221
    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. #6
    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. #7
    Join Date
    Dec 2002
    Location
    Sibiu, Romania
    Posts
    221
    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. #8
    Join Date
    Dec 2002
    Location
    Sibiu, Romania
    Posts
    221
    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

  9. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •