Public Sub callurl(url As String) Dim request As WebRequest = HttpWebRequest.Create(url) Dim response__1 As WebResponse = request.GetResponse() Dim reader As New StreamReader(response__1.GetResponseStream()) Dim urlText As String = reader.ReadToEnd() ' it takes the response from your url. now you can use as your need Response.Write(urlText.ToString()) End Sub
Dim url As String = "http://localhost:8080/wpt/main.html" callurl(url)
Public Function CheckResult(ByRef xmlString As String) 'Remaining goes here 'Download the response as JSON or XML End Function Dim webClient As New System.Net.WebClient Dim result As String = "Your URL" Dim res = CheckResult(result)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)