|
发表于 2020-12-31 09:50:46
|
显示全部楼层
广东省茂名市
https://docs.microsoft.com/en-us/windows/win32/winhttp/iwinhttprequest-setclientcertificate
微软给出的示例是:
// Instantiate a WinHttpRequest object.
var HttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1");
// Open an HTTP connection.
HttpReq.Open("GET", "https://www.fabrikam.com/", false);
// Select a client certificate.
HttpReq.SetClientCertificate(
"LOCAL_MACHINE\\Personal\\My Middle-Tier Certificate");
// Send the HTTP Request.
HttpReq.Send();
易语言http对象的查看方法给出的是:
http.创建 (“WinHttp.WinHttpRequest.5.1”, )
http.查看()
〈无返回值〉 对象.方法 ("SetClientCertificate",ClientCertificate)
主要是这个参数怎么写?至今没有成功过。
|
|