I\'m trying to fetch a series of files via HTTP, using HttpWebRequest. The first request goes through fine, but the second time through the same code GetResponse() hangs and
'You need to initialize the webrequest and webresponse objects with a valid URI:
Dim request As WebRequest = WebRequest.Create("http://google.com")
Dim response As WebResponse = request.GetResponse()
Function UrlExists(ByVal URL As String) As Boolean
Try
request = WebRequest.Create(URL)
response = request.GetResponse()
Catch ex As Exception
Return False
Finally
response.Close()
End Try
Return True
End Function