在与服务器通信时,有效负载或标头中附加了哪些设备特定数据?设备IP地址是否被发送?以及如何生成时间戳? 谢谢。
答案 0 :(得分:0)
据我所知,HttpURLConnection默认会发送此标头:
Color = "Green"
MsgStatus = "Wait 20 seconds ...!!"
Thread.Sleep(500) 'I try this but doesn't work
Dim oTest As New TestConnect
Dim sConn As String = "Data Source=" + Server + ";Initial Catalog=DB;User ID=UserDb;Password=Password01"
If oTest.VerifyConnectionServer(sConn) = False Then
Color = "Red"
MsgStatus = "Server not found ..! "
Status = True
Else
Dim Test As Boolean = oTest.SaveNewSQLServerName(NomeServer)
Color = "Green"
MsgStatus = "Server connect !! "
Status = True
End If
当然,您可以根据需要添加更多内容或修改默认值。
希望这有帮助。