E
E
evildes2021-01-25 14:08:31
Node.js
evildes, 2021-01-25 14:08:31

How to create a session using request node js?

I need to make a session function using the request module or others (log in to the site using http) with cookie saving and so that inside this session I can send GET requests to get the page, and close it at the end of the session. I would be very grateful if someone could help with this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bqio, 2021-01-25
@bqio

1. Set withCredentials to true in the request;
2. Specify Cookie in request headers;
3. Profit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question