As a specification for the System.Net.Cookie
class, you can include control characters by adding double quotes at both ends of the value, such as new cookie("name", "\"abc,def\"")
.
This behavior is defined in RFC2965 as the HTTP specification, but the newer RFC6265 cannot contain control characters, so you need to see how the server behaves in the end.
© 2024 OneMinuteCode. All rights reserved.