M
M
mcavalon2014-01-13 12:57:25
PHP
mcavalon, 2014-01-13 12:57:25

How to implement validation of incoming data on the server sent from android?

Good afternoon!
The situation is as follows: there is an android application with a form. When submitting the form, the data is sent to the site.
Question: how to check the data on the server? How to generate a token?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Peretyaka, 2014-01-13
@mcavalon

What's the problem with the form? Everything is the same as with the form sent from the site. It really depends on the framework you're using.
Session token or CSRF protection?
For the first it seems to me it will be easier to use cookies. For the second, it is easier to send a specific header, which the browser will not send and that's it.
From the point of view of routing, it is ideologically correct to use REST full, but not at all necessary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question