public void SetResponseData(HttpWebResponse response) { StatusCode = response.StatusCode; StatusDescription = response.StatusDescription; ContentType = response.ContentType; Content = response.ReadAsString(); foreach (var headerName in response.Headers.AllKeys) Headers[headerName] = response.Headers[headerName]; }