OptimusHTTP icon indicating copy to clipboard operation
OptimusHTTP copied to clipboard

Send only json in post request

Open dielfilho-zz opened this issue 9 years ago • 3 comments

How can I send only json in post request?

I'm using ArrayMap<String, String> params = new ArrayMap<String, String>(); String jsonParam = gson.toJson(param); params.put("", jsonParam); But the request is send with = symbol Example: ={test:"test"}

I already put the OptimusHttp.CONTENT_TYPE_JSON, but the "=" still appear

dielfilho-zz avatar Sep 28 '16 13:09 dielfilho-zz

Hi i create this fix to problem. https://github.com/nisrulz/OptimusHTTP/pull/8

luizfelipetx avatar Oct 08 '16 00:10 luizfelipetx

I still have the same error with your fix :/

Romgua avatar Mar 19 '18 16:03 Romgua

The #8 pull request was not being accepted yet. @luizfelipetx can you resolve the conflicts on this PR?

dielfilho-zz avatar Mar 20 '18 00:03 dielfilho-zz