PDA

View Full Version : How do I install Curl?



gilbertsavier
08-06-2009, 02:41 AM
Hi,
http://curl.haxx.se

wget http://curl.haxx.se/download/curl-7.*6.0.tar.gz
tar -pxzf curl-7.*6.0.tar.gz
cd curl-7.*6.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

haja333
09-02-2009, 03:48 AM
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
______________________________

tenna333
09-28-2009, 02:27 AM
*. 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(); ?>

*. 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 (http://www.ebariatricsurgery.com/WhattoExpect.php)
laboratory microscopes (http://labface.com/suppliers/Laboratory-Microscopes-*4*)

rahima12233
10-24-2009, 05:50 AM
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:

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

yum install curl curl-devel

*. When prompted to confirm the installation press y.

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

 Adding cURL support into PHP:

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

/scripts/easyapache

*. 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 *5-20 minutes).
______________________________________________
whack my boss (http://www.y*.com/search-results/**44*/whack-my-boss)
Copiers (http://www.fujixerox.com.au/)

DAIRYMILK
11-05-2009, 05:05 AM
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.0*; Windows NT 5.0)";

$ch = curl_init();
curl_setopt($ch, CURLOPT_POST,*);
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,*);
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 (http://www.ispcompared.com/high-speed.htm) mercury parts (http://www.carpartswarehouse.com/mercury-parts/)

D.Urics
11-12-2009, 01:32 AM
Thanks for sharing. If you can please write one more tutorial on how to install ASP on local pc.

The Arabian
11-13-2009, 12:17 PM
thank....gilbertsavier

:)

lap-k
11-17-2009, 03:06 PM
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?

masheela222
11-24-2009, 01:18 AM
Once again thank you very much for the assistance. I have made sure that all required *.dll's are in the \system*2 directory(I think?). Still nothing. The extension_dir in php.ini file reads like this (extension_dir = e:\php\extensions) and the windows extension is uncommented and looks like this (extension=php_curl.dll). However, when I look at the PHP info here it does not show anything about cURL being enabled or disabled. Perhaps there is something missing from my php.ini file? Going on * days with this problem, I'll have to throw a party to celebrate this accomplishment. hehe I'm still curious on the cURL install? Once again, all I've done with the cURL *.zip is unzip the file to a root directory. Nothing has been done with the environment variables. Does PHP require the cURL.exe?
________________________________________________
randki dating Rancontre (http://www.castinglove.net)
mortgage rates (http://www.home-mortgage-reviewing.com/200*/0*/mortgage-rates.html)

sabols88
11-28-2009, 03:00 AM
I tried this on my centos installation and it said that no suitable C compiler could be found in $PATH. I am wondering how to solve this, and what an acceptable C compiler would be anyway. Any tips? The config log says that it is checking for gcc, ** and cl.exe and it can’t find them. Mmm, what to do ???
======================================
Nashville Homes for Sale (http://www.NashvilleLuxuryHomes-Estates.com)
Custom Log Home Designs (http://www.imagineloghomes.com/)