cURL to Invoke-Webrequest command
问题 Can anyone give me a hint, how to convert following curl command to PS Invoke-Webrequest ? curl -d {\"password\":\"$password\"\} $vault/v1/auth/userpass/login/${login,,} I have some thoughts on this, but cannot figure out, how to finish this: $vault="3.3.3.3:8500" $pair = (Get-Credential) $params = ???? $login = $pair.getNetworkCredential().username $pass = $pair.getNetworkCredential().password Invoke-WebRequest $url -Method Post -Credential $pair -Body $params -UseBasicParsing How to