headers=header_read, proxies=proxies,verify=False,json=job_payload)Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on aAt line:22 char:5
+ Invoke-WebRequest -Uri 'https://
我也用Invoke-WebRequest尝试过这个脚本,但都失败了。返回的错误是Invoke-RestMethod : Value cannot be null.奇怪的是,当我用Wireshark监视它时,我看到了连接,我看到了POST,我看到了来自服务器的结果,所有的结果看起来都很好,但是cmdlet说它失败了(是的,返回代码是200)。如果我使用Invoke-WebRequest/Invoke-RestMethod参数运行-OutFile