test server: handle POST request