so what I want to do is say I have a PHP file that does a check from $_GET
, so basically something like this;
<?php
$test = $_GET['test'];
if ($test == "test") {
return true;
}
else {
return false;
}
?>
And that will be saved on my server as test.php
, I want to send a request to test.php
from my Java file, get the return and do a test on the return.
So something like this
Request(http://example.com/test.php?test=test)
if (Request Returned True) {
Do
}
else {
Do...
}
Any idea on how to do that? I'm still new to Java so excuse this please..