Off the top of my head, something along the lines of:
Dim socket1 As New HTTPSocket
Dim data As String
socket1.port = <the port number>
data = socket1.Get(yourURL + servericemanagerstring + commandstring, 30)
if data <> "" then
data = data.defineencoding(encodings.utf8)
... Parse through the data ...
data = replaceall(data, "<br>", endofline)
end if
Note that this is just a quick thought and I have not tested it. I’m currently sitting in my car waiting for my daughter. You can probably skip the port number and built that directly into “yourURL”. You will also need to build in error checks and stuff, but I think this should get your going. For HTTS, there is also the HTTPSecureSocket.
I’m not sure what the command, conn.setRequestProperty(“servicemanager”, “command”); does.
but this concatination doesn’t seem to be formatted properly…
Everything in between the “(” and “)” is the string you need to construct to get to where you need to go. You will need to figure out from your original code what “servicemanager” is and “command” is.
yourURL + servericemanagerstring + commandstring
** I added "string" to the end to show you that they the properties (servicemanager, command) you need to set are strings
That is basically joining the URL with whatever you are trying to get at. When it is all set and done, your connection/URL string should look something like: