I have a request generated by putting map of parameters
val reqUrl = url("http://example.com")
val req = reqUrl << Map("key" -> "value")
I need to get request body in order to calculate it's hash. I'm trying this way
val data = req.toRequest.getStringData
println(data)
but it results null.
The
requestyou currently defined is aGETrequest which normally has no body. Sonullis the expected body value.You could try using a
POSTas described here : http://dispatch.databinder.net/HTTP+methods+and+parameters.html.