|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
代码如下:
temp = "https://portal.ccsa.cn/rp/paas/pm/projectReportDrill/getProjBasicDrillVOById.do?projCode=" & Cells(3, 3)
' Login
Set postReq = CreateObject("Msxml2.ServerXMLHTTP.6.0")
'Set postReq = CreateObject("Msxml2.XMLHTTP.6.0")
postReq.Open "GET", temp, False
postReq.setRequestHeader "Cookie", cookies
postReq.setRequestHeader "Content-type", "application/json;charset=UTF-8" 'send appropriate Headers
postReq.send ' send login info
执行到send命令时提示“无法建立连接”
我在家里win10系统下就可以运行并获取数据,在公司win7电脑里就提示错误,哪位知道是怎么回事? |
|