It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming PHP and MySQL Forum

How do I install Curl?

Moderator: Malcolm

How do I install Curl?

Postby gilbertsavier on Wed Aug 19, 2009 1:14 pm

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
gilbertsavier
 
Posts: 24
Joined: Fri Jun 26, 2009 11:34 am

Who is online

Users browsing this forum: No registered users and 1 guest