Go Back   Cloud Computing > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-27-11, 03:37
BOD Member
 
Join Date: Nov 2010
Posts: 202
Default Problem With Libcurl

Hello ,
I am facing a problem with libcurl.
I want to create a PHP script connecting to an https link using curl. I get the following result :

Quote:
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
Is there any requirement to recompile the Apache or PHP with Easy Apache from WHM?
Or Can I make to curl to able to use SSL with any configuration?
Reply With Quote
  #2 (permalink)  
Old 12-27-11, 05:31
Moderator
 
Join Date: Nov 2010
Posts: 476
Default

After getting the above result, did you check the server?
If yes, then what was the result?
Reply With Quote
  #3 (permalink)  
Old 12-27-11, 20:56
BOD Member
 
Join Date: Nov 2010
Posts: 202
Default

Yes. After get that result I checked out the server. I got the following :

# curl --version
Quote:
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

Quote:
SSL
IPv6
libz
IDN
NTLM
# openssl version -a
Quote:
OpenSSL 0.9.8e-fips-rhel5 15 Aug 2010
built on: Mon Sep 5 09:30:04 EDT 2011
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
Reply With Quote
  #4 (permalink)  
Old 12-27-11, 23:41
Moderator
 
Join Date: Nov 2010
Posts: 476
Default

One more thing, can you confirm that do you have compiled php with curl SSL.
If the result is no, then please run Easy Apache to enable curl SSL.
Reply With Quote
  #5 (permalink)  
Old 12-28-11, 02:48
BOD Member
 
Join Date: Nov 2010
Posts: 202
Default

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.
Reply With Quote
  #6 (permalink)  
Old 12-28-11, 03:22
Moderator
 
Join Date: Nov 2010
Posts: 476
Default

For your kind information, Easy Apache can't affect on imageMagick installation.
You can recompile it with curlSSL to solve the problem.
Reply With Quote
  #7 (permalink)  
Old 12-28-11, 04:24
BOD Member
 
Join Date: Nov 2010
Posts: 202
Default

Thank you very much webmaster.
I will try it and let you know.
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 00:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.