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

.NET 

[VB.NET]Check URL for availability

Description:

This function checks if a given internet address is available.

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
        Return False    
        End Try
End Function

originally posted on dotnet-snippets.com

[img]http://i685.photobucket.com/albums/vv215/blackpearl4/THANKS.gif[/img]
If You Like this tutorial, please check out my other tutorials by clicking ==> H3R3
PHP & .NET Contributor.
Catch ex As Exception
Return False
End Try
all fixed...thanks for correcting me
PHP & .NET Contributor.
This was posted in this section like 2 hrs before you posted yours..

https://hackforums.net/showthread.php?tid=400587

Exact same code dude.. stop copy+pasting codes into your own threads..
(May 3, 2010 07:31 PM)iRtehLeet™ Wrote:  This was posted in this section like 2 hrs before you posted yours..

https://hackforums.net/showthread.php?tid=400587

Exact same code dude.. stop copy+pasting codes into your own threads..

this is funny because i am Tim Hartwig

and i showed yager my website.... lol


no need to appologise. but know i dont leach! EVER!!!
PHP & .NET Contributor.
Alright, just stating it was already posted, no need for multiple threads.
i never knew it was posted...i did not know my work would be here...which is why i have started posting my snippets on HF
PHP & .NET Contributor.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by DotexeAug 5, 2017 04:23 PM 0 152 Aug 5, 2017 04:23 PM
Last Post: Dotexe
[Shell] by GassedApr 17, 2017 06:37 AM 3 358 Apr 17, 2017 06:37 AM
Last Post: gogglebot
[C#] by StarZApr 14, 2017 06:54 AM 4 344 Apr 14, 2017 06:54 AM
Last Post: StarZ