Now using cURL

Replaced the getfilecontents with cURL