Skip to content

Add support for brotli compression to Web Cmdeltes #4947

@markekraus

Description

@markekraus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions