You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All Volley is doing is posting the raw bytes you tell it to in getBody(). If you're not seeing consistent behavior server-side, then dump the bytes of the request from a client that works and figure out what's different.
I don't think there's a Volley issue here. At a glance at your stack overflow post, your implementation of getBody() returns the bytes for this String:
items=247642&categories%5B%5D=12
but your Postman example is returning the bytes for this String:
Unless that was an inadvertent error, then of course the former wouldn't return an array; there's only one "categories" element, whereas the latter has two. If that was just a typo, then dig into the difference in the request bytes as noted above.
The difference between two body strings is not very necessary. In fact I have tried both (and many other variants) - all of them with no luck in Volley. I'll try to make a dump of the request body on the server's side, maybe it'll lead me to some fresh idea...
I'm having no luck to perform POST request with an array as param, while Postman and OkHttp are doing it correctly: http://stackoverflow.com/questions/43270880/what-is-a-correct-way-to-send-an-array-in-post-request-using-volley
Is it possible at all to encode arrays for POST requests in Volley?
The text was updated successfully, but these errors were encountered: