Catch the case when allow_url_fopen=false