Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: C# Add / Change Cookie #84

Open
JvB94 opened this issue Oct 27, 2023 · 1 comment
Open

[Feature Request]: C# Add / Change Cookie #84

JvB94 opened this issue Oct 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@JvB94
Copy link

JvB94 commented Oct 27, 2023

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 JvB94 added the enhancement New feature or request label Oct 27, 2023
bogdanfinn added a commit that referenced this issue Apr 10, 2024
bogdanfinn added a commit that referenced this issue Apr 10, 2024
@bogdanfinn
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants