Add CURL support

Some shared hosting does not allow socket connection. With native curl library support, people (like me in my shared hosting) may have choices to use curl as its connection library.