title: How can I use Guzzle to send a POST request in JSON?
body: <p>Does anybody know the correct way to <code>post</code> JSON using <code>Guzzle</code>?</p>
  
  <pre><code>$request = $this-&gt;client-&gt;post(self::URL_REGISTER,array(
                  'content-type' =&gt; 'application/json'
          ),array(json_encode($_POST)));
  </code></pre>
  
  <p>I get an <code>internal server error</code> response from the server. It works using Chrome <code>Postman</code>.</p>