Skip to content

Instantly share code, notes, and snippets.

@Atom1cByte
Created June 19, 2025 13:19
Show Gist options
  • Save Atom1cByte/4dcc2e546ebfdc15947feb6f3e3fa039 to your computer and use it in GitHub Desktop.
Save Atom1cByte/4dcc2e546ebfdc15947feb6f3e3fa039 to your computer and use it in GitHub Desktop.
get raw content in pwsh
$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