title: Using Curl to get a JSON object
body: <p>I know how to do this using httpRequest:</p>
  
  <pre><code>    //create the httprequest object                
      $httpRequest_OBJ = new httpRequest($url, HTTP_METH_GET, $options);
  
      //add the content type
      $httpRequest_OBJ-&gt;setContentType = 'Content-Type: application/Json; charset=utf-8';
      //add the raw post data
      $httpRequest_OBJ-&gt;setRawPostData ($theData);
      //send the http request
      $result = $httpRequest_OBJ-&gt;send();
  
      try{
      $response = $result-&gt;getBody();
      }catch (HttpException $ex){
  
          echo $ex;
  
  
      }
  </code></pre>
  
  <p>What is the cURL equivalent?</p>
  
  <p>Cheers.</p>