Add select and change file_get_contents by curl in post