title: DELETE request with parameters using Guzzle
body: <p>I have to do a DELETE request, with parameters, in the CodeIgnitor platform. First, I tried using cURL, but I switched to Guzzle.</p>
  
  <p>An example of the request in the console is:</p>
  
  <pre class="lang-sh prettyprint-override"><code>curl -X DELETE -d '{"username":"test"}' http://example.net/resource/id
  </code></pre>
  
  <p>But in the documentation of Guzzle they use parameters just like GET, like <code>DELETE http://example.net/resource/id?username=test</code>, and I don't want to do that.</p>
  
  <p>I tried with:</p>
  
  <pre><code>$client = new GuzzleHttp\Client();
  $client-&gt;request('DELETE', $url, $data);
  </code></pre>
  
  <p>but the request just calls <code>DELETE http://example.com/resource/id</code> without any parameters.</p>