nisrulz/OptimusHTTP

Send only json in post request

Aperta

#7 aperta il 28 set 2016

 (3 commenti) (0 reazioni) (0 assegnatari)Java (9 fork)github user discovery
Hacktoberfestenhancement

Metriche repository

Star
 (37 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor