Using a parameter I get this error
Invoke-RestMethod : Unable to read data from the transport connection: An existing connection was forcibly closed by
the remote host.
If I adhere to the docs (no parameter) I am able to download the executable.
More of a feature request I suppose.
Yes, exactly. Likely elsewhere, not in PS Universal.
So it seems to work fine when I make the call from pwsh core, and it fails in windows powershell. The latter case - the download starts and depending on the exact utility (these are executables) it stops with
Invoke-RestMethod : Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Thanks