Wouldn't HTTPS be on port 443 instead of 80?

On Tue, Jan 27, 2015 at 9:04 AM, Tushar Jain <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/nodejs/0ede7f76-2627-465d-9bb6-31ae4566dcec%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Adrien Risser,
Freelance Node.js Consultant
M. +33 6 59 60 32 58

-- 
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/CAKGrCFgNsLuiw0%3DqWWBars0cFm_W%3D66UpcudoOQVt0X7ABdvMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to