How to bring cookie? in the get () of node

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("")
})
Feb.17,2022
Doesn't the

request automatically carry the cookie under the current domain


https://nodejs.org/dist/lates.
https://nodejs.org/dist/lates.
in the headers of option, Bring cookie

Menu