>Just use the WebClient class. It's a few lines of code to retrieve a URL.
Thanks for the information on how to use it. This is what I have converted:
Private Function GetUrl(ByVal tcUrl As String) As String
Dim lcMergedText As String
Dim loHTTP As System.Net.WebClient = New System.Net.WebClient
Dim lcError As String
Dim loEncoding As System.Text.Encoding
Dim loRequestedHTML() As Byte
Try
loRequestedHTML = loHTTP.DownloadData(tcUrl)
lcMergedText = loEncoding.Default.GetString(loRequestedHTML)
Catch loError As Exception
lcError = loError.Message
lcMergedText = ""
End Try
Return lcMergedText
End Function
>If you need more control or need to figure out more about how to work with the full HTTP components in .NET check out:
>
>
http://www.west-wind.com/presentations/dotnetWebRequest/dotnetWebRequest.htmThanks, I'll check it out.
>FWIW, it sounds like what you're doing is exactly what
Web Monitor is doing, which is a multi-threaded URL checker that lets you look for specific content in your output and send warning messages etc. There's a full source version that lets you customize either the app itself or the monitoring API that can be plugged into other applications.
Well, sort of, basically, this is a full custom client interface which primaly query a Web Service from a defined list of available servers, encrypt and decrypt the data, provides a full log of the connection, what was sent and what XML was received. Then, I also have the part as described here to check other servers running WWC. Then, more options will be added. So, I looked at your tool last month but for those needs, I needed something really custom.