title: Request parameters in a post request in parse.com
body: <p>For a service called mOTP, I need to send a parameter with name 'private'. Here is my Parse cloud code.</p>
  
  <pre><code>var phnNum = request.params.phnNum;
  var validationParams = {"private":"MyPrivateKey"};
  Parse.Cloud.httpRequest({
      method: 'POST',
      url: 'https://api.mOTP.in/v1/otp/MyAPIKey/'+MySessionID,
      headers: {
          'Content-Type': 'application/json;charset=utf-8'
      },
      params: validationParams,
      success: function(httpResponse) {
          console.log(httpResponse.data.Status);
          console.log(httpResponse.data.Result);
          if(phnNum == httpResponse.data.Result) {
              response.success("Success");
          } else {
              response.error("phnNum not matched");
          }
      },
      error: function(httpResponse) {
          console.error('Request failed with response code ' + httpResponse.status);
          response.error("URL hit failed");
      }
  });
  </code></pre>
  
  <p>The mOTP service gives response in JSON. But always I am getting the response as 'Method not supported'. I am not able to find where I am doing mistake. Please help.
  mOTP docs: <a href="http://dial2verify.com/mOTP_Missed_Call_OTP_Authentication/Documentation.html" rel="nofollow">http://dial2verify.com/mOTP_Missed_Call_OTP_Authentication/Documentation.html</a></p>