nisrulz/OptimusHTTP

Send only json in post request

Offen

#7 geöffnet am 28.09.2016

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (9 Forks)github user discovery
Hacktoberfestenhancement

Repository-Metriken

Stars
 (37 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide