ask your bosses for help and want to know how to add cookie? to get. Cookie knows that the code is similar to the
posted below. Thank you!
var http = require("http")
var url = "https://www.imooc.com"
http.get(url,function(res){
var html = ""
res.on("data",function(data){
html += data
})
res.on("end",function(){
console.log(html)
})
}).on("error",function(){
console.log("")
})