in reply to LWP content literal string

If you want to pass a JSON string to the other side, don't use the HTTP::Request::Common methods that create an application/x-www-form-urlencoded string (and are documented to do so).

Simply create the string using (say) JSON::XS and then use the Content parameter of HTTP::Request to put your string there.

Replies are listed 'Best First'.
Re^2: LWP content literal string
by packetstormer (Monk) on Oct 14, 2014 at 10:48 UTC

    I did try that but I get an 400 message : "'Library does not allow method HTTP::Request=HASH(0xa16e5d8) for \'http:\' URLs'"

    I can't track the meaning of that message down anywhere

      This message means you messed up the request, there is no such method as "HTTP::Request=HASH(0xa16e5d8)"