Hello,
i have a application thats writen with the pylons framework. Now i want to call some controllers from a vb.net application. How should i do this?
I've tried it like this:
Dim webclient As New WebClient
Dim dataStream As IO.Stream = webclient.OpenRead("http://192.168.0.20:5000/controller/default")
Dim reader As New StreamReader(dataStream)
Dim responseFromServer As String = reader.ReadToEnd()
Dim erg As String = responseFromServer.ToString
reader.Close()
dataStream.Close()
But instead of an json object that is generate by the pylons controller, i'll get the html code for the page which is reachable under "http://192.168.0.20:5000"
Any help would be great! Cheers, Nico