brotli will likely become the compressed transfer encoding of choice. Invoke-Webrequest and Invoke-RestMethod should support these natively.
Steps to reproduce
Invoke-WebRequest https://www.bayden.com/test/brotliimg.aspx -Headers @{'Accept-Encoding' =
'br'} -OutFile C:\temp\brotli.jpg
Expected behavior
C:\temp\brotli.jpg should be a jpeg
Actual behavior
C:\temp\brotli.jpg is brotli compressed data.
Environment data
Name Value
---- -----
PSVersion 6.0.0-beta
PSEdition Core
GitCommitId v6.0.0-beta.7
OS Microsoft Windows 10.0.15063
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
brotli will likely become the compressed transfer encoding of choice.
Invoke-WebrequestandInvoke-RestMethodshould support these natively.Steps to reproduce
Expected behavior
C:\temp\brotli.jpgshould be a jpegActual behavior
C:\temp\brotli.jpgis brotli compressed data.Environment data