New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server shows empty body when using POST addJSONObjectBody #53
Comments
FYI, here is my working Volley code:
|
I just created the same situation to test it. API - which require both and in JSONObject. otherwise it send error with error body as bad parameter When I make request it is working perfectly. Still trying to figure out the problem you are facing.
Thanks |
Thanks for the response. |
When I make request with correct data, it is giving me in
When I make request with wrong data, it is giving me in
|
That sounds to me like a server side logic choice that is probably by design. |
Today's investigation is leading me to believe that the problem I am seeing is related to the GzipRequestInterceptor.
When I comment out the GzipRequestInterceptor line, my server logic seems to work. |
Yup! |
Symptoms: When POSTing a valid JSONObject (89 characters deserialized) to an Ubuntu Apache Slim PHP (http://www.slimframework.com, https://github.com/slimphp/Slim) server, both Stetho and AnalyticsListener say that 89 bytes was sent, but the server sees only an empty/null body.
When I make what I believe to be the exact same request using Volley the server responds just fine as expected.
(I have yet to get Stetho to work w/ Volley, so I cannot confirm how identical the request is or isn't)
I believe that my code is pretty straightforward:
Usage:
Stetho sniff:
(I had my web developer output to the response the post body that he read.)
Any idea why AN doesn't work, but Volley does?
The text was updated successfully, but these errors were encountered: