title: how to post XML data in node.js http.request
body: <p>i am trying to submit a xml request to a web service via Node.js using <code>http.request</code>.</p>
  
  <p>Here is my code. My issue is that instead of <code>data=1</code> i want to post xml to the service.</p>
  
  <pre><code>http.request({
     host: 'service.x.yyy.x',
     port: 80,
     path: "/a.asmx?data=1",
     method: 'POST'
  }, function(resp) {
     console.log(resp.statusCode);
     if(resp.statusCode) {
          resp.on('data', function (chunk) {
              console.log(chunk);
              str +=  chunk;                  
          });
          resp.on('end', function (chunk) {                           
              console.log(str);            
          });                   
    }
  }).end();
  </code></pre>
  
  <p>Ho to do this?</p>