Z
Z
zekohina2016-10-30 20:52:05
JavaScript
zekohina, 2016-10-30 20:52:05

Is there a smart http client for nodejs?

We need this client to behave like a browser and save headers between requests.
Those. if I sent a request with a login and password to the site, then I will already perform all subsequent requests as an authorized user.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Taratin, 2016-10-30
@Taraflex

https://github.com/request/request
Supports cookie storage and automatic redirect, but browser headers will need to be specified by handles, like the referrer (the last url after all redirects is stored in response_variable.request.href - the feature is not specified in the documentation)

M
murlogen, 2016-10-30
@murlogen

What you need is not a client. Go smoke a subject - testing of web services.

V
Vitaly, 2016-10-30
@vshvydky

Phantom js nightnmare js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question