我正在尝试 POST 到 uri,并发送参数username=me
Invoke-WebRequest -Uri http://example.com/foobar -Method POST
如何使用 POST 方法传递参数?
将参数放入哈希表中并像这样传递它们:
$postParams = @{username='me';moredata='qwerty'}
Invoke-WebRequest -Uri http://example.com/foobar -Method POST -Body $postParams
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)