using command line curl with command "time curl -L yahoo.com"
below are the result
real 0m0.173s
user 0m0.003s
sys 0m0.005s
And if you want to check the version of a CURL
Command will be "curl -V"
Output:
curl 7.15.5 (x86_64-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
enable CURL via the php.inI
This is the main method on any windows install like WAMP, XAMPP etc
-
Locate your PHP.ini file
(normally located at in the bin folder of your apache install e.g.
-
Open the PHP.ini in notepad
-
Search or find the following : ‘;extension=php_curl.dll’
-
Uncomment this by removing the semi-colon ‘;’ before it
-
Save and Close PHP.ini
-
Restart Apache