Imports System.Net
Imports System.Net.Sockets
Public Class Tester
Public Shared Sub Main
Dim httpReq As System.Net.HttpWebRequest
Try
Dim httpURL As New System.Uri("http://www.rntsoft.com/index.htm?key=value")
httpReq = CType(WebRequest.Create(httpURL), HttpWebRequest)
Console.WriteLine("HaveResponse: " & httpReq.HaveResponse.ToString)
Console.WriteLine("IfModifiedSince: " & httpReq.IfModifiedSince.ToString)
Console.WriteLine("KeepAlive: " & httpReq.KeepAlive)
Console.WriteLine("MaximumAutomaticRedirections: " & httpReq.MaximumAutomaticRedirections)
Catch ex As Exception
Console.WriteLine(ex.StackTrace.ToString())
End Try
End Sub
End Class
HaveResponse: False
IfModifiedSince: 11/05/2007 9:42:43 PM
KeepAlive: True
MaximumAutomaticRedirections: 50