DemonMartin / tlsClient

A wrapper for bogdanfinn/tls-client based on ffi-rs for unparalleled performance and usability. Inspired by @dryft/tlsclient.
https://www.npmjs.com/package/tlsclientwrapper
22 stars 2 forks source link

(question) how to disable cookie headers? #1

Closed caspianite closed 5 months ago

caspianite commented 5 months ago

when i send a request, there are multiple "cookie" header entries (even with defaultheaders set to {}), is there any way i can send with cookies, but without these headers? stock request to emulate has no "cookie" header immagine

DemonMartin commented 5 months ago

By default, the tlsClientWrapper uses the same session between all requests.

Cookies are shared between the session by tlsClient hence why there are unexpected cookies in your request.

When defining the tlsClientWrapper Class, set rotateSessions: true or disable the defaultCookieJar.

If I misunderstood your issue, please feel free to further explain me your problem.

caspianite commented 5 months ago

that was it, ty!