Created
June 19, 2025 13:19
-
-
Save Atom1cByte/4dcc2e546ebfdc15947feb6f3e3fa039 to your computer and use it in GitHub Desktop.
get raw content in pwsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $response = Invoke-WebRequest -Method Post -Uri [all the other stuff here] | |
| # If response.Content is byte array: | |
| $decoded = [System.Text.Encoding]::UTF8.GetString($response.RawContentStream.ToArray()) | |
| Write-Output $decoded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment