Invoke-WebRequest freezes / hangs Invoke-WebRequest freezes / hangs powershell powershell

Invoke-WebRequest freezes / hangs


This seems to still be a bug in powershell

https://github.com/PowerShell/PowerShell/issues/2867

A possible work around is to convert the item into parsed HTML manually

Function ConvertTo-NormalHTML {    param([Parameter(Mandatory = $true, ValueFromPipeline = $true)]$HTML)    $NormalHTML = New-Object -Com "HTMLFile"    $NormalHTML.IHTMLDocument2_write($HTML.RawContent)    return $NormalHTML}$Content = (Invoke-WebRequest -Uri "https://cloud.google.com/chrome-enterprise/browser/download" -UseBasicParsing ).Content$ParsedHTML = ConvertTo-NormalHTML -HTML $Content$ParsedHTML