How to execute a POST HTTPS request using VBScript

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

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

+3
source share
2 answers

HTTPS is not only an encryption format - it is a transport security protocol with built-in built-in negotiation. Just as you are not trying to create an HTTP client component in VBScript, in the same way you will not try to create an HTTPS / SSL client.

VBScript HTTP HTTPS-, Windows COM-, ( Windows Script Host ASP-, VBScript), VBScript, Explorer , HTTPS-.

(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.

+5
dim xHttp: Set xHttp = createobject("MSXML2.ServerXMLHTTP")

xHttp.Open "GET", "https://yourhost.example.com/foo", False

' 2 stands for SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS
' 13056 means ignore all server side cert error
xHttp.setOption 2, 13056
xHttp.Send

' read response body
WScript.Echo xHttp.responseBody

:

+5

All Articles