title: RestTemplate Simple Get Example
body: <p>Folks...</p>
  
  <p>the curl line: <code>curl https://api.storify.com/v1/stories/storify</code></p>
  
  <p>produces a lengthy JSON response from storify. My attempt to translate this to Spring's RestTemplate looks like this:</p>
  
  <pre><code>@Test
  public void test() {
      RestTemplate template = new RestTemplate();
      URI uri=URI.create("https://api.storify.com/v1/stories/storify");
      ResponseEntity&lt;String&gt; response = template.getForEntity(uri,String.class);
      System.out.println("&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;");
      System.out.println(response.getStatusCode()+" "+response.hasBody());
      System.out.println("&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;");
  
      String text = response.getBody();
      System.out.println(response.getBody());
      System.out.println("&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;");
  }
  </code></pre>
  
  <p>While the resulting status code is 200, and <code>hasBody()</code> is true, the <code>getBody()</code> isn't returning anything but seemingly an empty line. How can I replicate the results of the curl using <code>RestTemplate</code>?</p>
  
  <p>Thanks,
  GeePaw</p>