added check of http status after file_get_contents/curl to output a clearer Exception when failing to catch the XML