C
C# Learner
The following code gets the *body* of an HTTP message:
<code>
response = (HttpWebResponse)request.GetResponse();
StreamReader sr = new StreamReader(response.GetResponseStream(),
Encoding.UTF8);
string html = sr.ReadToEnd();
</code>
Instead of the body, I want the full *message*.
Example:
HTTP/1.1 200 OK [rest of header...] [body...]
Is it possible to get this "raw" message? By *message* I mean header
+ body.
Thanks in advance.
<code>
response = (HttpWebResponse)request.GetResponse();
StreamReader sr = new StreamReader(response.GetResponseStream(),
Encoding.UTF8);
string html = sr.ReadToEnd();
</code>
Instead of the body, I want the full *message*.
Example:
HTTP/1.1 200 OK [rest of header...] [body...]
Is it possible to get this "raw" message? By *message* I mean header
+ body.
Thanks in advance.