PHP: CURL API TEST (supports POST/DELETE/PUT)