You're viewing a comment by pieter joubert and its responses.

pieter joubert Permalink
March 29, 2013, 07:46

If you watch the first part of this video
it talks all about how the http module progressed (with the help of the guy in the video) and how writing a proxy in node changed from a 2 page program to eventually a 1 line (without requires and console loging) program

var http = require('http'),
request = require('request');
console.log("Server running at")

Comment Responses

Doo Dah Permalink
December 25, 2013, 05:56

Very nice. Thanks for the excellent tip!

April 17, 2015, 07:41

Wow, thanks for that quick snippet of code.

I was looking many hours for something like that!
I was trying to do something similar using the http-proxy, but was hard...

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "0day_215": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.