title: curl (7): Failed to connect to localhost port 8000: Connection refused
body: <p>Hello I am testing the endpoint and when I run php testing.php I get this error. Any help would be appreciated it.</p>
  
  <p><code>Fatal error: Uncaught exception 'Guzzle\Http\Exception\CurlException' with         message '[curl] 7: Failed to connect to localhost port 8000: Connection refused [url] http://localhost:8000/api/programmers' guzzle\guzzle\src\Guzzle\Http\Curl\CurlMulti.php:359 ...</code> </p>
  
  <p>I've tried 127.0.0.1 as well and it didnt work</p>
  
  <p>here is testing.php</p>
  
  <pre><code>&lt;?php
  
  require __DIR__.'/vendor/autoload.php';
  
  use Guzzle\Http\Client;
  
  // create our http client (Guzzle)
  $client = new Client('http://localhost:8000', array(
      'request.options' =&gt; array(
          'exceptions' =&gt; false,
      )
  ));
  
  $nickname = 'ObjectOrienter'.rand(0, 999);
  $data = array(
      'nickname' =&gt; $nickname,
      'avatarNumber' =&gt; 5,
      'tagLine' =&gt; 'a test dev!'
  );
  
  $request = $client-&gt;post('/api/programmers', null, json_encode($data));
  $response = $request-&gt;send();
  
  echo $response;
  echo "\n\n";
  </code></pre>