title: REST_API PHP Post with Raw Parameter
body: <p>Why I get null result when I submit. How to post with raw param? </p>
  
  <p>Here's my method for the request:</p>
  
  <pre><code>$urlsp = "https://xxx/xxx/forgotpassword/xxx";
  $header = array("X-Application-Token : 123er", "Content-Type : application/json");
  $param = array("account: 080000xxx",
              "secretQuestion:",
              "secretAnswer:",
              "newPassword: .md5($pass).",
              "issuer: 567800");
  $ch = curl_init();
  
  curl_setopt($ch, CURLOPT_URL, $urlsp);
  curl_setopt ($ch , CURLOPT_HTTPHEADER , $header);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  
  $json_data = curl_exec ($ch);
  
  curl_close ($ch);
  
  $data = json_decode($json_data);
  </code></pre>