title: curl not working,not show any output
body: <pre><code>&lt;?php
  $url = "https://www.example.com";   
  $data = array(
      "email" =&gt; "vicky@gg.com",
      "firstname" =&gt; "firstname",
      "lastname" =&gt; "lastname",
      "password1" =&gt; "123456",
      "password2" =&gt; "123456",
      "key" =&gt; "d12121c70dda5edfgd1df6633fdb3"
  );                                                                    
  
  $data_string = json_encode($data);   
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS,$data_string);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  $result = curl_exec($ch);
  $output = json_decode($result,true);
  curl_close($ch);
  echo $output;
  ?&gt;
  </code></pre>