It is necessary to implement sending data to the http server. How can this be implemented in java, in android application?
1 answer
In general, data is sent to the server by the type of request - POST. In order to send it to you, you need to organize a request and insert data into the request body. But no matter how you send the request, you need to know that the server will answer something in the end. If you have been given api, for example, this makes it much easier for you, but if you also need to write api itself, it will be difficult. For example, there is a question . You will need to send data to the server in a specific format and to a specific server address. If you have any questions or something remains unclear, do not hesitate and ask, I will try to help with what I can. Good luck :)
- Thank you for trying to help me! I do not really understand why the server should return something to me if I send him a POST request? - Vlad Yulin
- Suppose I send some data that the user selected in the proposed form to the server, which in this case the server should return back? - Vlad Yulin
- back to you the server will return a response with the data you need. - Andrew Goroshko
- If you are given an exhaustive answer, mark it as accepted - Andrew Goroshko