http请求方式:POST
http://ip:port/seeyon/rest/token
原始的HTTP请求如下所示
POST http://127.0.0.1/seeyon/rest/token HTTP/1.1
Host: 127.0.0.1
Accept: application/json
Content-Type: application/json
{"userName":"rest","password":"123456"}
请求实例:
http://IP:port/seeyon/rest/token/{restusername}/{password}上面
上面是某请求说明
Dim restusername As String = "httest" 'rest用户
Dim password As String = "ec426794-59bd-4320-9a78-0092d611865d" 'rest密码
Dim tp As TimeSpan = Date.Now - CreateTime
Dim url As String = "http://ip:port/seeyon/rest?useName={0}&passrowd={1}"
Dim hc As New HttpClient(CExp(url, restusername
, password))
请问 这样两种请求方式是一样的吗
[此贴子已经被作者于2022/10/20 8:38:50编辑过]