POSTing to a webpage and using it’s response (HttpWebRequest and HttpWebResponse)
You might encounter a situation where you need to Post to a web page and read it’s response. Here’s a function that uses System.Net.HttpWebRequest and System.Net.HttpWebResponse to do just that. ‘ Usage: ‘ Dim xmlDoc As Xml.XmlDocument ‘ xmlDoc.Load(MakeHttpRequest( _ “request=listPersons&filter=last(a*)”, _ “/requestManager.php”, _ “application/x-www-form-urlencoded”)) Protected Function MakeHttpRequest( ByVal data As String, _ ByVal url [...]
More »


