powershell curl conversion

#409
Raw
Created
Nov. 22, 2021, 4:08 p.m.
Expires
Never
Size
231 bytes
Hits
90
Syntax
PowerShell
# curl -X POST -d username=me -d moredata=qwerty http://example.com/foobar


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