I'm using StringRequest
to send HTTP POST request on my Android app. One of the POST requests returns HTTP 400
when it is triggered via Volley. The API returns HTTP 200
when it is triggered through rest clients(Postman, curl). I suspect there is something wrong in the request body sent through volley.
protected Map<String, String> getParams()
{
Map<String, String> params = new HashMap<String, String>();
params.put("name", "Pomen Pogo");
params.put("email", "pomen.pogo@staples.net");
params.put("type", "Ninja");
return params;
}
Is there any way to log the full request body that volley sends in the POST request? I've enabled VolleyLog.DEBUG = true;
, It do logs the full response but It's is NOT logging the request body or URL.
Please help me to log the HTTP request details(url, request body etc.) in Volley.