上传了接口的截图
[此贴子已经被作者于2025/5/20 16:38:55编辑过]
如图

此主题相关图片如下:企业微信截图_17477302792697.png
有处理方案吗?foxtable中的HttpClient如何绕过这个限制?
调用前加上一句
System.Net.ServicePointManager.Expect100Continue = falseDim hc As New HttpClient("http://..........
[此贴子已经被作者于2025/5/20 17:18:09编辑过]
Dim url As New System.Uri("http://www.abc.com/login")
Dim servicePoint = System.Net.ServicePointManager.FindServicePoint(url)
servicePoint.Expect100Continue = False
Dim hc As New HttpClient(url.AbsoluteUri)
hc.Timeout = 5
hc.FormData.Add("username", "zsh")
hc.FormData.Add("password", "zsh2021")
Dim nr As String = hc.GetData()
Output.Show(nr)