以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- HttpWebRequest 是什么类型? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=192767) |
-- 作者:sloyy -- 发布时间:2024/7/20 16:26:00 -- HttpWebRequest 是什么类型? 我在把一个vb.net 函数转换成内部函数,开头几句是这样的: Dim qurl As String = "https://api.baiwangjs.com/swgx-saas/agentinvoiceservice-cloudservice-cloudservice/agentiscloud" & url Dim postData As Byte() = Encoding.UTF8.GetBytes(json) Dim request As HttpWebRequest = TryCast(WebRequest.Create(qurl), HttpWebRequest) Dim myEncoding As Encoding = Encoding.UTF8 request.Method = "POST" request.C 运行到红色这句出错了,要怎么改? |
-- 作者:有点蓝 -- 发布时间:2024/7/20 16:37:00 -- .net的类型找微软:https://learn.microsoft.com/zh-cn/dotnet/api/system.net.httpwebrequest?view=netframework-4.0 Dim request As system.net.HttpWebRequest = TryCast(system.net.WebRequest.Create(qurl), system.net.HttpWebRequest)
|
-- 作者:sloyy -- 发布时间:2024/7/21 21:25:00 -- 谢谢 |