nodejs xmlHttpRequest类似

node.js中xmlHttpRequest的相似之处是什么?

我想请求一个网站,并获得其设置的cookie,并使用这些cookie发出新的请求。

node.js中xmlHttpRequest的相似之处是什么?

尝试查看文档中的http.request方法。

我想请求一个网站,并获得其设置的cookie,并使用这些cookie发出新的请求。

有一些node.js模块处理cookie,例如cookies 。

还有requestxmlhttprequest NPM库。 内置的http.request过于低级。