F
F
Freijer2022-03-12 10:04:46
Java
Freijer, 2022-03-12 10:04:46

How to send a POST request on Android?

Good afternoon. I'm getting started with networking.
I have a POST request that I am doing in Postman:

  • url;
  • authorization by login-password (in the authorization block);
  • request body.


Is there any additional data required (api descriptions or whatever) or can I make this request through Retrofit?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexVWill, 2022-03-12
@Freijer

send a POST request to Android

And exactly POST request ON Android, and not WITH Android? If you need exactly HA, then you need to understand that a certain web server program must be installed on the smartphone, which will respond to the request.
If you need to send C, then this is done in the usual ways, there are a lot of information and libraries on Google, how this can be done. The API is needed not on a smartphone, but on a server that will respond to such a request. And yes, if there is an API, then you need to read the manual for a specific API on how to work with it.
In general, the question is not clear, try to formulate it correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question