2013-06-26 5 views

cevap

196

karma bir tabloda Parametrelerinizi koyun ve bu gibi onları pass:

$postParams = @{username='me';moredata='qwerty'} 
Invoke-WebRequest -Uri http://example.com/foobar -Method POST -Body $postParams 
46

isteği JSON dize olmak JSON ve vücut olarak ayarlanmış içerik türü olması gerekir bazı seçici web hizmetleri için.

Invoke-WebRequest -UseBasicParsing http://eaxmple.com/service -ContentType "application/json" -Method POST -Body "{ 'ItemID':3661515, 'Name':'test'}" 

veya benzer soruya XML vb

İlgili konular