使用-InFile标志在服务器上发布数据时,Invoke-webrequest不会出现

时间:2015-02-25 05:49:20

标签: powershell

我正在使用invoke-webrequest命令使用POST命令在服务器上加载文件,并且文件确实已加载。但是,命令在控制台中挂起,直到我按Enter键。

这是我正在执行的内容:

Invoke-RestMethod -Uri $ url -Method POST -ContentType $ ContentType -Headers $ headerHash -InFile $ filePath -TimeoutSec $ timeOut

0 个答案:

没有答案