cURL or Client for URLs allows transferring of files using URL. It supports FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE.
To enable, modify the php.ini files in the XAMPP folder.
1) Locate php.ini in any of the following path.
\xampp\apache\bin\php.ini
\xampp\php\php.ini
\xampp\php\php4\php.ini
2) Uncomment the following line on the php.ini file by removing the semicolon.
;extension=php_curl.dll
3) Restart your apache server.
4) Finished, cURL is now enabled.