[undertow-dev] HttpServerExchange post data

Mike Stefaniak mstefaniak at choicestream.com
Thu Jan 1 18:32:35 EST 2015

I can't figure out how to get the content of post data

My server start

        .addHttpListener(8080, "")
        .setHandler(Handlers.routing().post("/bid", new BidHandler()))

And the handler class

public final class BidHandler implements HttpHandler {

    public void handleRequest(final HttpServerExchange exchange) throws
Exception {

If I make a curl request like so

curl -H "Content-Type: application/json" -X POST -i -d '{"some": "value"}'

It gets to the handler, but I can't figure out to access the post data from
the request

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20150101/2cd0f197/attachment.html 

More information about the undertow-dev mailing list