rmbolger / Posh-IBWAPI

PowerShell module for interacting with the Infoblox WAPI (REST API).
MIT License
54 stars 8 forks source link

File downloads don't work on PowerShell Core #43

Closed rmbolger closed 5 years ago

rmbolger commented 5 years ago

When performing file download operations against Infoblox using either Recieve-IBFile or manually via Invoke-IBWAPI or the native web cmdlets, Infoblox returns an HTTP 415 "Unsupported Media Type" response.

There seems to be a bug in PowerShell Core that is stripping the Content-Type header from GET requests. For some reason, Infoblox requires these GET requests to have an application/force-download Content-Type header and the HTTP 415 response when it is not found.