title: node.js pipe restify http client response
body: <p>I have this exact question, except I'm using the restify HttpClient:</p>
  
  <p><a href="https://stackoverflow.com/questions/11906198/node-js-write-http-response-to-stream">node.js write http response to stream</a></p>
  
  <p>For clarity, I'm trying to do this:</p>
  
  <pre><code>var client = restify.createClient({
      url: "http://www.google.com"
  });
  
  client.get("/", function(err,res) {
      res.pipe(process.stdout);
  });
  </code></pre>
  
  <p>It hangs for a few seconds but never writes anything to stdout. Obviously I'm trying to fetch something other than google's homepage, but for example...</p>