如何使用VBScript发布HTTPS请求 [英] How to POST HTTPS request using VBScript

查看:194
本文介绍了如何使用VBScript发布HTTPS请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何从VBScript客户端发出HTTPS请求。

I want to know how to make a HTTPS request from a VBScript client.

收到请求后,如何解密HTTPS响应?

After receiving the request, how to decrypt the HTTPS response?

推荐答案

HTTPS不仅仅是一种加密格式 - 它是一种传输安全协议,内置复杂的协商。就像您不会尝试在VBScript中构建HTTP客户端组件一样,您也不会尝试构建HTTPS / SSL客户端。

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.

VBScript语言没有'包括任何HTTP或HTTPS客户端,但Windows有几个可以使用的COM对象(来自用VBScript编写的ASP页面的Windows脚本主机),并且在Internet Explorer中运行的VBScript代码可以类似地访问允许HTTPS的浏览器对象调用。

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.

从Windows(WSH / ASP),最好的对象通常是MSXML2.ServerXmlHTTP,例如,请参阅此快速概述: http://www.developerfusion.com/article/3272/posting-form -data-to-a-web-page / 2 /

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/

从Internet Explorer,只要您不处理旧版本,最好想法是使用跨浏览器标准对象XMLHttpRequest。以下页面概述了: http://www.jibbering.com/2002/4 /httprequest.html

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

所有这些HTTP客户端也支持HTTPS。

All of these HTTP clients also support HTTPS.

这篇关于如何使用VBScript发布HTTPS请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆