I'm porting a vb.net HTTPS client application on WinCE60 CF35: bsically it needs to send HTTPS REST requests to a server.
I started development on a Win10 desktop and there I have no problems (VS2015 - NET35).
When I run on WinCE I receive an exception when I send the webrequest: the system says that it does not have the error message, but I see the status = 10 = SecureChannelFailure.
The code is the following:
Private Function SendGetRequest(cmd As String) As Boolean
Dim request As WebRequest = WebRequest.Create(m_baseUrl + cmd)
request.Method = "GET"
request.Timeout = m_timeout
request.Headers.Add("Authorization", "Basic " + m_authInfo)
'
Dim dataStream As Stream
'
Try
Dim response As WebResponse = request.GetResponse()
m_statusCode = CType(response, HttpWebResponse).StatusCode
dataStream = response.GetResponseStream()
...
On the server side I don't receive anything. So, I tryed to sniff using Wireshark and I see the following:
In my understanding the client (.113) sends a RESET, but I don't know why ..
PS: if I build a HTTP request I receive response.