title: How to use Request::factory()->execute() to call an script from another library in the same host
body: <p>I'm using Kohana 3.2, and I want to be able to call another script (unrelated to Kohana, outside of its 'jurisdiction') that returns a <code>application/json</code> response.
  When I tried using:</p>
  
  <pre class="lang-php prettyprint-override"><code>$response = json_decode(Request::factory('/scripts/index.php?id=json')-&gt;execute()-&gt;body());
  </code></pre>
  
  <p>It errors out saying there's no route to <code>scripts/index.php</code>. So I tried using <code>Request_Client_External</code></p>
  
  <pre class="lang-php prettyprint-override"><code>Request_Client_External::factory()-&gt;execute(Request::factory('/scripts/index.php?page=s'))-&gt;body();
  </code></pre>
  
  <p>Gives me <code>Request_Exception [ 0 ]: Error fetching remote /scripts/index.php?page=s [ status 0 ] Could not resolve host: scripts; Host not found</code>. It appears it need a full flagged URL using http/https, but how to avoid the overhead of it doing a real external request?</p>
  
  <p>Doing a </p>
  
  <pre><code>Request::factory(url::site('/scripts/index.php?page=s', 'http'))-&gt;execute()
  </code></pre>
  
  <p>works but is it considered "external"?</p>