We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Content-Type
$ Invoke-RestMethod -Uri https://httpbin.org/robots.txt
Return content. Or at least behave the same as in PowerShell 5.0.
Invoke-RestMethod : Unexpected character encountered while parsing value: U. Path '', line 0, position 0. At line:1 char:1
- CategoryInfo : NotSpecified: (:) [Invoke-RestMethod], JsonReaderException - FullyQualifiedErrorId : Newtonsoft.Json.JsonReaderException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
> $PSVersionTable Name Value ---- ----- PSVersion 6.0.0-alpha PSEdition Core PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 3.0.0.0 GitCommitId v6.0.0-alpha.9 CLRVersion WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
powershell 6.0.0-alpha.9-1
Steps to reproduce
Expected behavior
Return content. Or at least behave the same as in PowerShell 5.0.
Actual behavior
Invoke-RestMethod : Unexpected character encountered while parsing value: U. Path '', line 0, position 0.
At line:1 char:1
Environment data
powershell 6.0.0-alpha.9-1