Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[VB.NET] Check If URL is Available

Credit = Tim Hartwig

Code
Public Function CheckURL(ByVal URL As String) As Boolean
    Try
        Dim Response As Net.WebResponse = Nothing
        Dim WebReq As Net.HttpWebRequest = Net.HttpWebRequest.Create(URL)
        Response = WebReq.GetResponse
        Response.Close()
        Return True
    Catch ex As Exception
    End Try
End Function
please dont post my work on HF without asking me first....
PHP & .NET Contributor.
his was posted several hours before yours, and he gave credit to someone
I put this in the other thread as well, but you should add Return False in between Catch ex As Exception and End Try.
(May 3, 2010 07:50 PM)codepoet Wrote:  please dont post my work on HF without asking me first....

Sorry I gave proper credits do.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by DotexeAug 5, 2017 04:23 PM 0 154 Aug 5, 2017 04:23 PM
Last Post: Dotexe
[C#] by SwaggySwampManAug 17, 2015 08:38 AM 1 143 Aug 17, 2015 08:38 AM
Last Post: Sicarius
[C] by midobahrNov 15, 2014 09:47 PM 8 213 Nov 15, 2014 09:47 PM
Last Post: HelloMyNameIsWalter