Quantcast
Channel: Where is the body in a nodejs http.get response? - Stack Overflow
Viewing all articles
Browse latest Browse all 24

Answer by Thulasiram for Where is the body in a nodejs http.get response?

$
0
0

Needle module is also good, here is an example which uses needle module

var needle = require('needle');needle.get('http://www.google.com', function(error, response) {  if (!error && response.statusCode == 200)    console.log(response.body);});

Viewing all articles
Browse latest Browse all 24

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>