Volley JsonObjectRequest Post request not working

后端 未结 9 1866
有刺的猬
有刺的猬 2020-11-22 06:25

I am using android Volley for making a request. So I use this code. I don\'t understand one thing. I check in my server that params is always null. I consider that getParams

9条回答
  •  鱼传尺愫
    2020-11-22 07:08

    The override function getParams works fine. You use POST method and you have set the jBody as null. That's why it doesn't work. You could use GET method if you want to send null jBody. I have override the method getParams and it works either with GET method (and null jBody) either with POST method (and jBody != null)

    Also there are all the examples here

提交回复
热议问题