nisrulz/OptimusHTTP

Send only json in post request

Aberta

#7 aberto em 28 de set. de 2016

 (3 comentários) (0 reação) (0 responsável)Java (9 forks)github user discovery
Hacktoberfestenhancement

Métricas do repositório

Stars
 (37 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador