title: Send POST Request via AWS Lambda in Node.js
body: <p>I want to send a POST Request to Twilio when an Intent is called from my Alexa Skill. When testing the Code, there are no errors, but the Request doesn't seem to go through. Testing the POST Request in Postman works.</p>
  
  <pre><code>function postToTwilio() {
  
  var http = require("https");
  var postData = JSON.stringify({
        'To' : '1234567',
        'From': '1234546',
        'Url': 'https://handler.twilio.com/twiml/blablabla',
  
  
    });
  
  var options = {
    "method": "POST",
    "hostname": "https://api.twilio.com",
    "path": "/12344/Accounts/blablablablba/Calls.json",
    "headers": {
      "Authorization": "Basic blblablablablabla",
      "Content-Type": "application/x-www-form-urlencoded",
    }
  };
  
  var req = http.request(options, function (res) {
    var chunks = [];
  
    res.on("data", function (chunk) {
      chunks.push(chunk);
    });
  
    res.on("end", function () {
      var body = Buffer.concat(chunks);
      console.log(body.toString());
    });
  });
  
  req.write(postData);
  req.end();
  
  }
  </code></pre>