Would like to get http response results like Fiddler
<p>I'm trying to get the same type of results that Fiddler gets when I launch a webpage from my app.
Below is the code I'm using and the results I'm getting.  I've used google.com only as an example.</p>

<p>What do I need to modify in my code to get the results I want or do I need an entirely different approach?</p>

<p>Thanks for your help.</p>

<p>My code:</p>

<pre><code> // create the HttpWebRequest object
        HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create("http://www.google.com");

        // get the response object which has the header info, using the GetResponse method
        var objResults = objRequest.GetResponse(); 

        // get the header count
        int intCount = objResults.Headers.Count;

        // loop through the results object
        for (int i = 0; i &lt; intCount; i++)
        {
            string strKey = objResults.Headers.GetKey(i);
            string strValue = objResults.Headers.Get(i);


            lblResults.Text += strKey + "&lt;br /&gt;" + strValue + "&lt;/br /&gt;&lt;br /&gt;";
        }
</code></pre>

<p>My results:</p>

<p>Cache-Control
private, max-age=0</p>

<p>Content-Type
text/html; charset=ISO-8859-1</p>

<p>Date
Tue, 05 Jun 2012 17:40:38 GMT</p>

<p>Expires
-1</p>

<p>Set-Cookie
PREF=ID=526197b0260fd361:FF=0:TM=1338918038:LM=1338918038:S=gefqgwkuzuPJlO3G; expires=Thu, 05-Jun-2014 17:40:38 GMT; path=/; domain=.google.com,NID=60=CJbpzMe6uTKf58ty7rysqUFTW6GnsQHZ-Uat_cFf1AuayffFtJoFQSIwT5oSQKqQp5PSIYoYtBf_8oSGh_Xsk1YtE7Z834Qwn0A4Sw3ruVCA9v3f_UDYH4b4fAloFJbW; expires=Wed, 05-Dec-2012 17:40:38 GMT; path=/; domain=.google.com; HttpOnly</p>

<p>P3P
CP="This is not a P3P policy! See <a href="http://www.google.com/support/accounts/bin/answer.py?hl=en&amp;answer=151657" rel="nofollow">http://www.google.com/support/accounts/bin/answer.py?hl=en&amp;answer=151657</a> for more info."</p>

<p>Server
gws</p>

<p>X-XSS-Protection
1; mode=block</p>

<p>X-Frame-Options
SAMEORIGIN</p>

<p>Transfer-Encoding
chunked</p>

<p>=========================
Fiddler results:</p>

<h1>Result  Protocol    Host    URL Body    Caching Content-Type    Process Comments    Custom</h1>

<p>1   304 HTTP    www.rolandgarros.com    /images/misc/weather/P8.gif 0   max-age=700  Expires: Tue, 05 Jun 2012 17:53:40 GMT image/gif   firefox:5456<br>
2   200 HTTP    www.google.com  /   23,697  private, max-age=0  Expires: -1 text/html; charset=UTF-8    chrome:2324<br>
3   304 HTTP    www.rolandgarros.com    /images/misc/weather/P9.gif 0   max-age=700  Expires: Tue, 05 Jun 2012 17:53:57 GMT image/gif   firefox:5456<br>
4   200 HTTP    Tunnel to   translate.googleapis.com:443    0           chrome:2324<br>
5   200 HTTP    www.google.com  </p>
