G
George Shubin
I have a handheld running Windows Mobile 5 and an electronic scale with a WiFi connection at a fixed IP address. When the scale is used, a value is streamed to port 2101. I need to suck data off an that port. When I run the following code, address "http://192.168.1.107/" works just fine, but it grabs the built-in admin login web page. When I use "http://192.168.1.107:2101/", the code crashes with "This protocol is not supported".
Running Compact Framework 2, how do I code for a port that is not 80?
Dim httpResponse As HttpWebResponse
Dim ipAddress As String = "http://192.168.1.107/"
'Dim ipAddress As String = "http://192.168.1.107:2101/"
Dim httpRequest As HttpWebRequest = CType(WebRequest.Create(ipAddress), HttpWebRequest)
httpRequest.Credentials = CredentialCache.DefaultCredentials
httpResponse = CType(httpRequest.GetResponse, HttpWebResponse)
Thanks for any suggestions.
GS
Running Compact Framework 2, how do I code for a port that is not 80?
Dim httpResponse As HttpWebResponse
Dim ipAddress As String = "http://192.168.1.107/"
'Dim ipAddress As String = "http://192.168.1.107:2101/"
Dim httpRequest As HttpWebRequest = CType(WebRequest.Create(ipAddress), HttpWebRequest)
httpRequest.Credentials = CredentialCache.DefaultCredentials
httpResponse = CType(httpRequest.GetResponse, HttpWebResponse)
Thanks for any suggestions.
GS