title: How to stimulate cURL request to a request using postman
body: <p>I am using the following cURL request to localhost which runs fine:</p>
  
  <pre><code>curl -u admin:e4d4face52f2e3dc22b43b2145ed7c58ce66e26b384d73592c -d "{\"jsonrpc\": \"2.0\", \"method\": \"feed.list\", \"id\": 1}" http://localhost/minifluxR/jsonrpc.php
  </code></pre>
  
  <p>But when I send the same request using Postman instead of cURL, I am getting:</p>
  
  <pre><code>{"jsonrpc":"2.0","id":null,"error":{"code":-32700,"message":"Parse error"}}
  </code></pre>
  
  <p>In Postman I used a <code>GET</code> request and sent the following as headers:</p>
  
  <pre><code>url:http://localhost/minifluxR/jsonrpc.php
  username:admin
  api_token:e4d4face52f2e3dc22b43b2145ed7c58ce66e26b384d73592c
  method: feed.list
  </code></pre>
  
  <p>The following is the PHP function I am trying to trigger:</p>
  
  <pre><code>$server = new Server;
  
  $server-&gt;authentication(array(
      \Model\Config\get('username') =&gt; \Model\Config\get('api_token')
  ));
  
  // Get all feeds
  $server-&gt;register('feed.list', function () {
      return Model\Feed\get_all();
  });
  </code></pre>
  
  <p>Please help me to correct these errors.</p>