HI Folks,

I am trying to use NET module, but facing some error
var socket = net.Socket();
socket.on('connect', function () {
    console.log("Connection created");
});
socket.on('data', function (d) {
    console.log(d);
});
socket.on('error', function (err) {
    console.log(err.toString());
});
socket.on('end', function () {
    console.log('connection ends');
});
socket.connect(80,"https://www.google.com";);

I am getting getaddrinfo ENOTFOUND error. please let me know if you have 
any solution.

Also how can i use NET module to send POST method request[I am not allowed 
to use HTTP module, have to do this using socket programming only]

thanks in advance
Tushar

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/0ede7f76-2627-465d-9bb6-31ae4566dcec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to