The important of enabling curl library in xampp (localhost) is a good idea for testing with many API’s like Shipping,Payment or some social networking etc.. The curl library in xampp or localhost is very helpful for many situations like before working on server we can test that module or plugin in locally also the debug is make easier .
The procedure for enabling the curl library in your xampp is very simple and 2 steps .Step : 1
Find your php.ini file in the xampp installation folder commonly under xampp\php\php.ini for latest versions. Open the file and search for
extension=php_curl.dll and remove the “;” from the beginning like below.
Change to follows.
Step : 2
Restart your apache sever (xampp) from controll panel. then check your phpinfo() and make sure the curl library is enabled.
For older version check the following files.
\xampp\apache\bin\php.ini \xampp\php\php.ini \xampp\php\php4\php.ini
And uncomment the same thing