NodeJS and HTTP Client - Are cookies supported?

前端 未结 6 828
孤街浪徒
孤街浪徒 2021-01-03 20:34

NodeJS is a fantastic tool and blazing fast.

I\'m wondering if HTTPClient supports cookies and if can be used in order to simulate

6条回答
  •  春和景丽
    2021-01-03 21:16

    Zombie.js is another choice if you want browser-like behaviour. It "maintains state across requests: history, cookies, HTML5 local and session stroage, etc.". More info on zombie's cookie api: http://zombie.labnotes.org/API

    There is also PhantomJS and PhantomJS-based frameworks, like CasperJS.

提交回复
热议问题