VB Code:
Private Sub Command1_Click()
Text1.Text = SendXMLRequest("http://www.mywebsiteurl.com")
End Sub
'// REFERENCE MS XML, Version 2.0
Private Function SendXMLRequest(ByVal strUrl As String) As String
On Error GoTo err:
Dim objHTTP As MSXML.XMLHTTPRequest
Set objHTTP = New MSXML.XMLHTTPRequest
objHTTP.Open "GET", strUrl, False
objHTTP.setRequestHeader "Content-Type", "text/html"
objHTTP.send: SendXMLRequest = objHTTP.responseText
If Len(SendXMLRequest) = 0 Or InStr(1, SendXMLRequest, _
"page not found", vbTextCompare) Then _
SendXMLRequest = "Page Not Found"
Exit Function
err:
SendXMLRequest = "Error " & err.Number & _
vbCrLf & err.Description
Exit Function
End Function