You can use the WebRequest object to send an HTTP request.
' Create a WebRequest object with the specified url. ' Dim myWebRequest As WebRequest = WebRequest.Create(url) ' Send the WebRequest and wait for response. ' Dim myWebResponse As WebResponse = myWebRequest.GetResponse()
The WebResponse class has a number of properties that you can check to ensure that the request was successful or not. And just something to be aware of, GetResponse() will throw an exception if it expires.
source share