On Sat, Sep 15, 2012 at 8:01 PM, dark knight <eamin...@gmail.com> wrote: > Thank you Ben. > > You mean that i can not create http request with net.Socket? > ok got it. > > But on things need to be resolve, can you refactoring my code to work > correctly in HTTP/1.1? or help to i know what's the problem? > > thanks again.
I see at least one major issue with your code example: var options = { host:'google.com', method: 'CONNECT', path: 'google.com:80', port: 80 }; You are making a CONNECT request to a server that doesn't support it. It's going to respond with a 400 Bad Request and close the connection. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: 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 post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en