var http = require("http");
//var app = express();
var request = require("request");
http.createServer(function (req, res) {
qs: {j_username: "jasperadmin", j_password: "jasperadmin"}
},
function(err, res1, body1) {
if(err) {
return console.error(err);
}
qs: {j_username: "jasperadmin" , j_password:"jasperadmin"} },
function(error, response, body) {
// console.log(body);
res.writeHead(200 ,{'Content-Type': 'application/pdf'})
res.end(body);
});
});
}).listen(8081);
console.log("Server is running n 8081");
It returns the pdf page empty but when i run the rest_v2 it shows the pdf with data, please help
0 Answers:
No answers yet