use curl() instead of file_get_contents()

performance reasons