0

I want to get a body request for POST http method to get a request params. I found this solution first solution and this one second solution, but this two did not works for me, because I'm using a OkHttp. There is not any getReader() method to use or something similar.

How can I get from OkHttp POST request body the request parameters?

chebad
  • 919
  • 1
  • 13
  • 29
  • Isn't okhttp a client? Why do you want to retrieve the post request body on the client side? – rmlan May 15 '18 at 14:13
  • Yes, but I'm using it with Retrofit-2 on my server side for all http calls. My goal is to get request parameters from this call and use it for some purpose. Maybe you have any idea how to get this params? – chebad May 15 '18 at 14:20
  • Can you post some code and show where you are having trouble retrieving the body? Both ok and retrofit are client technologies. This doesn't make any sense. – rmlan May 15 '18 at 14:25

0 Answers0