test restful with php