Created
December 5, 2015 23:04
-
-
Save tanyagupta/453cb1320bd7862abd60 to your computer and use it in GitHub Desktop.
HTTP CLIENT (Exercise 7 of 13)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http') | |
http.get(process.argv[2], function (response) { | |
response.setEncoding('utf8') | |
response.on('data', console.log) | |
response.on('error', console.error) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment