ADDED curl error check
ADDED curl error check
Merge pull request #19 from SoSocio/AddedCurlCheck

ADDED curl error check