in reply to Re^2: Getting error while decoding JSON object via POST method
in thread Getting error while decoding JSON object via POST method

Implementing a transfer encoding on the server side is not easy. I would try to prevent sending data using the "chunked" transfer encoding. Depending on your client library, there are different ways to prevent that.

  • Comment on Re^3: Getting error while decoding JSON object via POST method

Replies are listed 'Best First'.
Re^4: Getting error while decoding JSON object via POST method
by boftx (Deacon) on May 19, 2014 at 18:56 UTC

    I must be missing something here. At my $work, we use CGI::Application on the front end and simply decode_json( $self->query->param( 'POSTDATA' ) ) to get the values regardless of HTTP 1.0 or HTTP 1.1 (which is what we use.) We POST with a content type of "application/json".

    It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.

      No, it was me who is missing that both, client and server are under the posters control.

      I was under the wrong impression that the server was an unknown third party server.