--- a/controllers/httpRequest.js
+++ b/controllers/httpRequest.js
@@ -5,39 +5,28 @@
 var http = require("http");
 
 module.exports.sendHttpRequest = function (hostname, port, path, method, notification) {
-  /*
   var options = {
-    hostname: 'teste.proxy.beeceptor.com',
-    port: 80,
-    path: '/my/api/path',
-    method: 'POST',
+    hostname: hostname,
+    port: port,
+    path: path,
+    method: method,
     headers: {
       'Content-Type': 'application/json',
     }
-    */
-    var options = {
-      hostname: hostname,
-      port: port,
-      path: path,
-      method: method,
-      headers: {
-        'Content-Type': 'application/json',
-      }
-    };
-    var req = http.request(options, function(res) {
-      console.log('Status: ' + res.statusCode);
-      console.log('Headers: ' + JSON.stringify(res.headers));
-      res.setEncoding('utf8');
-      res.on('data', function (body) {
-        console.log('Body: ' + body);
-      });
+  };
+  var req = http.request(options, function(res) {
+    console.log('Status: ' + res.statusCode);
+    console.log('Headers: ' + JSON.stringify(res.headers));
+    res.setEncoding('utf8');
+    res.on('data', function (body) {
+      console.log('Body: ' + body);
     });
+  });
 
-    req.on('error', function(e) {
-      console.log('problem with request: ' + e.message);
-    });
+  req.on('error', function(e) {
+    console.log('problem with request: ' + e.message);
+  });
   // write data to request body
-  notification = "'"+notification+"'";
-  req.write(notification);
+  req.write(JSON.stringify(notification));
   req.end();
 }