O
O
oyshomusic2020-09-14 12:02:07
Android
oyshomusic, 2020-09-14 12:02:07

How to send a POST request to a web application?

Good day and I apologize in advance if I formulate the thought incorrectly!

The whole point: I have a web application on which there is a page (let's say 127.0.0.1:5000/hello), the content of which is two lines Name and Sex and a Submit button for confirmation.
From an Android application that has the same two lines and a button, I need to pass them to that page (127.0.0.1:5000/hello).
Heup! This is the first time I'm trying to figure out something like this. There are few examples with explanations on your Internet ..
Please do not throw cucumbers! Any help/resource would be greatly appreciated!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Makhov, 2020-09-14
@oyshomusic

There are two options here. Firstly, you can see where the form is sent (for example /signup.php) and send a post request there with the contents of the fields in the application (look for libraries for sending http requests from android). The second way is more correct. You need to make a separate api for processing requests from client applications and send a request in the same way there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question