Hey Robert,
Here's a quick and not-too-dirty way to get the response to a file. You'll
need to make sure the ASPNET account has write permissions to the location:
Dim uriString As String = _
"http://msdn.microsoft.com/"
' Create a new WebClient instance.
Dim myWebClient As New System.Net.WebClient
Dim myNameValueCollection As New _
System.Collections.Specialized.NameValueCollection
myNameValueCollection.Add("", "")
Dim responseArray As Byte() = myWebClient.UploadValues _
(uriString, "POST", myNameValueCollection)
' Create an instance of StreamWriter to write text to a file.
Dim sw As System.IO.StreamWriter = New
System.IO.StreamWriter("c:\TestFile.txt")
' Add some text to the file.
sw.Write(System.Text.Encoding.ASCII.GetString(resp onseArray))
sw.Close()
If you need to see more information and don't need it programmatically, try
this add-on to IE:
http://www.blunck.info/iehttpheaders.html
Does this help?
Ken
Microsoft MVP [ASP.NET]
Toronto
"Robert Strickland" <bs*********@comporium.net> wrote in message
news:u8**************@tk2msftngp13.phx.gbl...
Is there a quick way to see response stream? I need to dump the stream
into a file. Request has the InputStream but Response does not have the
same (OutputStream is write only). Do I have to use a filter?