[#41139443] swapped fopen call to curl
Merge pull request #2 from fullcontact/curlRefactor

[#41139443] swapped fopen call to curl