如何使用 VBScript POST HTTPS 请求
我想知道如何从 VBScript 客户端发出 HTTPS 请求。
收到请求后,如何解密HTTPS响应?
I want to know how to make a HTTPS request from a VBScript client.
After receiving the request, how to decrypt the HTTPS response?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
参考:
Reference:
HTTPS 不仅仅是一种加密格式,它还是一种传输安全协议,内置复杂的协商。就像您不会尝试在 VBScript 中构建 HTTP 客户端组件一样,您也不会尝试构建 HTTPS/SSL 客户端。
VBScript 语言不包含任何 HTTP 或 HTTPS 客户端,但 Windows 有几个可以使用的 COM 对象(从 Windows Script Host 或从用 VBScript 编写的 ASP 页面),并且在 Internet Explorer 中运行的 VBScript 代码可以类似地访问允许 HTTPS 调用的浏览器对象。
在 Windows (WSH/ASP) 中,最好的对象通常是 MSXML2.ServerXmlHTTP,例如,请参阅此快速概述:http://www.developerfusion.com/article/3272/posting-form-data-to-a-web-page/2/
在 Internet Explorer 中,只要您不处理旧版本,最好的想法就是使用跨浏览器标准对象 XMLHttpRequest。以下页面为您提供了概述: http://www.jibbering.com/2002/4 /httprequest.html
所有这些 HTTP 客户端也支持 HTTPS。
HTTPS is not just an encryption format - it's a transport security protocol, with complex negotiation built-in. Just like you wouldn't try to build an HTTP client component in VBScript, similarly you wouldn't try to build an HTTPS/SSL client.
The VBScript language doesn't include any HTTP or HTTPS client, but windows has a couple of COM objects that can be used (from Windows Script Host of from ASP pages written in VBScript), and VBScript code running in internet explorer can similarly access a browser object that allows HTTPS calls.
From windows (WSH/ASP), the best object is typically MSXML2.ServerXmlHTTP, for example see this quick overview: http://www.developerfusion.com/article/3272/posting-form-data-to-a-web-page/2/
From Internet Explorer, as long as you're not dealing with legacy versions, the best idea is to use the cross-browser standard object XMLHttpRequest. The following page gives you an overview: http://www.jibbering.com/2002/4/httprequest.html
All of these HTTP clients also support HTTPS.