I\'m making an HTTP call. My response contains a session code X-BB-SESSION in the header section of the HttpResponseMessage object. How do I get th
X-BB-SESSION
HttpResponseMessage
You should be able to use the TryGetValues method.
HttpHeaders headers = response.Headers; IEnumerable values; if (headers.TryGetValues("X-BB-SESSION", out values)) { string session = values.First(); }