nsi脚本中的HTTPS请求

时间:2017-03-17 17:25:41

标签: https nsis

是否可以使用针对NULLsoft的.nsi脚本对我的域执行HTTPS请求?

我试过使用NSISdl :: download_quiet / TIMEOUT = 50000“hxxps://example.org”“C:\ Users \ me \ Desktop \ config.ini”但似乎它不起作用..

InetC是否支持此功能?我已经尝试了但没有结果...

1 个答案:

答案 0 :(得分:0)

是的,INetC使用与Internet Explorer相同的Web库,它支持HTTPS。

Page Directory
Page InstFiles

Section
CreateDirectory $InstDir
inetc::get "https://example.com/myfile.ext" "$InstDir\myfile.ext" /END
Pop $0
DetailPrint $0 ; "OK" if successful
SectionEnd

如果服务器使用过时的SSL证书,您可以添加/WEAKSECURITY开关。

相关问题