i explained my main question in the title, but i have a problem with this code:
var http = require('http'); var options = { host:'google.com', method: 'CONNECT', path: 'google.com:80', port: 80 }; var req = http.request(options); req.end(); req.on('connect', function(res, socket, head) { socket.write('GET / HTTP/1.0\r\n' + 'Host: google.com:80\r\n' + '\r\n'); socket.on('data', function(chunk) { console.log(chunk); }); socket.end(); }); and i get same error: events.js:66 throw arguments[1]; // Unhandled 'error' event ^ Error: Parse Error at Socket.socketOnData (http.js:1366:r20) at TCP.onread (net.js:403:27) you`r help, are welcome. my english is very weak and very bad, sorry. thanks. -- 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