Copy HTTP request / response headers from a call to a HttpWebRequest?
问题 I have a C# WCF service that receives a request Message and post it to another service. Posting to the other service is done through HttpWebRequest. How can i get in my service the original request HTTP headers and put them in the HttpWebRequest when i post them to the other service. Something like this: HttpRequestMessageProperty httpRequestProp = GetHttpRequestProp(requestMessage); HttpWebRequest loHttp = (HttpWebRequest)WebRequest.Create(uri); foreach (var item in httpRequestProp.Headers