If you use php as the backend of your app, this is how you ensure your script is used via https:// only
It just calls your own script with all given parameters and https:// and closes the actual one.
Just add this snippet to the top of you php script.
B4X:
if($_SERVER["HTTPS"] != "on")
{
header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
exit();
}
It just calls your own script with all given parameters and https:// and closes the actual one.
Just add this snippet to the top of you php script.