Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for success of specific Web page
Message
From
31/12/2004 16:42:15
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
00973462
Message ID:
00973584
Views:
20
>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.htm

Thanks, 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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform