change file_get_conents to curl