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