Changed php get file to curl