title: sending JSON object by needle
body: <p>I am trying to send a JSON object to a URL (provided) by somebody else. 
  Here is the documentation provided by service side :</p>
  
  <p>myProgram API :  </p>
  
  <p>Endpoint:  <a href="http://xxx.yyyy.com/yourCompany-service/rest/myProgram" rel="nofollow">http://xxx.yyyy.com/yourCompany-service/rest/myProgram</a>
  This is a REST service exposed where you need to post a JSON with the following details. 
  here is a sample of a JSON object you can send to the service:
  Sample Request Json :</p>
  
  <pre><code>{
      "aa": "ertewer",
      "bb": 1,
      "cc": 10
  }
  </code></pre>
  
  <p>Now my code: </p>
  
  <pre><code>var options = {
      host : 'http://xxx.yyyy.com/yourCompany-service/rest/myProgram',
      format : 'json',
      content_type: 'application/json'
  
  } ;
  var x = {
                 "aa"       : "ABCD",
                 "bb"        : 1,
                 "cc"     : 10,
         }
  
  needle.request('post', options.host, x, function(err, resp) {
             if (!err) {
                 console.log(resp.body) ;
             }
  
             if (err) {
                 console.log('neddle error');
             }
   }
  </code></pre>
  
  <p>but I always receive following message from server:</p>
  
  <blockquote>
    <p>The server refused this request because the request entity is in a format not supported by the requested resource for the request</p>
  </blockquote>