Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:HttpWebRequest 是什么类型?

1楼
sloyy 发表于:2024/7/20 16:26:00
我在把一个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

运行到红色这句出错了,要怎么改?
2楼
有点蓝 发表于: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)
3楼
sloyy 发表于:2024/7/21 21:25:00
谢谢
共3 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03125 s, 2 queries.