I have an Android application, from which I want to upload some data to my web server in the database. As the MySQL Java Library has around 5 MB size, I do not want to include it with the application. That's why I will make an HTTP request for a PHP script and send data with URL as the parameter. How do I ensure that only I can call it? I do not want people to sniff the URL and call it out of my application.
Thanks
Use a simple constant token to identify the customer Or already, first authenticate with username / password, generate a token and use this token for further transactions. This token may end after some time. / P>
option1: request url] and amp; Key = xyz where xyz is known only to you
Option 2: First ping server with username password and get a dynamic token on successful verification [DK], store it locally, further request Request url] & amp; Key = dKey
Option 2 is being followed normally.
Comments
Post a Comment