The server responds ResponseError. Reason: Internal Server Error, Response:
but this happens only when I use https. I'm using is sample example (webservice) example in b4x
$servidor="****";
$bd="****";
$usuario="****";
$clave="***";
$con= new mysqli($servidor,$usuario,$clave,$bd);;
$consulta=$con->query("SET CHARACTER SET utf8");
$query = file_get_contents("php://input");
$sth = $con->query($query);
if ($con->connect_errno) {
header("HTTP/1.1 500 Internala Server Error");
echo ($query.'\n');
echo($con->connect_error);
}
else
{
$rows = array();
while($r = $sth->fetch_assoc()) {
$rows[] = $r;
}
print json_encode($rows);
}
?>