tls-client icon indicating copy to clipboard operation
tls-client copied to clipboard

[Feature Request]: C# Add / Change Cookie

Open JvB94 opened this issue 1 year ago • 1 comments

Describe the feature / enhancement and how it would improve things

Hey,

I can't get it implemented myself but could you add in your example for C# how I can modify cookies that are sent? I would prefer a method to permanently change a cookie until it is set again.

Describe how your proposal will work, with code and/or pseudo-code

Like on normal HttpClient

HttpCookie cookie = Request.Cookies["testcookie"]; cookie.value = "some new cookie value";

JvB94 avatar Oct 27 '23 01:10 JvB94

As i'm not familiar with C# i can't relally do this. But i added examples on how to do that in python and javascript here: https://github.com/bogdanfinn/tls-client/blob/master/cffi_dist/example_node/index_cookies.js

bogdanfinn avatar Apr 11 '24 15:04 bogdanfinn