Foxtable(狐表)用户栏目专家坐堂 → HttpClient的post请求问题


  共有3851人关注过本帖树形打印复制链接

主题:HttpClient的post请求问题

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110574 积分:562760 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/12/13 16:23:00 [显示全部帖子]

Dim url As String = "http://192.168.3.10:8088/api/services/Org/UserLogin"
Dim hc As New HttpClient(url)
hc.ContentType = "application/json"
Dim jo As New JObject
jo("UserName") = "000001"
jo("Password") = "12345"
jo("DomainIp") = ""
jo("DeviceId") = ""
jo("WeChatName") = ""
jo("IsWechatType") = ""
jo("ClientType") = ""
jo("UserHostAddress") = ""
jo("ValidateCodeSms") = ""
Output.Show(jo.tostring)
hc.Content = jo.tostring
Dim ret  As String = hc.GetData
Output.Show(ret)
[此贴子已经被作者于2021/12/13 16:23:52编辑过]

 回到顶部