Im getting used to Visual Basic currently and im trying to build an application that our operators can submit quick searches to one of our systems. - I have looked around for this and I couldnt find a lot of information
Below is a quick overview on what we would like to achieve somehow
1. VB 2010 App (2 x Text Boxes + Button)
2. PHP Script (If query = bob & jones <<=
3. Curl PHP Request to another PHP Form
4. Returns to Original PHP Script <<=
5. Somehow returns information back to .net application that is waiting
I am a PHP Programmer rather than a .net developer mainly so the curl and php scripts are mostly complete its just the .net coding
To get us started we used the following code :
Dim webStream As Stream
Dim webResponse = ""
Dim req As HttpWebRequest
Dim res As HttpWebResponse
' API Address ''
req = WebRequest.Create("xxxxxxxxx")
req.Method = "GET" ' Method of sending HTTP Request(GET/POST)
res = req.GetResponse() ' Send Request
webStream = res.GetResponseStream() ' Get Response
Dim webStreamReader As New StreamReader(webStream)
' READ Response in one Variable
While webStreamReader.Peek >= 0
webResponse = webStreamReader.ReadToEnd()
End While
MsgBox(webResponse)
It was working fine to one standard because it was bringing the information back to us in the form of a messagebox , albeit we wanted it to populate a few text boxes (Not even sure if that is possible)
But the main problem was that it was retrieving the source code of the website instead of just information on the text side of the website
Thanks