I am working with System.Net.HttpWebRequest objects and would like to see the actual response stream.
The catch - our servers require SSL - so intercepting does not work as we see the response, but it is encrypted.
I have tried the following:
using (StreamReader streamReader = new StreamReader(request.GetRe
The result is:
However if I have code similar to this:
using(XmlReader reader = XmlReader.Create(request.G
if(reader.NodeType == XmlNodeType.Element)
Response.Write("<" + reader.Name + "><br>");
Then I get results like this:
HTTP/1.1 200 OK<a:contentclass>
So I know there actually is xml content there.
So, the question is how do I view the actual response so that I can look at the xml, see the defined namespaces, see the fields returned, etc.
Also related is what is the best way to get this xml from teh stream into a variable that can be used in C# code