如果你访问 https://split.000webhostapp.com/Register.php 在Web浏览器中,您可以获得破碎的内容。它不是一个完整的Web页面,而是一堆错误消息:
<br /> <b>Notice</b>: Undefined index: name in <b>/storage/ssd5/909/2833909/public_html/Register.php</b> on line <b>4</b><br /> <br /> <b>Notice</b>: Undefined index: email in <b>/storage/ssd5/909/2833909/public_html/Register.php</b> on line <b>5</b><br /> <br /> <b>Notice</b>: Undefined index: username in <b>/storage/ssd5/909/2833909/public_html/Register.php</b> on line <b>6</b><br /> <br /> <b>Notice</b>: Undefined index: password in <b>/storage/ssd5/909/2833909/public_html/Register.php</b> on line <b>7</b><br /> <br /> <b>Warning</b>: mysqli_stmt_bind_param() expects parameter 1 to be mysqli_stmt, boolean given in <b>/storage/ssd5/909/2833909/public_html/Register.php</b> on line <b>9</b><br /> <br /> <b>Warning</b>: mysqli_stmt_execute() expects parameter 1 to be mysqli_stmt, boolean given in <b>/storage/ssd5/909/2833909/public_html/Register.php</b> on line <b>10</b><br /> {"success":true}
该响应的前三个字符是 <br 。这些恰好是JSON解析器在您的错误消息中抱怨的前三个字符。所以,我的猜测是Web服务器正在发回相同类型的破坏内容以响应您的Volley请求。
<br
所以,看一看 response 并看看你得到的纯文本。然后,解决任何问题 response 表示。
response