title: Send `PUT` and `DELETE` request using CURL
body: <p>Is it possible to send <code>PUT</code> and <code>DELETE</code> request using <code>curl</code>. As we send <code>POST</code> and <code>GET</code> request in <code>curl</code>:</p>
  
  <pre><code>curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");             
  curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  </code></pre>
  
  <p>How to send <code>PUT</code> and <code>DELETE</code> request.</p>