replaced file_get_contents with url_get_contents which uses cURL
replaced file_get_contents with url_get_contents which uses cURL
Merged with master