title: REST::Client giving error 500 Not a SCALAR reference
body: <p>I am new to REST::Client module.
  i made a script which will call an API through above module.</p>
  
  <p>below is my script:</p>
  
  <pre><code>use REST::Client;
  use Data::Dumper;
  
  my $client = REST::Client-&gt;new();
  
  my $resp = $client-&gt;request(
      'POST',
      "https://api.icims.com/customers/{ID}/search/people",
      {
          'Connection' =&gt; 'close',
          'Link'       =&gt; 'https://api.icims.com/customers/{ID}/people/;rel="person";
      title="Person Profile"',
          'Content-Length'   =&gt; '280',
          'Content-Type'     =&gt; 'application/json',
          'Content-Encoding' =&gt; 'gzip',
          'Host'             =&gt; 'api.icims.com',
          'User-Agent'       =&gt; 'Apache-HttpClient/4.2.1 (java 1.5)',
          'Accept-Encoding'  =&gt; 'gzip,deflate',
          Accept             =&gt; 'application/json'
      }
  );
  
  print Dumper($resp-&gt;{_res}-&gt;{_content});
  </code></pre>
  
  <p>and this is printing below response:</p>
  
  <pre><code>$VAR1 = '500 Not a SCALAR reference';
  </code></pre>
  
  <p>Please suggest.</p>