@Qharr如何将您的精彩脚本从XMLHTTP修改为ServerXMLHTTP以启用代理?
参考:Google search via VBA no results if use a phone number
我对此进行了审查,但没有找到解决方案:Differences between XMLHTTP and ServerXMLHTTP
With CreateObject("MSXML2.XMLHTTP")
.Open "GET", urlx, False
'.setProxy 2, "proxy.net:8080"
'.setProxyCredentials "proxy_login", "proxy_password"
.send
html.body.innerHTML = StrConv(.responseBody, vbUnicode)
End With发布于 2019-01-31 01:10:11
请尝试以下操作
.setProxy 2, "http=myProxyServer:8080", ""这是使用MSXML2.ServerXMLHTTP。摘自here
注意config的用法
proxycfg -u另请参阅指向proxycfg和how can I specify a proxy configuration using Microsoft.XMLHTTP?的链接
如果您决定使用浏览器,请参阅以下有关使用selenium and proxy的信息。
来自运维的反馈:
XMLHTTP.setProxy 2, "http=url or IP:port"
XMLHTTP.setProxyCredentials "username", "password"https://stackoverflow.com/questions/54444427
复制相似问题