Go Back   All Net Tools - Forum > Main > Programming
Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 08-06-2009, 03:41 AM
gilbertsavier gilbertsavier is offline
Registered User
 
Join Date: Jun 2009
Posts: 10
How do I install Curl?

Hi,
http://curl.haxx.se

wget http://curl.haxx.se/download/curl-7.16.0.tar.gz
tar -pxzf curl-7.16.0.tar.gz
cd curl-7.16.0
./configure --with-ssl
make
make install
ldconfig -v

Then use --with-curl in PHP's configure

For use with Perl use
http://curl.haxx.se/libcurl/perl/

wget http://curl.haxx.se/libcurl/perl/WWW-Curl-2.0.tar.gz
tar -pxzf WWW-Curl-2.0.tar.gz
cd WWW-Curl-2.0
perl Makefile.PL
make
make install


#######
We also had problems usign Curl to talk to a new geotrust cert, curl did not recognise the CA signing authority. Using the command line -k will not worry about the signing auth in PHP use curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);

In the end Geotrust supplied a cert

This needed to be appended onto
/usr/local/share/curl/curl-ca-bundle.crt

Also refer to
http://curl.haxx.se/docs/sslcerts.html
__________________
Thanks & regards
Lokananth
Live Chat Software By miOOt
Reply With Quote
  #2  
Old 09-02-2009, 04:48 AM
haja333 haja333 is offline
Registered User
 
Join Date: Sep 2009
Posts: 2
We also had problems usign Curl to talk to a new geotrust cert, curl did not recognise the CA signing authority. Using the command line -k will not worry about the signing auth in PHP use curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);

In the end Geotrust supplied a cert

This needed to be appended onto
/usr/local/share/curl/curl-ca-bundle.crt
______________________________

Last edited by gordo; 09-02-2009 at 08:41 AM.
Reply With Quote
  #3  
Old 09-28-2009, 03:27 AM
tenna333 tenna333 is offline
Registered User
 
Join Date: Sep 2009
Posts: 1
1. Create a file in your web server (in Ubuntu it would be in /var/www folder), name it info.php
2. Open that file and type this command:

<?php phpinfo(); ?>

3. Save that file
4. Open your favorite browser and open that file (ex: http://localhost/info.php)
5. Now you will see the Information about your PHP installation
6. Search for Curl, and if you cannot find it, it mean your php doesn’t have curl installed.
_____________________________________________
What to Expect after Bariatric Surgery
laboratory microscopes
Reply With Quote
  #4  
Old 10-24-2009, 06:50 AM
rahima12233 rahima12233 is offline
Registered User
 
Join Date: Oct 2009
Posts: 1
How can i install cURL on my cPanel server?
Solution

There are two common types of cURL installs on most cPanel servers. The first is a binary install, this is where the cURL binary (program) sits on your server (usually in /usr/bin) and can be run via the CLI or script. The second method is to have cURL built into PHP so that PHP's cURL functions can be used in PHP code. Below explains how to install each.

 Installing the Binary Version on All versions of CentOS/RHEL/Fedora:

1. Log into the server via SSH or console as root.
2. Run the following command:

yum install curl curl-devel

3. When prompted to confirm the installation press y.

CURL is now installed and should reside in /usr/bin/curl

 Adding cURL support into PHP:

1. Log into the server via SSH or console as root.
2. Run the following command:

/scripts/easyapache

3. Select 'Start customizing based on profile', leaving 'Previously Saved Config' checked.
4. Select the version of Apache you would like to run.
5. Select the branch and version of PHP you would like on the next two pages (it is not recommended to run both PHP 4 and 5).
6. Select 'Exhaustive Options List' on the following page.
7. Scroll down to the PHP configuration section to cURL, and proceed to th enext stop (cURL-SSL can also be enabled).
8. Select 'Save and Build', and let the compilation run its course (usually takes 15-20 minutes).
______________________________________________
whack my boss
Copiers
Reply With Quote
  #5  
Old 11-05-2009, 06:05 AM
DAIRYMILK DAIRYMILK is offline
Junior Member
 
Join Date: Nov 2009
Posts: 2
I resolved the problem. Thank You very much for helping me...

this is what I used so that I could do the post thingie:
I will surely figure it out how to do it with the other script

Once Again I thank you very much

<?php
$url = 'http://example.com/cgi-bin/sp.pl';
$params = "name=your_name&email=youremail@mail.com&subject=a pealing texudo&body=go to hell";
$user_agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";

$ch = curl_init();
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // this line makes it work under https

$result=curl_exec ($ch);
curl_close ($ch);

echo("Results: <br>".$result);
?>
=====================================================
dial up internet providers mercury parts
Reply With Quote
  #6  
Old 11-12-2009, 02:32 AM
D.Urics D.Urics is offline
Registered User
 
Join Date: Oct 2009
Location: United States
Posts: 1
Send a message via ICQ to D.Urics
How do I install Curl

Thanks for sharing. If you can please write one more tutorial on how to install ASP on local pc.
Reply With Quote
  #7  
Old 11-13-2009, 01:17 PM
The Arabian The Arabian is offline
Registered User
 
Join Date: Oct 2009
Posts: 11
thank....gilbertsavier

Reply With Quote
  #8  
Old 11-17-2009, 04:06 PM
lap-k lap-k is offline
Registered User
 
Join Date: Nov 2009
Location: USA
Posts: 2
Send a message via ICQ to lap-k
How do I install Curl

I've found references in the docs for .tab.visible but I'm not sure how to use this to hide individual tabs of a tabstrip. Anyone care to give an example?
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

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

Forum Jump

Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.