Skip to content

Instantly share code, notes, and snippets.

@kstefan
Last active June 5, 2019 08:06
Show Gist options
  • Select an option

  • Save kstefan/0feee4543d511ec60a91222367a2dc5e to your computer and use it in GitHub Desktop.

Select an option

Save kstefan/0feee4543d511ec60a91222367a2dc5e to your computer and use it in GitHub Desktop.
Call rest api via Invoke-RestMethod (PowerShell)
Invoke-RestMethod -Uri 'http://example.com' `
-Method Post -ContentType 'application/json' -Body '{"hello": "world"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment