private static String HeadersToString(System.Net.Http.Headers.HttpRequestHeaders headers) { return(String.Join("\n", headers.Select(x => String.Format("\t{0}={1}", x.Key, String.Join(",", x.Value))) )); }