fix - move from file_get_contents to curl