0
私は、Google App Engineを使用してJava上でWebアプリケーションを作成しようとしています。私はhttp-post要求を送信しているアプリケーションを持っています。簡単なhttp投稿要求を処理するGAE
- このhttp-postリクエストを処理するにはどうすればよいですか?でURLに
public class ExampleAppServlet extends HttpServlet{ public void doPost(HttpServletRequest req, HttpServletResponse resp) { // get some data from POST InputStream input = req.getInputStream(); // do something with input // send back some reply resp.getWriter().write("Hello Example App").close(); } }
地図このサーブレットを:私のWebアプリのGAEのURLがhttp://example.appspot.com/example_app