|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#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. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
How do I install Curl
Thanks for sharing. If you can please write one more tutorial on how to install ASP on local pc.
|
|
#7
|
|||
|
|||
|
thank....gilbertsavier
![]() |
|
#8
|
|||
|
|||
|
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?
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|