HttpGet with request body android

后端 未结 3 1200
有刺的猬
有刺的猬 2021-01-21 06:55

I try to make a request on server by HttpGet. But in message body should be a json object. Code below is not working because unit_id and sercret_key are not sent on server in bo

3条回答
  •  被撕碎了的回忆
    2021-01-21 07:10

    Here is nice example how to do it and it is working.

    Apache HttpClient GET with body

    But this approach is against RESTFUL api i think.

提交回复
热议问题