I am using vb.net and have a button and txtOutput.text on a form. The following will put the page source into the txt box but how can I view the header information?

Imports System.IO
Imports System.Net
Imports System.Text

Public Class Form1
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()

        'This call is required by the Windows Form Designer.

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
            End If
        End If
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents Button1 As System.Windows.Forms.Button
    Friend WithEvents txtOutput As System.Windows.Forms.TextBox
    Friend WithEvents txtCookie As System.Windows.Forms.TextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.Button1 = New System.Windows.Forms.Button()
        Me.txtOutput = New System.Windows.Forms.TextBox()
        Me.txtCookie = New System.Windows.Forms.TextBox()
        Me.Button1.Location = New System.Drawing.Point(192, 56)
        Me.Button1.Name = "Button1"
        Me.Button1.Size = New System.Drawing.Size(88, 24)
        Me.Button1.TabIndex = 0
        Me.Button1.Text = "Button1"
        Me.txtOutput.Location = New System.Drawing.Point(16, 128)
        Me.txtOutput.Multiline = True
        Me.txtOutput.Name = "txtOutput"
        Me.txtOutput.ScrollBars = System.Windows.Forms.ScrollBars.Both
        Me.txtOutput.Size = New System.Drawing.Size(256, 120)
        Me.txtOutput.TabIndex = 1
        Me.txtOutput.Text = "TextBox1"
        Me.txtCookie.Location = New System.Drawing.Point(16, 96)
        Me.txtCookie.Name = "txtCookie"
        Me.txtCookie.Size = New System.Drawing.Size(256, 20)
        Me.txtCookie.TabIndex = 2
        Me.txtCookie.Text = "TextBox1"
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(292, 273)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.txtCookie, Me.txtOutput, Me.Button1})
        Me.Name = "Form1"
        Me.Text = "Form1"

    End Sub

#End Region

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim objRequest As HttpWebRequest
        Dim sRequest As String
        Dim arrRequest As Byte()
        Dim objUTF8Encoding As UTF8Encoding
        Dim strmRequest As Stream
        Dim objResponse As HttpWebResponse
        Dim srResponse As StreamReader

        objRequest = CType(WebRequest.Create("http://www.url.com"), HttpWebRequest)
        'objRequest.Method = "POST"
        'objRequest.ContentType = "application/x-www-form-urlencoded"

        'Create request body
        'sRequest = ""
        'objUTF8Encoding = New UTF8Encoding()
        'arrRequest = objUTF8Encoding.GetBytes(sRequest)

        'Add body to request
        'objRequest.ContentLength = arrRequest.Length
        'strmRequest = objRequest.GetRequestStream()
        'strmRequest.Write(arrRequest, 0, arrRequest.Length)

        'Get response
        objResponse = objRequest.GetResponse()
        srResponse = New StreamReader(objResponse.GetResponseStream(), Encoding.ASCII)
        txtOutput.Text = srResponse.ReadToEnd

        If Not objResponse.Headers("Set-Cookie") Is Nothing Then
            txtCookie.Text = objResponse.Headers.Item("Cookie")

        End If
    End Sub
End Class