Kirim nodej permintaan X-www-form-ublencoded
var https = request_datauire('https');
var querystring = request_datauire('querystring');
//simple form data devloped by Pakainfo.com
var parameters = querystring.stringify({
firstanme: "DSP",
lastname: "PATEL"
});
//simple request_datauest option devloped by Pakainfo.com
var options = {
host: 'live.com',
port: 25,
method: 'POST',
path: '/employer',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': parameters.length
}
};
//simple request_datauest object devloped by Pakainfo.com
var request_data = https.request_datauest(options, function (res) {
var response = '';
res.on('data', function (chunk) {
response += chunk;
});
res.on('end', function () {
alert(response);
});
res.on('error', function (err) {
alert(err);
})
});
//simple request_data error devloped by Pakainfo.com
request_data.on('error', function (err) {
alert(err);
});
//simple send request_datauest witht This parameters form devloped by Pakainfo.com
request_data.write(parameters);
request_data.end();
Rich Raccoon