Я разрабатываю приложение для Android, которое общается с веб-службой RESTful, которую я написал. Использование методов Volley
для GET
является удивительным и легким, но я не могу наложить указатель на методы POST
.
Я хочу отправить запрос POST
с String
в тело запроса и получить исходный ответ веб-службы (например, 200 ok
, 500 server error
).
Все, что я мог найти, это StringRequest
, который не позволяет отправлять данные (тело), а также ограничивает меня получением разобранного ответа String
.
Я также столкнулся с JsonObjectRequest
, который принимает данные (тело), но получает отлаженный ответ JSONObject
.
Я решил написать свою собственную реализацию, но я не могу найти способ получить сырой ответ от веб-службы. Как я могу это сделать?