Added support for using curl if file_get_contents is not enabled.d