以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助]WebClient报错 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=189796) |
-- 作者:jyh7081 -- 发布时间:2023/12/26 20:29:00 -- [求助]WebClient报错 蓝老师好! 1、单独在浏览器运行正常:https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?param=sh600519,day,2020-3-1,2021-3-1,500,qfq 2、在foxtable中运行下面的代码报错: Dim obj_down As New System.Net.WebClient() Dim data As String = obj_down.DownloadString("https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?param=sh600519,day,2020-3-1,2021-3-1,500,qfq") Output.Show(data) 提示如下,怎样解决? |
-- 作者:有点蓝 -- 发布时间:2023/12/26 20:36:00 -- Net.ServicePointManager.SecurityProtocol = Net.SecurityProtocolType.Tls12 Dim obj_down As New System.Net.WebClient() Dim data As String = obj_down.DownloadString("https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?param=sh600519,day,2020-3-1,2021-3-1,500,qfq") Output.Show(data) |
-- 作者:jyh7081 -- 发布时间:2023/12/26 20:40:00 -- 行了~ 谢谢! |