How do I set a cookie on HttpClient’s HttpRequestMessage

I am trying to use the web api’s HttpClient to do a post to an endpoint that requires login in the form of an HTTP cookie that identifies an account (this is only something that is #ifdef‘ed out of the release version).

How do I add a cookie to the HttpRequestMessage?

6 Answers
6

Leave a Comment