The code at that URL:
Public Function LoadTextFile(ByVal Url As String) As String
Dim Request As WebRequest = WebRequest.Create(Url)
Dim Response As WebResponse = Request.GetResponse()
Dim Reader As New StreamReader(Response.GetResponseStream())
LoadTextFile = Reader.ReadToEnd()
Reader.Close()
Response.Close()
Return LoadTextFile
End Function
works for me .... BUT it's really kind of slow (maybe 5-7 seconds to
retrieve a small file (<1K)) .... whereas retrieving it in the browser is
instantaneous ... I've had this problem before in using WebRequest ... are
there any general suggestions for getting reasonable performance ? things I
should be looking at ?
TIA
L