Added curl check since file_get_contents doesn't work with rewritten routes