Skip to content

Instantly share code, notes, and snippets.

@Philmist
Created October 25, 2022 03:20
Show Gist options
  • Save Philmist/a402beef1ddade9c35ccccdcca49fe50 to your computer and use it in GitHub Desktop.
Save Philmist/a402beef1ddade9c35ccccdcca49fe50 to your computer and use it in GitHub Desktop.
JSONを投げるやり方(Invoke-WebRequest版)
Invoke-WebRequest http://192.168.0.100:9090/philmist-bundle/recognized -Method "POST" -Headers @{"Content-Type"="application/json;charset=utf-8"} -Body ([Text.Encoding]::UTF8.GetBytes((@{"code"="R";"text"="本日青天なれど
も波高し"} | ConvertTo-Json))) -ContentType 'application/json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment