Loggin into JIRA with nodejs

Is it possible only to login, then print the response body?

In sort, i am seeking for the login API to jira in nodejs, after which i can console the response body containing successfull login html page.

However i have tried the following :

var request = require('request');

request({
  protocol :
  uri : 'http://myjira.com/login.jsp',
  method: 'POST',
  headers : { 'Content-type': 'application/x-www-form-urlencoded' },
  body:     'os_username=shared&os_password=shared&os_destination=&atl_token=&login=Log+In'
},
 function (err, response, body) {
 console.log(body);
 }
});

But i get the same page http://myjira.com/login.jsp without any error code.. (statusCode = 200) with all the login form embedded in the page, instead of the loggedIn dashboard Means it asks for login again.

whats wrong with it??

I have also gone though this github repo https://github.com/steves/node-jira But it only uses basic auth to fullfill anyother requirement. I could not find simply LOGIN API, where i can logs in to jira and not doing other stuffs.