Osc*_*ley 1 rest powershell powershell-3.0
我有一个安静的 API 的请求(注意,它同时发生在Invoke-WebRequest和Invoke-RestMethod):
$resp1 = Invoke-WebRequest -OutFile $clusterConfigZipFile -Uri $apiFolder -Body $fileContent -Method 'POST' -Credential $adminCredentials -ContentType "application/x-www-form-urlencoded" -ErrorAction SilentlyContinue -Verbose
Run Code Online (Sandbox Code Playgroud)
我知道它可以正常工作,因为:
我的问题是代码在$resp1. 我已经读到,当您使用-OutFile.
无论如何要捕获响应或至少响应代码PowerShell?
| 归档时间: |
|
| 查看次数: |
1333 次 |
| 最近记录: |